Agent #45
Douglas Elliman · luxury · 31 yrs
Overview
agents / #45
Douglas Elliman · luxury · 31 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/45" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/45" ); 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/45"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/45"
)
agent = res.json() Response
{
"id": 45,
"userId": 21,
"brokerage": "Douglas Elliman",
"licenseNumber": "CTN9W2E4KJ",
"specialty": "luxury",
"yearsExperience": 31,
"rating": 3.8,
"ratingCount": 133,
"createdAt": "2019-01-16T05:14:41.003Z"
}