Agent #8
Douglas Elliman · luxury · 7 yrs
Overview
agents / #8
Douglas Elliman · luxury · 7 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/8" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/8" ); 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/8"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/8"
)
agent = res.json() Response
{
"id": 8,
"userId": 250,
"brokerage": "Douglas Elliman",
"licenseNumber": "GDR9DRFF56",
"specialty": "luxury",
"yearsExperience": 7,
"rating": 4.9,
"ratingCount": 142,
"createdAt": "2024-11-29T10:04:46.026Z"
}