Hướng dẫn tích hợp Housing Market API

Các bảng tham chiếu, mô tả endpoint, mã lỗi và ví dụ được tạo từ đặc tả API và được giữ nguyên bằng tiếng Anh ở mọi ngôn ngữ. Tên, tham số và mã đều giống nhau ở mọi nơi.

Bộ lọc

Tham số country là bắt buộc. Mọi bộ lọc khác đều thu hẹp kết quả, và các bộ lọc có thể kết hợp với nhau.

Tham số mà endpoint không định nghĩa sẽ bị từ chối với invalid_parameter thay vì bị bỏ qua, nhờ đó bộ lọc viết sai chính tả không thể âm thầm trả về một trang chưa được lọc.

Có thể lọc địa điểm theo mã định danh hoặc theo tên. Tên được so khớp không phân biệt chữ hoa chữ thường. Với mỗi cấp, hãy dùng tên hoặc mã định danh, không dùng cả hai.

Bộ lọc giá so sánh con số đúng như đã đăng, theo đơn vị tiền tệ riêng của từng tin đăng. Không có gì được quy đổi.

Con trỏ gắn liền với các bộ lọc mà nó được cấp cho. Để thay đổi bộ lọc, hãy bắt đầu lại từ trang đầu tiên.

Tham số của 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.