Agent #5
Century 21 · rental · 3 yrs
agents / #5
Century 21 · rental · 3 yrs
curl -sS \
"https://example-data.com/api/v1/agents/5" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/agents/5"
);
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/5"
);
const agent = (await res.json()) as Agent;import requests
res = requests.get(
"https://example-data.com/api/v1/agents/5"
)
agent = res.json() {
"id": 5,
"userId": 92,
"brokerage": "Century 21",
"licenseNumber": "1OAUJO07VT",
"specialty": "rental",
"yearsExperience": 3,
"rating": 4.8,
"ratingCount": 45,
"createdAt": "2021-02-04T11:00:24.123Z"
}