# Dad Jokes API

> Dad Jokes delivers a random dad joke with every request. Send a plain GET call without parameters to receive a clean punchline ready for display.

**Endpoint:** `GET https://api.apiverve.com/v1/dadjokes`  
**Category:** Entertainment  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/dadjokes

## Overview

Each GET request requires no query parameters or request body. The service selects an entry at random and returns a single text string containing the complete setup and punchline, ready to render directly in user interfaces.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/dadjokes" \
  -H "x-api-key: YOUR_API_KEY"
```

## Response fields

- `joke` — string · A randomly selected humorous dad joke text.

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "joke": "What state do crayons go to on vacation? Color-ado."
  }
}
```

## Use cases

- **Loading Screen Humor** — Front-end developers display a random joke string to keep users amused while long asset downloads or background imports run.
- **Team Chat Commands** — When a member types a fun slash command in team channels, a custom Slack bot prints the joke text instantly.
- **Daily Digest Greetings** — Community managers fetch one joke each morning to insert an icebreaker into daily subscriber newsletters.
- **Custom Error Pages** — To soften user frustration after broken links, web designers show a random pun on custom 404 pages.

## SDKs

- **npm** — `npm install @apiverve/dadjokes` (https://www.npmjs.com/package/@apiverve/dadjokes)
- **PyPI** — `pip install apiverve-dadjokes` (https://pypi.org/project/apiverve-dadjokes/)
- **NuGet** — `dotnet add package APIVerve.API.DadJokes` (https://www.nuget.org/packages/APIVerve.API.DadJokes)
- **Source** — https://github.com/apiverve/dadjokes-api

## More

- Full reference: https://docs.apiverve.com/ref/dadjokes
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
