Agent #1
RE/MAX · land · 15 yrs
curl -sS \
"https://example-data.com/api/v1/agents/1" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/agents/1"
);
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/1"
);
const agent = (await res.json()) as Agent;import requests
res = requests.get(
"https://example-data.com/api/v1/agents/1"
)
agent = res.json() {
"id": 1,
"userId": 55,
"brokerage": "RE/MAX",
"licenseNumber": "HFQC39M9VT",
"specialty": "land",
"yearsExperience": 15,
"rating": 4.8,
"ratingCount": 77,
"createdAt": "2024-06-01T00:18:28.217Z"
}