example-data.com
Menu
Browse docs and collections

Overview

stem-figures / #28

John von Neumann

John von Neumann

Verto depopulo coma arceo. Adfectus antepono caelum calcar ambulo. Caste tabella vociferor terga tergeo amicitia delibero cunae cruentus.

Component variants

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/stem-figures/28"
);
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/28"
);
const stemFigure = (await res.json()) as StemFigure;

Python example

import requests

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

Response

{
  "id": 28,
  "name": "John von Neumann",
  "slug": "john-von-neumann",
  "field": "mathematics",
  "bio": "Verto depopulo coma arceo. Adfectus antepono caelum calcar ambulo. Caste tabella vociferor terga tergeo amicitia delibero cunae cruentus.",
  "bornYear": 1903,
  "diedYear": 1957,
  "country": "Hungary",
  "imageUrl": "https://picsum.photos/seed/stem-28/600/600",
  "accomplishments": [
    "Von Neumann architecture",
    "Game theory"
  ],
  "createdAt": "2024-06-08T15:44:17.395Z"
}