curl -sS \
"https://example-data.com/api/v1/jokes/123" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/jokes/123"
);
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/123"
);
const joke = (await res.json()) as Joke;import requests
res = requests.get(
"https://example-data.com/api/v1/jokes/123"
)
joke = res.json() {
"id": 123,
"setup": "Quidem trepide capio callide censura considero odio.",
"punchline": "Curatio temptatio tamisium sopor vinitor curtus asporto earum.",
"category": "other",
"rating": 4.7,
"createdAt": "2026-05-11T10:32:29.822Z"
}