Agent #48
Douglas Elliman · luxury · 20 yrs
Overview
agents / #48
Douglas Elliman · luxury · 20 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/48" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/48" ); 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/48"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/48"
)
agent = res.json() Response
{
"id": 48,
"userId": 23,
"brokerage": "Douglas Elliman",
"licenseNumber": "OWSNEFRDRZ",
"specialty": "luxury",
"yearsExperience": 20,
"rating": 4.5,
"ratingCount": 272,
"createdAt": "2020-03-30T20:57:01.727Z"
}