example-data.com
Menu
Browse docs and collections

Overview

quotes / #16

Success is not final, failure is not fatal: It is the courage to continue that counts.

text
Success is not final, failure is not fatal: It is the courage to continue that counts.
authorName
Winston Churchill
source
category
Motivation
createdAt

Component variants

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/quotes/16" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/quotes/16"
);
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/16"
);
const quote = (await res.json()) as Quote;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/quotes/16"
)
quote = res.json()

Response

{
  "id": 16,
  "text": "Success is not final, failure is not fatal: It is the courage to continue that counts.",
  "authorName": "Winston Churchill",
  "source": null,
  "category": "Motivation",
  "createdAt": "2025-05-07T22:10:49.933Z"
}