example-data.com

people / #122

Component variants

curl -sS \
  "https://example-data.com/api/v1/people/122" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/people/122"
);
const people = await res.json();
import type { People } from "https://example-data.com/types/people.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/people/122"
);
const people = (await res.json()) as People;
import requests

res = requests.get(
    "https://example-data.com/api/v1/people/122"
)
people = res.json()
{
  "id": 122,
  "fullName": "Gerda Olson",
  "firstName": "Gerda",
  "lastName": "Olson",
  "email": "gerda.olson-122@example.com",
  "phone": "(272) 788-4248",
  "occupation": "Chief Data Orchestrator",
  "city": "Lake Micahburgh",
  "countryAlpha2": "FR",
  "bio": "dreamer, engineer",
  "avatarUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=person-122",
  "createdAt": "2023-10-04T09:02:36.661Z"
}
Draftbit