Public APIs
icanhazdadjoke favicon

icanhazdadjoke

Personality

The largest selection of dad jokes on the internet.

icanhazdadjoke's website screenshot

About icanhazdadjoke

icanhazdadjoke is an API that provides access to a collection of dad jokes, supporting endpoints for fetching a random joke, retrieving a specific joke by ID, and searching jokes by term with pagination. Responses can be returned in JSON, HTML, or plain text depending on the Accept header, and jokes can also be fetched as PNG images or as Slack-formatted messages. A GraphQL endpoint is also available, exposing a query for retrieving a joke's ID, text, and permalink.

The API requires no authentication, and the provider requests that consumers set a custom User-Agent header identifying their application and a contact URL or email. A dedicated endpoint returns jokes formatted as Slack attachments for use in Slack apps or third-party integrations.

This service is suited for developers building applications, bots, or integrations that need to fetch or search dad jokes programmatically, such as chat bots, voice assistants, or websites displaying jokes. The underlying site also offers a Slack app, Alexa skill, and Discord bot, though those are separate from the documented API endpoints.

Key features

  • Fetch a random dad joke
  • Fetch a specific joke by ID
  • Fetch a dad joke as an image
  • Search jokes by term with pagination
  • Slack-formatted joke response
  • GraphQL query endpoint

Frequently asked questions

Is authentication required?

No authentication is required to use the icanhazdadjoke.com API.

What response formats are supported?

The API supports HTML, JSON, and plain text responses based on the Accept header, with text/plain as the curl default.

Is there a GraphQL option?

Yes, a GraphQL endpoint at /graphql supports querying for a joke's id, joke text, and permalink.

How does search work?

The /search endpoint accepts page, limit (default 20, max 30), and term query parameters to filter jokes.

Are there other integrations besides the REST API?

Yes, icanhazdadjoke.com also offers a Slack app, Alexa skill, Discord bot, HipChat plugin, and Twist integration.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product