example-data.com

people / #146

Component variants

curl -sS \
  "https://example-data.com/api/v1/people/146" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/people/146"
);
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/146"
);
const people = (await res.json()) as People;
import requests

res = requests.get(
    "https://example-data.com/api/v1/people/146"
)
people = res.json()
{
  "id": 146,
  "fullName": "Urban Stark",
  "firstName": "Urban",
  "lastName": "Stark",
  "email": "urban.stark-146@example.com",
  "phone": "(975) 275-3090",
  "occupation": "Principal Operations Director",
  "city": "Veumfort",
  "countryAlpha2": "FR",
  "bio": "scholarship fan, singer",
  "avatarUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=person-146",
  "createdAt": "2023-09-16T15:07:25.395Z"
}
Draftbit