quotes / #2
- text
- Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.
- authorName
- Albert Einstein
- source
- —
- category
- Humor
- createdAt
Component variants
curl -sS \
"https://example-data.com/api/v1/quotes/2" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/quotes/2"
);
const quote = await res.json();import type { Quote } from "https://example-data.com/types/quotes.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/quotes/2"
);
const quote = (await res.json()) as Quote;import requests
res = requests.get(
"https://example-data.com/api/v1/quotes/2"
)
quote = res.json() {
"id": 2,
"text": "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.",
"authorName": "Albert Einstein",
"source": null,
"category": "Humor",
"createdAt": "2025-03-11T19:49:33.074Z"
}