Whether you think you can, or you think you can't — you're right.
- text
- Whether you think you can, or you think you can't — you're right.
- authorName
- Henry Ford
- source
- —
- category
- Mindset
- createdAt
Overview
quotes / #4
Request
curl example
curl -sS \ "https://example-data.com/api/v1/quotes/4" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/quotes/4" ); 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/4"
);
const quote = (await res.json()) as Quote; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/quotes/4"
)
quote = res.json() Response
{
"id": 4,
"text": "Whether you think you can, or you think you can't — you're right.",
"authorName": "Henry Ford",
"source": null,
"category": "Mindset",
"createdAt": "2025-04-12T12:13:30.104Z"
}