Life is what happens when you're busy making other plans.
- text
- Life is what happens when you're busy making other plans.
- authorName
- John Lennon
- source
- Beautiful Boy
- category
- Life
- createdAt
Overview
quotes / #6
Request
curl example
curl -sS \ "https://example-data.com/api/v1/quotes/6" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/quotes/6" ); const quote = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/quotes.d.ts https://example-data.com/types/quotes.d.ts
import type { Quote } from "./types/quotes";
const res = await fetch(
"https://example-data.com/api/v1/quotes/6"
);
const quote = (await res.json()) as Quote; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/quotes/6"
)
quote = res.json() Response
{
"id": 6,
"text": "Life is what happens when you're busy making other plans.",
"authorName": "John Lennon",
"source": "Beautiful Boy",
"category": "Life",
"createdAt": "2025-06-11T01:07:06.542Z"
}