example-data.com

people / #18

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/people/18"
)
people = res.json()
{
  "id": 18,
  "fullName": "Nels King",
  "firstName": "Nels",
  "lastName": "King",
  "email": "nels.king-18@example.com",
  "phone": "(214) 933-6376",
  "occupation": "Regional Division Liaison",
  "city": "West Busterview",
  "countryAlpha2": "DE",
  "bio": "friend, veteran, musician",
  "avatarUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=person-18",
  "createdAt": "2024-05-05T21:07:16.256Z"
}
Draftbit