example-data.com
Menu
Browse docs and collections

Overview

stem-figures / #12

Rosalind Franklin

Rosalind Franklin

Tunc facere volaticus undique. Adulatio amplitudo solutio theca solutio cum. Ater appono votum.

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 12,
  "name": "Rosalind Franklin",
  "slug": "rosalind-franklin",
  "field": "science",
  "bio": "Tunc facere volaticus undique. Adulatio amplitudo solutio theca solutio cum. Ater appono votum.",
  "bornYear": 1920,
  "diedYear": 1958,
  "country": "United Kingdom",
  "imageUrl": "https://picsum.photos/seed/stem-12/600/600",
  "accomplishments": [
    "X-ray crystallography of DNA"
  ],
  "createdAt": "2024-09-23T01:13:15.441Z"
}