The only way to do great work is to love what you do.
- text
- The only way to do great work is to love what you do.
- authorName
- Steve Jobs
- source
- Stanford Commencement 2005
- category
- Work
- createdAt
Overview
quotes / #5
Request
curl example
curl -sS \ "https://example-data.com/api/v1/quotes/5" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/quotes/5" ); 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/5"
);
const quote = (await res.json()) as Quote; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/quotes/5"
)
quote = res.json() Response
{
"id": 5,
"text": "The only way to do great work is to love what you do.",
"authorName": "Steve Jobs",
"source": "Stanford Commencement 2005",
"category": "Work",
"createdAt": "2024-06-27T07:25:44.694Z"
}