Agent #28
Compass · luxury · 22 yrs
Overview
agents / #28
Compass · luxury · 22 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/28" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/28" ); 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/28"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/28"
)
agent = res.json() Response
{
"id": 28,
"userId": 98,
"brokerage": "Compass",
"licenseNumber": "QSUWQ2NA7H",
"specialty": "luxury",
"yearsExperience": 22,
"rating": 4.3,
"ratingCount": 214,
"createdAt": "2018-10-03T22:16:50.956Z"
}