Agent #6
Century 21 · commercial · 0 yrs
Overview
agents / #6
Century 21 · commercial · 0 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/6" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/6" ); 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/6"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/6"
)
agent = res.json() Response
{
"id": 6,
"userId": 61,
"brokerage": "Century 21",
"licenseNumber": "WVSQDG9HTK",
"specialty": "commercial",
"yearsExperience": 0,
"rating": 4.5,
"ratingCount": 178,
"createdAt": "2022-12-29T12:17:15.777Z"
}