API Reference
Search
Search for properties and projects using the search criteria
1 min
code examples curl location request post 'http //localhost 8080/api/v0/search' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'post', headers myheaders, redirect 'follow' }; fetch("http //localhost 8080/api/v0/search", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("http //localhost 8080/api/v0/search") http = net http new(url host, url port); request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = http request(request) puts response read body import requests import json url = "http //localhost 8080/api/v0/search" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses { "searchresponse" { "summary" "successful operation with some results or no results matching the search criteria", "description" "searchresponse", "value" { "projects" \[ { "id" "9q8yg862", "name" "istanbul life", "description" "istanbul life is a project that is located in istanbul", "country" "turkey", "city" "istanbul", "lastupdatedat" "2023 03 26t14 53 52", "lat" 40 9814, "lng" 29 0247, "titledeedstatus" "ready", "area" "kadikoy", "type" "residential", "citizenshipeligible" true, "readyfordelivery" true, "imageurls" \[ "https //d18iwq8rvfnbhk cloudfront net/images/project/1/images cb4ae8be 5b0e 4342 9231 45b804f300df" ], "videourls" \[ "https //d18iwq8rvfnbhk cloudfront net/videos/project/1/videos c1e40a41 2716 4dfc 830e 884c7ab3f9e9" ], "facilities" \[ "sauna", "jacuzzi", "pool", "gym", "tennis", "squash", "spa", "restaurant", "bar", "cafe", "playground" ], "properties" \[ { "id" "7vd318z4", "name" "1+1", "description" "our 1+1 apartments are located in istanbul", "minprice" 2000000, "maxprice" 2200000, "measurement" "sqm2", "numberofrooms" "oneplusone", "size" 46, "lastupdatedat" "2023 03 26t15 01 35", "currency" "try", "paymentplan" "cash", "features" \[ "balcony", "american kitchen", "kitchenette", "sea view", "balcony" ], "imageurls" \[ "https //d18iwq8rvfnbhk cloudfront net/images/images 8e9853dd 639b 419b 8c74 98f9eb850b97" ], "videourls" \[ "https //d18iwq8rvfnbhk cloudfront net/videos/videos 8e9853dd 639b 419b 8c74 98f9eb850b97" ], "planurls" \[ "https //d18iwq8rvfnbhk cloudfront net/plans/properties/9q8yg862/plans 79a932fb 57a6 45e8 b14d 5c09d15857bd", "https //d18iwq8rvfnbhk cloudfront net/plans/properties/9q8yg862/plans fae7ac01 03cf 4ecf aa47 7071122fd355" ] } ] } ] } } }{ "errorresponse" { "summary" "bad request, some of the parameters are not valid", "description" "errorresponse", "value" { "success" false, "code" 1, "message" "some of the parameters are not valid" } } }// access denied, you don't have the right permissions { "success" false, "code" "", "messages" {}, "time" "" }// system exception, please contact the administrator { "success" false, "code" "", "messages" {}, "time" "" }