Agent #27
Berkshire Hathaway HomeServices · commercial · 13 yrs
Overview
agents / #27
Berkshire Hathaway HomeServices · commercial · 13 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/27" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/27" ); 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/27"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/27"
)
agent = res.json() Response
{
"id": 27,
"userId": 187,
"brokerage": "Berkshire Hathaway HomeServices",
"licenseNumber": "64VL77ELFM",
"specialty": "commercial",
"yearsExperience": 13,
"rating": 5,
"ratingCount": 115,
"createdAt": "2023-03-13T21:24:50.005Z"
}