example-data.com
Menu
Browse docs and collections

Overview

listings / #125

Townhouse in West Maya

townhouse · West Maya · $3,657,400

7898 West Road

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/listings/125"
);
const listing = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/listings.d.ts https://example-data.com/types/listings.d.ts
import type { Listing } from "./types/listings";

const res = await fetch(
  "https://example-data.com/api/v1/listings/125"
);
const listing = (await res.json()) as Listing;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/listings/125"
)
listing = res.json()

Response

{
  "id": 125,
  "agentUserId": 20,
  "propertyType": "townhouse",
  "title": "Townhouse in West Maya",
  "description": "Necessitatibus verto valeo stella vinco sortitus contigo templum. Sunt aedificium quos depereo acidus. Patrocinor contego conspergo tero.\n\nAdvoco tardus tandem tendo. Officia arbustum crustulum celer canto bos appositus cernuus. Aureus demens subito vos arto velum.",
  "price": 3657400,
  "currency": "USD",
  "bedrooms": 2,
  "bathrooms": 5,
  "squareFeet": 2283,
  "address": "7898 West Road",
  "city": "West Maya",
  "region": "Wisconsin",
  "countryAlpha2": "CO",
  "latitude": -17.091084,
  "longitude": -145.553633,
  "status": "active",
  "listedAt": "2024-07-02T03:37:03.532Z",
  "createdAt": "2024-07-01T08:47:04.501Z",
  "updatedAt": "2026-02-09T11:27:07.225Z"
}