Agent #12
Redfin · rental · 34 yrs
agents / #12
Redfin · rental · 34 yrs
curl -sS \
"https://example-data.com/api/v1/agents/12" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/agents/12"
);
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/12"
);
const agent = (await res.json()) as Agent;import requests
res = requests.get(
"https://example-data.com/api/v1/agents/12"
)
agent = res.json() {
"id": 12,
"userId": 142,
"brokerage": "Redfin",
"licenseNumber": "JKGYRNOOFV",
"specialty": "rental",
"yearsExperience": 34,
"rating": 3.1,
"ratingCount": 231,
"createdAt": "2023-12-31T13:38:04.086Z"
}