Random Jokes API

The Random Jokes API allows you to fetch a random joke.

Base URL

"https://openapi-idk8.onrender.com"

Endpoints

  1. GET `/jokes/random`: Fetches a random joke.

Sample Request

GET `https://openapi-idk8.onrender.com/jokes/random`

Sample Response

{
    "name": "Random Jokes",
    "author": "OpenAPI",
    "description": "Get a random joke from OpenAPI.",
    "joke": "Why don't scientists trust atoms? Because they make up everything!"
}

Error Handling

500 Internal Server Error: Returned when there's an issue fetching a random joke using the API.

Response Body:


{
    "error": "Failed to fetch random joke"
}