Agent #2
RE/MAX · residential · 2 yrs
Overview
agents / #2
RE/MAX · residential · 2 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/2" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/2" ); 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/2"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/2"
)
agent = res.json() Response
{
"id": 2,
"userId": 135,
"brokerage": "RE/MAX",
"licenseNumber": "5S488SFLBR",
"specialty": "residential",
"yearsExperience": 2,
"rating": 3.9,
"ratingCount": 211,
"createdAt": "2022-02-05T06:11:12.579Z"
}