Skip to main content

Overview

The Listings API returns published property listings (for sale or rent) from the AnyHouse platform. Which listings you get depends on your API key:
  • AnyHouse API key — Returns all published listings (full catalog). Used by the AnyHouse app and main website.
  • Platform API key — Returns only listings from agencies connected to your platform. Used by partners (e.g. whitelabel sites, portals) that show a subset of inventory.
Authentication is required via Bearer token or X-Api-Key header. Without a valid key, the request returns 401 Unauthorized.

Endpoint

GET
Example request:

Authentication

You must send an API key with every request. You can use either of the following methods.

Bearer Token

Use the standard Authorization header.

X-Api-Key

Use your partner API key.

Option 1 — Bearer Token

Option 2 — X-Api-Key Header

How the API key affects results

Contact AnyHouse to obtain an AnyHouse API key or to register your platform and receive a platform-specific key.

Query Parameters

All parameters are optional. Use them to filter and paginate results.

Example Request


Success Response

The response is a JSON object with a data array of listing objects and pagination cursors.

Pagination

  • Use the cursor or next_cursor value from the response as the cursor query parameter in the next request to get the following page.
  • When there are no more results, cursor and next_cursor may be null or omitted.

Error Responses

401 — Unauthorized

Missing or invalid API key.
Or, when a key is sent but not valid:

422 — Validation Error

Invalid query parameters (e.g. invalid listing_type, invalid geo format).

  • Listing Types — IDs and labels for the listing_type parameter (Apartment, Villa, Land, etc.).
  • Specifications — IDs and labels for the specifications parameter (Pool, Beachfront, Gym, etc.).

When to Use This Endpoint

Use GET /api/listings when:
  • You are building an app or website that displays AnyHouse property inventory.
  • You have an AnyHouse API key and want the full catalog, or a platform API key and want only your platform’s listings.
  • You need to filter by type (buy/rent), price, bedrooms, location, or search, and paginate with cursors.