jokes
jokes
Page 2 of 7.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/jokes?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/jokes?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/jokes.d.ts https://example-data.com/types/jokes.d.ts
import type { Joke, ListEnvelope } from "./types/jokes";
const res = await fetch(
"https://example-data.com/api/v1/jokes?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Joke>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/jokes",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 25,
"setup": "Why did the coffee file a police report?",
"punchline": "It got mugged.",
"category": "pun",
"rating": 3.6,
"createdAt": "2024-05-22T22:01:04.701Z"
},
{
"id": 26,
"setup": "What did one wall say to the other?",
"punchline": "I'll meet you at the corner.",
"category": "dad",
"rating": 3.8,
"createdAt": "2025-08-20T15:11:38.530Z"
},
{
"id": 27,
"setup": "I asked the librarian for a book about pavlov's dogs and schrodinger's cat.",
"punchline": "She said it rang a bell, but she wasn't sure if it was there or not.",
"category": "pun",
"rating": 3.2,
"createdAt": "2025-01-23T22:03:30.277Z"
}
],
"meta": {
"page": 2,
"limit": 24,
"total": 150,
"totalPages": 7
},
"links": {
"self": "/api/v1/jokes?page=2&limit=24",
"first": "/api/v1/jokes?page=1&limit=24",
"last": "/api/v1/jokes?page=7&limit=24",
"next": "/api/v1/jokes?page=3&limit=24",
"prev": "/api/v1/jokes?page=1&limit=24"
}
}