Random Joke API

GET

Deliver a fresh joke with a distinct setup and punchline.

Random Joke fetches two-part jokes with separated setups and punchlines for applications and bots. Paid plans add a joke rating score to evaluate humor.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/randomjoke
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "score": 7,
    "setup": "Why is the space between a woman's chest and her hips called a waist?",
    "punchline": "Because you could easily fit another pair of tits in there."
  }
}

About the Random Joke API

Every GET request pulls a joke split into an opening setup and a concluding punchline. The endpoint accepts no query parameters, serving an unprompted selection on each call. Paid subscriptions append a numeric quality score to each returned joke.

What people use it for

CLI MOTD Banners
To lighten command-line workflows, terminal scripts fetch and print a setup and punchline whenever an engineer opens a shell session.
Interactive Kiosk Idling
When visitors leave a public touchscreen idle, display software cycles through jokes to draw pedestrians back to the screen.
Livestream Overlay Alerts
During broadcast breaks, streaming software displays a joke setup followed by punchline text on screen to entertain waiting viewers.
Push Notification Punchlines
Mobile apps boost daily retention by delivering the joke setup as a notification teaser and revealing the punchline on tap.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Random Joke

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Random Joke API.

Read the docs →
What would 20,000 jokes a month cost me?
Fetching 20,000 jokes uses 40,000 credits, which fits well within the Starter plan's monthly allotment of 200,000 credits. On that plan, usage works out to about $0.30 per 1,000 jokes, or roughly $0.0003 per joke. If you are testing, the Free plan includes 100 jokes each month.
Do I get the joke score on the Free plan?
No, the rating score is a premium field reserved for paid plans. Free plan requests return the joke setup and punchline, while upgrading to Starter or higher unlocks the joke rating value.
Are jokes delivered in a structured setup and punchline format?
Yes, every response separates the joke into distinct setup and punchline fields. This structured output makes it straightforward to display the setup first and reveal the punchline on click or delay.
Can I filter jokes by genre, audience, or keyword?
No, the endpoint accepts no query parameters and pulls directly from the curated joke collection. You cannot filter by specific topics, categories, or keywords.
Does the API avoid repeating jokes across consecutive calls?
No, the endpoint is stateless and selects a joke at random on every call. It does not track user sessions or past responses, so duplicate jokes can occasionally appear over repeated requests.

Ready to build with Random Joke? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs