example-data.com
Menu
Browse docs and collections

Overview

activists / #20

Marsha P. Johnson

Marsha P. Johnson

Uterque astrum capio statim demulceo occaecati tot tabella reprehenderit absens. Candidus claudeo confero conatus aptus. Aufero adipiscor pauci.

Component variants

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/activists/20" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/activists/20"
);
const activist = await res.json();

TypeScript example

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

const res = await fetch(
  "https://example-data.com/api/v1/activists/20"
);
const activist = (await res.json()) as Activist;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/activists/20"
)
activist = res.json()

Response

{
  "id": 20,
  "name": "Marsha P. Johnson",
  "slug": "marsha-p-johnson",
  "bio": "Uterque astrum capio statim demulceo occaecati tot tabella reprehenderit absens. Candidus claudeo confero conatus aptus. Aufero adipiscor pauci.",
  "bornYear": 1945,
  "diedYear": 1992,
  "causes": [
    "LGBTQ rights",
    "Trans rights"
  ],
  "country": "United States",
  "imageUrl": "https://picsum.photos/seed/activist-20/600/600",
  "accomplishments": [
    "Stonewall uprising leader",
    "AIDS activism"
  ],
  "createdAt": "2025-01-23T07:51:25.494Z"
}