example-data.com

jokes / #10

setup
Time flies like an arrow.
punchline
Fruit flies like a banana.
category
one_liner
rating
3.1
createdAt

Component variants

curl -sS \
  "https://example-data.com/api/v1/jokes/10" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/jokes/10"
);
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/10"
);
const joke = (await res.json()) as Joke;
import requests

res = requests.get(
    "https://example-data.com/api/v1/jokes/10"
)
joke = res.json()
{
  "id": 10,
  "setup": "Time flies like an arrow.",
  "punchline": "Fruit flies like a banana.",
  "category": "one_liner",
  "rating": 3.1,
  "createdAt": "2025-02-22T08:31:14.546Z"
}
Draftbit