---
title: "Get joke by id"
method: GET
path: "/public/randomjokes/{jokeId}"
tags: ["📢 Public APIs"]
---

# Get joke by id

`GET /public/randomjokes/{jokeId}`

The API endpoint allows you to retrieve a joke based on the specified joke ID.

When accessing this endpoint and providing a valid joke ID as a parameter, you will receive a response containing the joke associated with the provided ID.

## Response `200`

Get joke by id

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

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
