Housing Market API 集成指南

参考表格、端点说明、错误代码和示例均根据 API 规范生成,在所有语言版本中均保留英文。名称、参数和代码在各处完全相同。

筛选条件

country 参数为必填项。其他每个筛选条件都会缩小结果范围,且多个筛选条件可以组合使用。

端点未定义的参数会被拒绝并返回 invalid_parameter,而不是被忽略,因此拼写错误的筛选条件不会悄无声息地返回未经筛选的页面。

地点可以按标识符或按名称筛选。名称匹配不区分大小写。对于同一层级,请使用名称或标识符之一,不要同时使用两者。

价格筛选条件按发布时的数字进行比较,使用每个房源本身的货币。不进行任何换算。

游标属于签发它时所用的筛选条件。要更改筛选条件,请从第一页重新开始。

GET /v1/properties 的参数

ParameterTypeRequiredValuesDescription
countrystringyespattern ^[A-Z]{2}$ISO 3166-1 alpha-2 code of the country, for example TH. A country outside your subscription is refused with country_not_entitled.
listing_typestringnoall sale rent
default all
Which kind of listing to include. all is the default.
property_typestringnoReturn only this property type, for example condominium. The value is the property_type that listings carry; an unknown value returns an empty page.
province_idintegernomin 1Return only listings in this province or state, by the province_id listings carry.
citystringnoReturn only listings in this city, matched by name without regard to case. Do not combine with city_id.
city_idintegernomin 1Return only listings in this city, by the city_id listings carry.
areastringnoReturn only listings in this district or area, matched by name without regard to case. Do not combine with area_id.
area_idintegernomin 1Return only listings in this district or area, by the area_id listings carry.
min_pricenumbernomin 0Lowest price to include, in the listing's own currency. Prices are never converted, so in a country with listings in more than one currency the filter compares the number as published.
max_pricenumbernomin 0Highest price to include, in the listing's own currency.
min_bedroomsintegernomin 0Fewest bedrooms to include. Listings that do not state a number of bedrooms are left out.
max_bedroomsintegernomin 0Most bedrooms to include. Listings that do not state a number of bedrooms are left out.
published_sincestringnoReturn only listings first published at or after this instant: a date (YYYY-MM-DD, read as midnight UTC) or a date-time with a time zone, for example 2026-10-01T00:00:00Z. A date-time without a time zone is refused with invalid_parameter.
updated_sincestringnoReturn only listings whose last_updated is at or after this instant, in the same format as published_since. Use it to fetch what changed since your last walk. A listing that has been withdrawn is not returned; request it by id to confirm it is gone.
limitintegernodefault 50
min 1
max 100
Page size. At most the maximum shown; larger values are refused with invalid_parameter.
cursorstringnoThe next_cursor of the previous page. Opaque: do not parse it, store it, or build one. It is bound to your key and to the filters of the request that produced it, and a cursor used with different filters is refused with invalid_cursor.