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.
401 Unauthorized.
Endpoint
GETAuthentication
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 adata array of listing objects and pagination cursors.
Pagination
- Use the
cursorornext_cursorvalue from the response as thecursorquery parameter in the next request to get the following page. - When there are no more results,
cursorandnext_cursormay benullor omitted.
Error Responses
401 — Unauthorized
Missing or invalid API key.422 — Validation Error
Invalid query parameters (e.g. invalidlisting_type, invalid geo format).
Related reference
- Listing Types — IDs and labels for the
listing_typeparameter (Apartment, Villa, Land, etc.). - Specifications — IDs and labels for the
specificationsparameter (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.