example-data.com

jokes / #14

setup
Knock knock.
punchline
Who's there? Lettuce. Lettuce who? Lettuce in, it's cold out here!
category
knock_knock
rating
4.4
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/jokes/14"
)
joke = res.json()
{
  "id": 14,
  "setup": "Knock knock.",
  "punchline": "Who's there? Lettuce. Lettuce who? Lettuce in, it's cold out here!",
  "category": "knock_knock",
  "rating": 4.4,
  "createdAt": "2026-05-08T20:49:35.775Z"
}
Draftbit