api-ninjas-com Dad Jokes API

The Dad Jokes API provides thousands of hilarious dad jokes for your entertainment apps.

Operations 1

GET /v1/dadjokes Get a random dad joke #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/api-ninjas-com:api-ninjas-com-dad-jokes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

api-ninjas-com-dad-jokes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ninjas Dad Jokes API
  description: 'Combined OpenAPI specification for every API Ninjas endpoint. Requests go to https://api.api-ninjas.com with an `X-Api-Key` header; get a free key at https://api-ninjas.com/register. Human-readable docs: https://api-ninjas.com/api. Index for LLMs: https://api-ninjas.com/llms.txt.'
  version: 1.0.0
  contact:
    name: API Ninjas
    url: https://api-ninjas.com
  license:
    name: Proprietary
servers:
- url: https://api.api-ninjas.com
  description: API Ninjas Production
security:
- ApiKeyAuth: []
tags:
- name: Dad Jokes
  description: The Dad Jokes API provides thousands of hilarious dad jokes for your entertainment apps.
paths:
  /v1/dadjokes:
    get:
      summary: Get a random dad joke
      description: Returns one or more random dad jokes. The `limit` parameter, which returns up to 100 jokes in a call, is available on premium plans only.
      operationId: getDadJoke
      security:
      - ApiKeyAuth: []
      parameters:
      - name: limit
        in: query
        description: How many jokes to return. Must be between 1 and 100. Default is 1. Premium only.
        required: false
        schema:
          type: integer
          format: int32
          minimum: 1
          maximum: 100
          default: 1
      responses:
        '200':
          $ref: '#/components/responses/DadJokeResponse'
        '400':
          $ref: '#/components/responses/DadJokesOpenapi_BadRequest'
        '401':
          $ref: '#/components/responses/DadJokesOpenapi_Unauthorized'
        '500':
          $ref: '#/components/responses/DadJokesOpenapi_InternalServerError'
      tags:
      - Dad Jokes
components:
  responses:
    DadJokesOpenapi_Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DadJokesOpenapi_Error'
    DadJokesOpenapi_InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DadJokesOpenapi_Error'
    DadJokeResponse:
      description: A list of random dad jokes
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '#/components/schemas/DadJoke'
    DadJokesOpenapi_BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DadJokesOpenapi_Error'
  schemas:
    DadJokesOpenapi_Error:
      type: object
      properties:
        message:
          type: string
    DadJoke:
      type: object
      properties:
        joke:
          type: string
          example: When putting cheese in a mousetrap, always leave room for the mouse.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
externalDocs:
  description: API Ninjas documentation
  url: https://api-ninjas.com/api