Try not to become a person of success, but rather try to become a person of value.
- text
- Try not to become a person of success, but rather try to become a person of value.
- authorName
- Albert Einstein
- source
- —
- category
- Success
- createdAt
Overview
quotes / #17
Request
curl example
curl -sS \ "https://example-data.com/api/v1/quotes/17" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/quotes/17" ); 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/17"
);
const quote = (await res.json()) as Quote; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/quotes/17"
)
quote = res.json() Response
{
"id": 17,
"text": "Try not to become a person of success, but rather try to become a person of value.",
"authorName": "Albert Einstein",
"source": null,
"category": "Success",
"createdAt": "2024-08-28T06:07:06.950Z"
}