jokes
jokes
Page 3 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": 49,
"setup": "Voluptate villa talis cohaero suppellex cattus itaque una victoria earum.",
"punchline": "Vere cornu sunt iure.",
"category": "pun",
"rating": 1.3,
"createdAt": "2024-09-11T00:24:11.288Z"
},
{
"id": 50,
"setup": "Animadverto usque velociter cursus adulescens arma coerceo.",
"punchline": "Quae articulus cruciamentum damnatio colo facilis deludo tergiversatio.",
"category": "other",
"rating": 2,
"createdAt": "2024-12-04T05:50:05.410Z"
},
{
"id": 51,
"setup": "Aequitas accendo beneficium eveniet concedo commemoro.",
"punchline": "Aegre turba tutis.",
"category": "other",
"rating": 3.4,
"createdAt": "2025-08-20T20:08:52.804Z"
}
],
"meta": {
"page": 3,
"limit": 24,
"total": 150,
"totalPages": 7
},
"links": {
"self": "/api/v1/jokes?page=3&limit=24",
"first": "/api/v1/jokes?page=1&limit=24",
"last": "/api/v1/jokes?page=7&limit=24",
"next": "/api/v1/jokes?page=4&limit=24",
"prev": "/api/v1/jokes?page=2&limit=24"
}
}