> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# JokeAPI

> Joke API serving single-line and two-part jokes across six categories (Programming, Misc, Pun, Spooky, Christmas, Dark) with content flags for filtering.

Joke API serving single-line and two-part jokes across six categories (Programming, Misc, Pun, Spooky, Christmas, Dark) with content flags for filtering. Best for adding humor to chatbots, apps, or demos that need randomized, family-friendly content. Free with 120 requests/minute rate limit.

1 example endpoint available through Lava's AI Gateway. See the [JokeAPI API docs](https://v2.jokeapi.dev/) for full documentation.

<Info>This provider is **managed** — no additional setup required.</Info>

<Info>This is a **catch-all provider** — any valid URL under `https://v2.jokeapi.dev` is supported. Joke API. Construct URL as [https://v2.jokeapi.dev/joke/\&#123;category\&#125](https://v2.jokeapi.dev/joke/\&#123;category\&#125);. Categories: Any, Programming, Misc, Pun, Spooky, Christmas, Dark. The endpoints below are curated examples.</Info>

## Endpoints

### Get a random programming joke

**GET** `https://v2.jokeapi.dev/joke/Programming?type=single` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://v2.jokeapi.dev/joke/Programming?type=single', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fv2.jokeapi.dev%2Fjoke%2FProgramming%3Ftype%3Dsingle" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
