Agent #20
Century 21 · land · 23 yrs
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/20" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/20" ); const agent = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/agents.d.ts https://example-data.com/types/agents.d.ts
import type { Agent } from "./types/agents";
const res = await fetch(
"https://example-data.com/api/v1/agents/20"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/20"
)
agent = res.json() Response
{
"id": 20,
"userId": 143,
"brokerage": "Century 21",
"licenseNumber": "Y9A9AAUVR0",
"specialty": "land",
"yearsExperience": 23,
"rating": 4.6,
"ratingCount": 288,
"createdAt": "2019-12-01T00:47:01.749Z"
}