example-data.com

people / #12

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/people/12"
)
people = res.json()
{
  "id": 12,
  "fullName": "Cyrus Hammes",
  "firstName": "Cyrus",
  "lastName": "Hammes",
  "email": "cyrus.hammes-12@example.com",
  "phone": "(358) 346-3018",
  "occupation": "Forward Optimization Engineer",
  "city": "Carliemouth",
  "countryAlpha2": "ET",
  "bio": "blogger, filmmaker, nerd",
  "avatarUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=person-12",
  "createdAt": "2024-01-19T21:22:46.350Z"
}
Draftbit