Buck Hayes
individual enthusiast
- Phone
- +1 202-555-0158 ext 2
Overview
people / #159
individual enthusiast
Request
curl example
curl -sS \ "https://example-data.com/api/v1/people/159" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/people/159" ); const person = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/people.d.ts https://example-data.com/types/people.d.ts
import type { Person } from "./types/people";
const res = await fetch(
"https://example-data.com/api/v1/people/159"
);
const person = (await res.json()) as Person; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/people/159"
)
people = res.json() Response
{
"id": 159,
"fullName": "Buck Hayes",
"firstName": "Buck",
"lastName": "Hayes",
"email": "buck.hayes-159@example.com",
"phone": "+1 202-555-0158 ext 2",
"occupation": "Chief Accountability Liaison",
"city": "Lake Dana",
"countryAlpha2": "NL",
"bio": "individual enthusiast",
"avatarUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=person-159",
"createdAt": "2021-07-14T08:24:02.466Z"
}