Search Jokes -


Authentication:

An API Key is required and is provide by RapidAPI

API response format:

All API endpoints follow their respective browser URLs, but we adjust the response formatting to be more suited for an API based on the provided HTTP Accept header.

Accepted Accept headers:

  • text/html - HTML response (default response format)
  • application/json - JSON response
  • text/plain - Plain text response

Note: Requests made via curl which do not set an Accept header will respond with text/plain by default.

Endpoint:

GET https://dad-jokes.p.rapidapi.com/joke/search?term=frog

Hint: Search term can be anything, returns all results

Fetching a random as joke as JSON:


    "success": true,
    "body": [
        {
            "_id": "5f80ccd641785ba7c7d27c3a",
            "type": "general",
            "setup": "What happens to a frog's car when it breaks down?",
            "punchline": "It gets toad."
        },
        {
            "_id": "5f80ccd641785ba7c7d27b68",
            "type": "general",
            "setup": "What happens to a frog's car when it breaks down?",
            "punchline": "It gets toad away"
        }
    ]