The journey of a thousand miles begins with one step.
- text
- The journey of a thousand miles begins with one step.
- authorName
- Lao Tzu
- source
- —
- category
- Motivation
- createdAt
Overview
quotes / #22
Request
curl example
curl -sS \ "https://example-data.com/api/v1/quotes/22" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/quotes/22" ); 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/22"
);
const quote = (await res.json()) as Quote; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/quotes/22"
)
quote = res.json() Response
{
"id": 22,
"text": "The journey of a thousand miles begins with one step.",
"authorName": "Lao Tzu",
"source": null,
"category": "Motivation",
"createdAt": "2024-09-30T03:31:58.538Z"
}