Agent #30
Keller Williams · land · 31 yrs
Overview
agents / #30
Keller Williams · land · 31 yrs
Request
curl example
curl -sS \ "https://example-data.com/api/v1/agents/30" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/agents/30" ); 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/30"
);
const agent = (await res.json()) as Agent; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/agents/30"
)
agent = res.json() Response
{
"id": 30,
"userId": 26,
"brokerage": "Keller Williams",
"licenseNumber": "3FS31R40E7",
"specialty": "land",
"yearsExperience": 31,
"rating": 4.2,
"ratingCount": 272,
"createdAt": "2022-04-29T07:54:16.944Z"
}