people
people
Page 9 of 9.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/people?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/people?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/people";
const res = await fetch(
"https://example-data.com/api/v1/people?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Person>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/people",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 193,
"fullName": "Damon Terry",
"firstName": "Damon",
"lastName": "Terry",
"email": "damon.terry-193@example.com",
"phone": "+1 202-555-0192 ext 2",
"occupation": "District Group Strategist",
"city": "Fort Antoinettemouth",
"countryAlpha2": "CN",
"bio": "hubris devotee, streamer",
"avatarUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=person-193",
"createdAt": "2021-09-14T23:21:27.796Z"
},
{
"id": 194,
"fullName": "Brandon Schaden",
"firstName": "Brandon",
"lastName": "Schaden",
"email": "brandon.schaden-194@example.com",
"phone": "+1 202-555-0193 ext 2",
"occupation": "Legacy Metrics Representative",
"city": "Fort Eloisa",
"countryAlpha2": "CA",
"bio": "traveler, geek, streamer",
"avatarUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=person-194",
"createdAt": "2021-06-17T16:15:36.277Z"
},
{
"id": 195,
"fullName": "Aimee Watsica",
"firstName": "Aimee",
"lastName": "Watsica",
"email": "aimee.watsica-195@example.com",
"phone": "+1 202-555-0194 ext 2",
"occupation": "Global Division Designer",
"city": "Port Pedroberg",
"countryAlpha2": "AR",
"bio": "pantyhose junkie, coach 🇵🇾",
"avatarUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=person-195",
"createdAt": "2023-11-25T12:46:39.989Z"
}
],
"meta": {
"page": 9,
"limit": 24,
"total": 200,
"totalPages": 9
},
"links": {
"self": "/api/v1/people?page=9&limit=24",
"first": "/api/v1/people?page=1&limit=24",
"last": "/api/v1/people?page=9&limit=24",
"next": null,
"prev": "/api/v1/people?page=8&limit=24"
}
}