Agent #42
Century 21 · commercial · 21 yrs
Overview
agents / #42
Century 21 · commercial · 21 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/42" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/42" ); 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/42"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/42"
)
agent = res.json() Response
{
"id": 42,
"userId": 200,
"brokerage": "Century 21",
"licenseNumber": "FZVOZFIPI6",
"specialty": "commercial",
"yearsExperience": 21,
"rating": 3,
"ratingCount": 299,
"createdAt": "2019-05-05T16:28:02.168Z"
}