Agent #23
Compass · rental · 21 yrs
curl -sS \
"https://example-data.com/api/v1/agents/23" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/agents/23"
);
const agent = await res.json();import type { Agent } from "https://example-data.com/types/agents.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/agents/23"
);
const agent = (await res.json()) as Agent;import requests
res = requests.get(
"https://example-data.com/api/v1/agents/23"
)
agent = res.json() {
"id": 23,
"userId": 62,
"brokerage": "Compass",
"licenseNumber": "G3G8B3T1XT",
"specialty": "rental",
"yearsExperience": 21,
"rating": 3.1,
"ratingCount": 63,
"createdAt": "2018-01-03T18:24:20.839Z"
}