Agent #38
Keller Williams · luxury · 27 yrs
Overview
agents / #38
Keller Williams · luxury · 27 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/38" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/38" ); 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/38"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/38"
)
agent = res.json() Response
{
"id": 38,
"userId": 205,
"brokerage": "Keller Williams",
"licenseNumber": "O6106X088Z",
"specialty": "luxury",
"yearsExperience": 27,
"rating": 5,
"ratingCount": 206,
"createdAt": "2023-12-25T15:39:23.369Z"
}