example-data.com
Menu
Browse docs and collections

Overview

quotes / #113

Patrocinor tunc nostrum aggero decens curriculum adeo adamo tabgo abduco.

text
Patrocinor tunc nostrum aggero decens curriculum adeo adamo tabgo abduco.
authorName
Olive Oberbrunner
source
acer aurum quam
category
Philosophy
createdAt

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 113,
  "text": "Patrocinor tunc nostrum aggero decens curriculum adeo adamo tabgo abduco.",
  "authorName": "Olive Oberbrunner",
  "source": "acer aurum quam",
  "category": "Philosophy",
  "createdAt": "2024-09-12T08:43:36.027Z"
}