Agent #25
Coldwell Banker · land · 35 yrs
Overview
agents / #25
Coldwell Banker · land · 35 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/25" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/25" ); 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/25"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/25"
)
agent = res.json() Response
{
"id": 25,
"userId": 36,
"brokerage": "Coldwell Banker",
"licenseNumber": "KWS5RPBD94",
"specialty": "land",
"yearsExperience": 35,
"rating": 4.3,
"ratingCount": 81,
"createdAt": "2021-07-18T14:23:21.197Z"
}