API Example - HomePrice

HomePrice Valuation API Service Example

Action Get all Estates
Request GET https://api.homeprice.com.hk/getEstates?key=[your_api_key]
Reponse {"status":"ok","estates":[{"id":"5xZ31c5n5sOzkeRjXiD0_g","name":"太古城","ename":"Taikoo Shing","district":"東區"},{"id":"3WaVl6oWw64kfwhM1LjXZA","name":"永豐大樓","ename":"Wing Fung Building","district":"灣仔"},{"id":"7_fjHUilW_OwQmAN3NhbNA","name":"金碧大廈","ename":"Kam Bit Building","district":"九龍城"}]}
Action Get all Buildings within an Estate
Request GET https://api.homeprice.com.hk/getBuildings?key=[your_api_key]&estate=5xZ31c5n5sOzkeRjXiD0_g
Reponse {"status":"ok","buildings":[{"id":"PjJK4CGxfvoqo9P7hF_8LQ","name":"元宮閣","ename":"YUAN KUNG MANSION"},{"id":"Wcx8iTKDh-lLF4gl-MEkUw","name":"天山閣","ename":"TIEN SHAN MANSION"},{"id":"VPVzLZ7sfYvM8IFQu7DBXQ","name":"天星閣","ename":"TIEN SING MANSION"}]}
Action Get valuations of all Units within a Buildings
Request GET https://api.homeprice.com.hk/getValuations?key=[your_api_key]&building=PjJK4CGxfvoqo9P7hF_8LQ
Reponse {"status":"ok","units":[{"floor":"10","unit":"A","size":806,"price":1385},{"floor":"10","unit":"B","size":818,"price":1390},{"floor":"10","unit":"C","size":818,"price":1362},{"floor":"10","unit":"D","size":800,"price":1238},{"floor":"10","unit":"E","size":800,"price":1260},{"floor":"10","unit":"F","size":675,"price":1042}]}