example-data.com
Menu
Browse docs and collections

Overview

stem-figures / #27

Claude Shannon

Claude Shannon

Alii audax suscipio validus. Sophismata demum avaritia conforto. Ademptio caput aggredior perferendis attonbitus eius.

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 27,
  "name": "Claude Shannon",
  "slug": "claude-shannon",
  "field": "mathematics",
  "bio": "Alii audax suscipio validus. Sophismata demum avaritia conforto. Ademptio caput aggredior perferendis attonbitus eius.",
  "bornYear": 1916,
  "diedYear": 2001,
  "country": "United States",
  "imageUrl": "https://picsum.photos/seed/stem-27/600/600",
  "accomplishments": [
    "Information theory",
    "Digital circuit design"
  ],
  "createdAt": "2025-01-09T08:56:27.978Z"
}