คู่มือการผสานรวม Housing Market API

ตารางอ้างอิง คำอธิบายเอนด์พอยต์ รหัสข้อผิดพลาด และตัวอย่าง สร้างขึ้นจากสเปกของ API และคงเป็นภาษาอังกฤษในทุกภาษา ชื่อ พารามิเตอร์ และรหัสจะเหมือนกันทุกที่

รหัสข้อผิดพลาด

ข้อผิดพลาดทุกรายการมีสถานะ HTTP และเนื้อหา JSON ที่มี error และ message

ให้แยกการทำงานตาม error และอย่าแยกตาม message เด็ดขาด เพราะข้อความมีไว้สำหรับคนอ่านและอาจเปลี่ยนแปลงได้ อาจมีการเพิ่มรหัสใหม่ ดังนั้นให้ถือว่ารหัสที่ไม่รู้จักเป็นความล้มเหลวตามสถานะ HTTP ที่มาพร้อมกับรหัสนั้น

HTTP 403 มีรหัสที่แตกต่างกันสี่รหัส โปรดอ่านรหัสเพื่อให้ทราบว่าเป็นกรณีใด ได้แก่ ip_not_allowed key_paused country_not_entitled หรือ upgrade_required

CodeHTTPMeaningWhat to do
invalid_cursor400The cursor is malformed, expired, or was issued for a different key or different filters.Start again from the first page with the filters you want.
invalid_parameter400A parameter is unknown, malformed or out of range.Check the parameter name and value against the reference. Unknown parameters are refused, not ignored.
unauthenticated401No key was sent, or the key is not recognised or has been revoked.Send the key in the x-api-key header. Check it in the console.
country_not_entitled403The country is not part of your subscription.Add the country in the console. The same key then covers it.
ip_not_allowed403The key is valid but the request came from an address that is not registered for it.Call GET /v1/ping to see the address we see, then register it in the console.
key_paused403The key is paused, for example after an unpaid renewal or while a payment dispute is reviewed.Open the console to see why. The key resumes automatically once the payment is settled.
upgrade_required403The endpoint belongs to the Advanced tier and the key is Standard.Upgrade in the console. The same key then covers Insights.
not_found404The path does not exist, or the listing it names does not exist in that country or has been withdrawn.Check the path against the reference. For a listing, check the id and the country, and walk the listings again.
method_not_allowed405The method is not allowed for this path. Every endpoint is GET.Use GET.
quota_exceeded429The daily or monthly quota for the key has been used.Wait for the Retry-After period. If you regularly need more, contact support.
rate_limited429The per-minute request limit for the key has been reached.Wait the number of seconds in the Retry-After header, then retry.
internal_error500An unexpected error on our side.Retry later. If it persists, contact support.
not_configured503The service is not configured to accept this request yet.Retry later.
service_unavailable503The service is temporarily unable to answer.Retry later.