Agent #39
Coldwell Banker · commercial · 27 yrs
Overview
agents / #39
Coldwell Banker · commercial · 27 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/39" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/39" ); 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/39"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/39"
)
agent = res.json() Response
{
"id": 39,
"userId": 87,
"brokerage": "Coldwell Banker",
"licenseNumber": "8BM56GB7IC",
"specialty": "commercial",
"yearsExperience": 27,
"rating": 4.8,
"ratingCount": 218,
"createdAt": "2024-09-17T03:02:08.167Z"
}