Agent #37
Coldwell Banker · rental · 30 yrs
Overview
agents / #37
Coldwell Banker · rental · 30 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/37" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/37" ); 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/37"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/37"
)
agent = res.json() Response
{
"id": 37,
"userId": 109,
"brokerage": "Coldwell Banker",
"licenseNumber": "4J8U05QVXO",
"specialty": "rental",
"yearsExperience": 30,
"rating": 3.4,
"ratingCount": 126,
"createdAt": "2020-10-07T01:58:37.819Z"
}