Agent #22
Coldwell Banker · rental · 24 yrs
Overview
agents / #22
Coldwell Banker · rental · 24 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/22" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/22" ); 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/22"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/22"
)
agent = res.json() Response
{
"id": 22,
"userId": 149,
"brokerage": "Coldwell Banker",
"licenseNumber": "GJ4UJY3KKN",
"specialty": "rental",
"yearsExperience": 24,
"rating": 4.9,
"ratingCount": 39,
"createdAt": "2021-01-03T23:55:38.004Z"
}