Existing Casafari API · API v1 · Properties
Search properties
https://api.casafari.com/v1/properties/searchSend Authorization: Token $CASAFARI_TOKEN with your existing API token; see where to get it.
The same path under /api, signed in with a bearer token, is in the REST API reference: POST /api/v1/properties/search.
Description
Search properties.
Query parameters
limitintegeroffsetintegerorderstringasc descorder_bystringprice price_per_sqm total_area plot_area bedrooms construction_year last_update time_on_marketRequest body
Content type application/json. Optional. Type: object.
search_operationsstring[]requiredsale sold sale_hold rent rented rent_holdlocation_idsinteger[]custom_location_boundaryobject3 properties
polygonobject[]polygons field instead.2 properties
latitudenumberrequiredlongitudenumberrequiredcircleobject2 properties
distancenumbertarget_point to the properties.target_pointobjectrequired3 properties
coordinatesobject2 properties
latitudenumberrequiredlongitudenumberrequiredaddressstringcadastral_referenceobject4 properties
country_codestringrequiredEScadastral_referencestringrequiredprovincestringmunicipalitystringpolygonsobject[][]2 properties
latitudenumberrequiredlongitudenumberrequiredconditionsstring[]used ruin very-good new otherproperty_date_fromstring (date)YYYY-MM-DD) of the period for property of interest.property_date_tostring (date)YYYY-MM-DD) of the period for property of interest.created_date_fromstring (date-time)YYYY-MM-DDTHH:mm:ss).created_date_tostring (date-time)YYYY-MM-DDTHH:mm:ss).updated_date_fromstring (date-time)YYYY-MM-DDTHH:mm:ss).updated_date_tostring (date-time)YYYY-MM-DDTHH:mm:ss).price_fromintegerprice_tointegerprice_per_sqm_fromintegerprice_per_sqm_tointegerbedrooms_fromintegerbedrooms_tointegerbathrooms_fromintegerbathrooms_tointegertotal_area_fromintegertotal_area_tointegerplot_area_fromintegerplot_area_tointegerconstruction_year_fromintegerconstruction_year_tointegerfloorstringfloors field instead.no_floor ground middle topfloorsstring[]no_floor ground middle toporientationstringexterior interiorviewstringviews field instead.water landscape city golf parkviewsstring[]water landscape city golf parkdirectionstringdirections field instead.north south east westdirectionsstring[]north south east westcharacteristicsobject2 properties
must_havestring[]balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityexcludestring[]balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuitytypesstring[]40 allowed values
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel other_commercial restaurant werkstatt plot urban_plot rural_plot room other garage parking apartment_building office_building mix_use_buildingproperty_typesstring[]types field instead.40 allowed values
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel other_commercial restaurant werkstatt plot urban_plot rural_plot room other garage parking apartment_building office_building mix_use_buildingprivatebooleanauctionbooleanbank filter is also set, the result will contain both auction and bank properties)bankbooleanauction filter is also set, the result will contain both bank and auction properties)casafari_connectbooleanlisting_agentsstring[]with_agenciesstring[]without_agenciesstring[]exclusivebooleanprivate, with_agencies, without_agencies.ref_numbersstring[]energy_certificatestringenergy_ratings field instead.Unknown A+ A B C D E F G Henergy_certificatesstring[]energy_ratings field instead.Unknown A+ A B C D E F G Henergy_ratingsstring[]Unknown A+ A B C D E F G Hdays_on_market_fromintegerdays_on_market_tointegergross_yield_fromnumbergross_yield_tonumberrooms_fromintegerrooms_tointegernumber_of_parkings_fromintegernumber_of_parkings_tointegerliving_area_fromintegerliving_area_tointegerfloor_numbersinteger[]Example request
Placeholders only: replace the token and the values with your own.
curl -X POST "https://api.casafari.com/v1/properties/search" \
-H "Authorization: Token $CASAFARI_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"search_operations": [
"rented",
"rent"
],
"conditions": [
"used"
],
"location_ids": [
499
],
"custom_location_boundary": {
"circle": {
"distance": 30,
"target_point": {
"coordinates": {
"latitude": 38.71,
"longitude": -9.17
}
}
}
},
"price_from": 800,
"price_to": 10000,
"price_per_sqm_from": 5,
"price_per_sqm_to": 50,
"bedrooms_from": 1,
"bedrooms_to": 3,
"bathrooms_from": 1,
"bathrooms_to": 2,
"rooms_from": 1,
"rooms_to": 4,
"number_of_parkings_from": 1,
"number_of_parkings_to": 2,
"total_area_from": 30,
"total_area_to": 1000,
"living_area_from": 20,
"living_area_to": 800,
"floor_numbers": [
1,
2,
3
],
"views": [
"city"
],
"directions": [
"west",
"south"
],
"floors": [
"middle",
"top"
],
"energy_ratings": [
"A",
"B",
"C"
],
"casafari_connect": true
}'Responses
200
Type: object[].
Show the response shape (172 fields)
countintegernextstring (uri)nullablepreviousstring (uri)nullableresultsobject64 properties
property_idintegerrequiredprimary_listing_idintegerrequiredtypestringrequired40 allowed values
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel other_commercial restaurant werkstatt plot urban_plot rural_plot room other garage parking apartment_building office_building mix_use_buildingtype_groupstringrequiredoperationsstring[]requiredsale rentlocationobjectrequired4 properties
location_idintegerrequirednamestringrequiredadministrative_levelstringrequiredzip_codesstring[]locations_structureobject[]required4 properties
location_idintegerrequirednamestringrequiredadministrative_levelstringrequiredzip_codesstring[]coordinatesobjectrequired2 properties
latitudenumberrequiredlongitudenumberrequiredtotal_areaintegerrequiredliving_areaintegerrequiredplot_areaintegerrequiredterrace_areaintegerrequiredbathroomsintegerrequiredbedroomsintegerrequiredroomsintegerrequirednumber_of_parkingsintegernullablefloor_numberintegerrequiredrent_currencystringrequiredrent_periodstringrequiredday week fortnight month year nonerent_priceintegerrequiredrent_currency field).rent_statusstringrequiredactive reserved hold rented nonesale_currencystringrequiredsale_priceintegerrequiredsale_currency field).sale_statusstringrequiredactive reserved hold sold noneis_private_propertybooleanrequiredfeaturesobjectrequired7 properties
floorstringrequiredno_floor ground middle toporientationstringrequiredexterior interiorviewstringrequiredviews field instead.water landscape city golf parkviewsstring[]requiredwater landscape city golf parkdirectionstringrequireddirections field instead.north south east westdirectionsstring[]requirednorth south east westcharacteristicsstring[]requiredbalcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityconditionstringrequiredused ruin very-good new othersale_time_on_marketobjectrequired4 properties
date_startstring (date)requireddate_endstring (date)requireddays_on_marketintegerrequiredhas_untracked_periodbooleanrequiredrent_time_on_marketobjectrequired4 properties
date_startstring (date)requireddate_endstring (date)requireddays_on_marketintegerrequiredhas_untracked_periodbooleanrequiredlistingsobject[]required36 properties
listing_idintegerrequiredtotal_areaintegerrequiredplot_areaintegerrequiredterrace_areaintegerrequiredbedroomsintegerrequiredbathroomsintegerrequiredroomsintegerrequiredsale_statusstringrequiredactive reserved hold sold nonesale_currencystringrequiredsale_priceintegerrequiredsale_currency field).sale_price_baseintegerrequiredrent_statusstringrequiredactive reserved hold rented nonerent_currencystringrequiredrent_priceintegerrequiredrent_currency field).rent_price_baseintegerrequiredagency_legal_idstringrequiredagencystringrequiredlisting_urlstringnullablelisting_old_urlstringnullabledescriptionstringrequiredlisting_uidstringrequiredconstruction_yearintegerrequiredsource_namestringrequiredcontacts_infoobjectrequired3 properties
namestringrequiredemailstring (email)requiredphonestringrequiredenergy_certificatestringrequiredenergy_rating field instead.energy_ratingstringrequiredheating_typestringrequiredceiling_labelstringrequiredcommissionnumberrequiredmin_rent_areaintegerrequiredcompaniesobject[]required2 properties
namestringrequiredcasafari_connect_onbooleanrequiredcreated_atstring (date)requiredfloor_numberintegerrequiredis_privatebooleanrequiredcasafari_connectbooleanrequiredthumbnailsstring[]historyobject[]sale_price_history and rent_price_history field instead.5 properties
sale_priceintegerrequiredsale_currency field).sale_currencystringrequiredrent_priceintegerrequiredrent_currency field).rent_currencystringrequiredchanged_atstring (date)requiredsale_price_historyobject[]4 properties
date_startstring (date)requireddate_endstring (date)requiredsale_price_oldintegerrequiredsale_price_newintegerrequiredrent_price_historyobject[]4 properties
date_startstring (date)requireddate_endstring (date)requiredrent_price_oldintegerrequiredrent_price_newintegerrequiredsale_status_historyobject[]4 properties
date_startstring (date)requireddate_endstring (date)requiredsale_status_oldstringrequiredsale_status_newstringrequiredrent_status_historyobject[]4 properties
date_startstring (date)requireddate_endstring (date)requiredrent_status_oldstringrequiredrent_status_newstringrequiredproperty_urlstringnullableaddressstringrequiredzip_codestringrequireddistancenumbernullablecustom_location_boundary.circle field is defined in the request.descriptionstringrequiredconstruction_yearintegerrequiredrent_price_baseintegerrequiredrent_price_per_sqmnumberrequiredrent_currency field).rent_price_per_sqm_basenumberrequiredsale_price_baseintegerrequiredsale_price_per_sqmnumberrequiredsale_currency field).sale_price_per_sqm_basenumberrequiredis_auction_propertybooleanrequiredis_bank_propertybooleanrequiredchanged_atstring (date)requiredsale_price_last_changeobjectrequired3 properties
change_datestring (date)requiredold_valueintegerrequirednew_valueintegerrequiredrent_price_last_changeobjectrequired3 properties
change_datestring (date)requiredold_valueintegerrequirednew_valueintegerrequiredthumbnailsstring[]picturesstring[]gross_yieldnumberrequiredtitlestringrequiredenergy_certificatestringrequiredenergy_rating field instead.energy_ratingstringrequiredceiling_labelstringrequiredmin_rent_areaintegerrequiredref_numbersstring[]casafari_connectbooleanrequiredsource_floor_numbersinteger[]retail_dataobjectnullable6 properties
facade_measurementsobjectrequired3 properties
heightnumberrequiredlengthnumberrequiredsurfacenumberrequiredtransfer_price_rangeobjectrequired2 properties
gteintegerrequiredlteintegerrequiredis_street_levelbooleanrequirednumber_of_floorsintegerrequirednumber_of_premisesintegerrequiredpossible_business_typesstring[]required400 Bad Request
Type: object.
Show the response shape (1 fields)
errorsobject401 Unauthorized
Type: object.
Show the response shape (1 fields)
detailstring403 Forbidden
Type: object.
Show the response shape (1 fields)
detailstring