example-data.com
Menu
Browse docs and collections

Overview

agents / #1

Agent #1

RE/MAX · land · 15 yrs

Component variants

Related

Request

curl example

          curl -sS \
  "https://example-data.com/api/v1/agents/1" \
  -H "Accept: application/json"
        

JavaScript example

          const res = await fetch(
  "https://example-data.com/api/v1/agents/1"
);
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/1"
);
const agent = (await res.json()) as Agent;
        

Python example

          import requests

res = requests.get(
    "https://example-data.com/api/v1/agents/1"
)
agent = res.json()
        

Response

{
  "id": 1,
  "userId": 55,
  "brokerage": "RE/MAX",
  "licenseNumber": "HFQC39M9VT",
  "specialty": "land",
  "yearsExperience": 15,
  "rating": 4.8,
  "ratingCount": 77,
  "createdAt": "2024-06-01T00:18:28.217Z"
}