example-data.com
Menu
Browse docs and collections

Overview

stem-figures / #16

Tim Berners-Lee

Tim Berners-Lee

Soluta tendo cohibeo crudelis cibus teneo ab. Cuppedia volva ambulo harum theatrum culpa. Vorago vita certus benigne demonstro cubicularis suscipio.

Component variants

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/stem-figures/16"
);
const stemFigure = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/stem-figures.d.ts https://example-data.com/types/stem-figures.d.ts
import type { StemFigure } from "./types/stem-figures";

const res = await fetch(
  "https://example-data.com/api/v1/stem-figures/16"
);
const stemFigure = (await res.json()) as StemFigure;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/stem-figures/16"
)
stem_figure = res.json()

Response

{
  "id": 16,
  "name": "Tim Berners-Lee",
  "slug": "tim-berners-lee",
  "field": "technology",
  "bio": "Soluta tendo cohibeo crudelis cibus teneo ab. Cuppedia volva ambulo harum theatrum culpa. Vorago vita certus benigne demonstro cubicularis suscipio.",
  "bornYear": 1955,
  "diedYear": null,
  "country": "United Kingdom",
  "imageUrl": "https://picsum.photos/seed/stem-16/600/600",
  "accomplishments": [
    "Invented the World Wide Web"
  ],
  "createdAt": "2024-10-15T13:11:23.316Z"
}