Agent #21
Douglas Elliman · rental · 6 yrs
Overview
agents / #21
Douglas Elliman · rental · 6 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/21" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/21" ); 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/21"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/21"
)
agent = res.json() Response
{
"id": 21,
"userId": 223,
"brokerage": "Douglas Elliman",
"licenseNumber": "YDD8P7DQ7K",
"specialty": "rental",
"yearsExperience": 6,
"rating": 4.5,
"ratingCount": 142,
"createdAt": "2022-12-19T20:08:58.381Z"
}