Documentation
Everything you need to integrate
The guide, the reference and the specification are generated from one OpenAPI file, so they always agree. Identifiers are the same in every language.
Integration guide
Getting a key, authentication, filters, pagination, limits and errors, in your language.
OpenAPI specification
The OpenAPI 3.1 file the reference is generated from, for code generators and API tools.
PDF guide
The integration guide as one document, to read offline or share with your team.
The documentation is public. You need a key only to call the API.
Quick start
curl -H "x-api-key: $HMA_API_KEY" \
"https://api.housingmarketapi.com/v1/ping"curl -H "x-api-key: $HMA_API_KEY" \
"https://api.housingmarketapi.com/v1/properties?country=TH&listing_type=sale&property_type=condominium&limit=100"At a glance
- Base URL
https://api.housingmarketapi.com- Authentication
- The key in the x-api-key header, sent from the server address registered for it.
Endpoints
| Endpoint | Tier | Description |
|---|---|---|
| GET /v1/ping | Standard | Confirms your key works from the address it is registered to, and echoes that address. |
| GET /v1/properties | Standard | Published listings for a country your key covers, one page at a time. |
| GET /v1/insights/* | Advanced | Aggregated market data by place and period, for Advanced keys. Coming soon: these endpoints are not live yet. |
Error codes
Every error carries an HTTP status and one of these codes. Branch on the code, not on the message.
invalid_parameterinvalid_cursorunauthenticatedip_not_allowedkey_pausedcountry_not_entitledupgrade_requirednot_foundmethod_not_allowedrate_limitedquota_exceededinternal_errornot_configuredservice_unavailable