---
title: "Get a random joke"
method: GET
path: "/public/randomjokes/joke/random"
tags: ["📢 Public APIs"]
---

# Get a random joke

`GET /public/randomjokes/joke/random`

## Request

- Base URL: `https://api.freeapi.app/api/v1`
- URL: `https://api.freeapi.app/api/v1/public/randomjokes/joke/random`
- Auth: none declared
- TypeScript: <https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/docs/public/randomjokes/joke/random/get.ts> (a function with typed inputs; its response is checked against the schema)

The API endpoint returns a random joke from a list of jokes.

When accessing this endpoint, you will receive a response containing a randomly selected joke.

## Response `200`

Get a random joke

- object
  - `data` object
    - `categories` unknown[]
      - unknown
    - `content` string
    - `id` number
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi.md) - [All operations](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/revisions/a9f3a290e4dc?raw)
