Jokes API

Around 680 English jokes — general, programming, puns, knock-knock, Christmas and more — as one-liners or setup and punchline. Jokes flagged as unsafe or offensive are excluded.

Quick start

curl "https://jokes.quiply.net/v1/random?category=programming" \
  -H "X-API-Key: YOUR_KEY"

Authentication

Every request must include your key in the X-API-Key header. You get your key instantly on the pricing section. Keep it secret — don't put it in public front-end code.

Base URL: https://jokes.quiply.net

GET/v1/random

Random jokes, optionally filtered.

ParameterTypeDescription
categorystringe.g. general, programming, pun (see /v1/categories)
typestringsingle (one line) or twopart (setup and punchline)
countinteger1–20 (default 1)
{ "count": 1, "jokes": [ { "id": 48, "category": "general", "type": "twopart",
    "setup": "Why do chicken coops only have two doors?", "punchline": "Because if they had four, they would be chicken sedans." } ] }

Single-line jokes have a joke field instead of setup and punchline.

GET/v1/jokes

Browse jokes by category and/or type.

ParameterTypeDescription
categorystringe.g. general, programming, pun (see /v1/categories)
typestringsingle (one line) or twopart (setup and punchline)
limitinteger1–100 (default 25)
offsetintegerSkip this many results

Search joke text (q required, minimum 2 characters; optional category, type, limit, offset).

GET/v1/categories

Categories with joke counts by type.

GET/v1/health

Service status and dataset size. No key needed.

Jokes come from public collections and are screened with the sources' own safety flags, but humour is subjective — review before showing to children. The collection is fixed and not updated automatically.

Errors

StatusMeaning
401Missing or invalid X-API-Key
403Subscription inactive (cancelled or payment failed)
404No jokes match the filters
422Bad parameter (e.g. invalid type)
429Quota reached for your plan

Pricing

Free trial: 5 requests/day. All APIs plan: $9.95/month gives you every Quiply API, 250,000 requests a month.

Get your API key