Agent #35
Keller Williams · luxury · 8 yrs
Overview
agents / #35
Keller Williams · luxury · 8 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/35" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/35" ); 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/35"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/35"
)
agent = res.json() Response
{
"id": 35,
"userId": 72,
"brokerage": "Keller Williams",
"licenseNumber": "5GZWGN4WDV",
"specialty": "luxury",
"yearsExperience": 8,
"rating": 4,
"ratingCount": 88,
"createdAt": "2018-02-16T12:32:48.891Z"
}