Agent #10
Keller Williams · rental · 0 yrs
Overview
agents / #10
Keller Williams · rental · 0 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/10" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/10" ); 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/10"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/10"
)
agent = res.json() Response
{
"id": 10,
"userId": 226,
"brokerage": "Keller Williams",
"licenseNumber": "WWJO03Z4QD",
"specialty": "rental",
"yearsExperience": 0,
"rating": 4.7,
"ratingCount": 2,
"createdAt": "2016-09-13T21:43:06.356Z"
}