example-data.com
Menu
Browse docs and collections

Overview

stem-figures / #9

Katherine Johnson

Katherine Johnson

Ver consequuntur video anser confido aut abutor occaecati aufero patria. Atrox iure deorsum vulnero adaugeo vobis vorago decumbo ultio adamo. Amissio consequatur asper caecus praesentium.

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 9,
  "name": "Katherine Johnson",
  "slug": "katherine-johnson",
  "field": "mathematics",
  "bio": "Ver consequuntur video anser confido aut abutor occaecati aufero patria. Atrox iure deorsum vulnero adaugeo vobis vorago decumbo ultio adamo. Amissio consequatur asper caecus praesentium.",
  "bornYear": 1918,
  "diedYear": 2020,
  "country": "United States",
  "imageUrl": "https://picsum.photos/seed/stem-9/600/600",
  "accomplishments": [
    "NASA orbital calculations",
    "Presidential Medal of Freedom"
  ],
  "createdAt": "2024-11-10T18:39:22.241Z"
}