Mohamed Dach
teacher
- Phone
- +1 202-555-0180 ext 2
Overview
people / #181
teacher
Mohamed Dach
teacher
Request
curl example
curl -sS \ "https://example-data.com/api/v1/people/181" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/people/181" ); 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/181"
);
const person = (await res.json()) as Person; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/people/181"
)
people = res.json() Response
{
"id": 181,
"fullName": "Mohamed Dach",
"firstName": "Mohamed",
"lastName": "Dach",
"email": "mohamed.dach-181@example.com",
"phone": "+1 202-555-0180 ext 2",
"occupation": "Future Operations Executive",
"city": "Michelborough",
"countryAlpha2": "AU",
"bio": "teacher",
"avatarUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=person-181",
"createdAt": "2023-05-07T20:30:06.496Z"
}