Agent #26
RE/MAX · rental · 24 yrs
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/26" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/26" ); 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/26"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/26"
)
agent = res.json() Response
{
"id": 26,
"userId": 227,
"brokerage": "RE/MAX",
"licenseNumber": "8RFLYG6HO5",
"specialty": "rental",
"yearsExperience": 24,
"rating": 3.5,
"ratingCount": 263,
"createdAt": "2022-05-31T06:34:57.046Z"
}