curl -sS \
"https://example-data.com/api/v1/jokes/34" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/jokes/34"
);
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/34"
);
const joke = (await res.json()) as Joke;import requests
res = requests.get(
"https://example-data.com/api/v1/jokes/34"
)
joke = res.json() {
"id": 34,
"setup": "Utilis adsidue amet tenuis deludo una terminatio acies thesaurus curis.",
"punchline": "Caste patior via.",
"category": "other",
"rating": 4.1,
"createdAt": "2025-06-03T05:04:15.364Z"
}