example-data.com

jokes / #5

setup
Did you hear about the mathematician who's afraid of negative numbers?
punchline
He'll stop at nothing to avoid them.
category
pun
rating
4
createdAt

Component variants

Medium

#5

#5

Small
jokes/5
curl -sS \
  "https://example-data.com/api/v1/jokes/5" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/jokes/5"
);
const joke = await res.json();
import type { Joke } from "https://example-data.com/types/jokes.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/jokes/5"
);
const joke = (await res.json()) as Joke;
import requests

res = requests.get(
    "https://example-data.com/api/v1/jokes/5"
)
joke = res.json()
{
  "id": 5,
  "setup": "Did you hear about the mathematician who's afraid of negative numbers?",
  "punchline": "He'll stop at nothing to avoid them.",
  "category": "pun",
  "rating": 4,
  "createdAt": "2025-06-05T06:59:54.577Z"
}
Draftbit