Agent #9
RE/MAX · residential · 8 yrs
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/9" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/9" ); 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/9"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/9"
)
agent = res.json() Response
{
"id": 9,
"userId": 168,
"brokerage": "RE/MAX",
"licenseNumber": "1VRVL1NZL1",
"specialty": "residential",
"yearsExperience": 8,
"rating": 4.1,
"ratingCount": 260,
"createdAt": "2023-07-19T03:38:00.193Z"
}