Search properties (v1)
POST
https://api.casafari.com/api/v1/properties/searchBearer token81 parameters
Send Authorization: Bearer $CASAFARI_TOKEN; see how to get a token.
Over MCP: no tool does this. MCP and REST compared.
Description
Search properties.
Query parameters
limitintegerNumber of results to return per page.
≤ 100default 20
offsetintegerThe initial index from which to return the results.
≤ 50000
orderstringThe order of search results.
asc descdefault "asc"
order_bystringThe field by which to sort the results.
price 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[]requiredSearch business types for which the property is available.
sale sold sale_hold rent rented rent_holdlocation_idsinteger[]List of location IDs, as returned by the POST /api/v1/references/locations endpoint.
at most 100 items1–2147483647
custom_location_boundaryobjectCustom location to search within. Can be defined as a polygon of geo-points or a circle with a given target point and a distance. Only one value should be provided.
3 properties
polygonobject[]Closed polygon of geo-points to search within. First and last points must match. This field is deprecated and will be removed in the next major update. Please, use
polygons field instead.at least 4 items
2 properties
latitudenumberrequiredLatitude.
-90–90
longitudenumberrequiredLongitude.
-180–180
circleobjectCircle boundary to search within.
2 properties
distancenumberMaximum distance in kilometers from the requested
target_point to the properties.0.05–50default 5
target_pointobjectrequiredTarget point to search around. Can be defined as coordinates, address or cadastral reference of the property. Only one value should be provided.
3 properties
coordinatesobjectTarget point coordinates to search around.
2 properties
latitudenumberrequiredLatitude.
-90–90
longitudenumberrequiredLongitude.
-180–180
addressstringAddress of the property to define the point to search around.
cadastral_referenceobjectCadastral reference of the property to define the point to search around. For now available only for Spain.
4 properties
country_codestringrequiredCountry code following the ISO 3166-1 alpha-2 rules.
EScadastral_referencestringrequiredCadastral reference of the estate.
provincestringName of the estate's province.
municipalitystringName of the estate's municipality.
polygonsobject[][]List of closed polygons of geo-points to search within. Each polygon must contain at least 4 points. First and last points must match in each polygon. Maximum 4 polygons allowed.
at most 4 items
2 properties
latitudenumberrequiredLatitude.
-90–90
longitudenumberrequiredLongitude.
-180–180
conditionsstring[]Property condition, as returned by the GET /api/v1/references/conditions endpoint.
used ruin very-good new otherproperty_date_fromstring (date)Start date (in the format
YYYY-MM-DD) of the period for property of interest.property_date_tostring (date)End date (in the format
YYYY-MM-DD) of the period for property of interest.created_date_fromstring (date-time)Created date from (in the format
YYYY-MM-DDTHH:mm:ss).created_date_tostring (date-time)Created date to (in the format
YYYY-MM-DDTHH:mm:ss).updated_date_fromstring (date-time)Updated date from (in the format
YYYY-MM-DDTHH:mm:ss).updated_date_tostring (date-time)Updated date to (in the format
YYYY-MM-DDTHH:mm:ss).price_fromintegerMinimum price value.
1–2147483647
price_tointegerMaximum price value.
1–2147483647
price_per_sqm_fromintegerMinimum value for price per square meter.
1–2147483647
price_per_sqm_tointegerMaximum value for price per square meter.
1–2147483647
bedrooms_fromintegerMinimum number of bedrooms.
0–15000
bedrooms_tointegerMaximum number of bedrooms.
0–15000
bathrooms_fromintegerMinimum number of bathrooms.
1–15000
bathrooms_tointegerMaximum number of bathrooms.
1–15000
total_area_fromintegerMinimum total area.
1–10000000
total_area_tointegerMaximum total area.
1–10000000
plot_area_fromintegerMinimum plot area.
1–10000000
plot_area_tointegerMaximum plot area.
1–10000000
construction_year_fromintegerMinimum construction year.
1–3000
construction_year_tointegerMaximum construction year.
1–3000
floorstringFloor type. This field is deprecated and will be removed in the next major update. Please, use
floors field instead.no_floor ground middle topfloorsstring[]List of floor types.
no_floor ground middle toporientationstringProperty view orientation.
exterior interiorviewstringView from the property. This field is deprecated and will be removed in the next major update. Please, use
views field instead.water landscape city golf parkviewsstring[]List of views from the property.
water landscape city golf parkdirectionstringCardinal direction the property faces. This field is deprecated and will be removed in the next major update. Please, use
directions field instead.north south east westdirectionsstring[]List of cardinal directions the property faces.
north south east westcharacteristicsobjectProperty characteristics. The field was changed from Array of strings to object. Backwards compatibility is still supported.
2 properties
must_havestring[]Include only properties that have all these characteristics.
balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityexcludestring[]Exclude properties that contain any of these characteristics.
balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuitytypesstring[]Country availability per type is available at the GET /api/v1/references/types endpoint. Property types by type groups: apartment: penthouse, dachgeschosswohnung, erdgeschosswohnung, apartment, etagenwohnung, studio, duplex house: townhouse, reihenmittelhaus, landwirtschaftliche_betriebe, country_house, family_house (DEPRECATED), villa, palace, chalet, zweifamilienhaus, country_estate, reihenendhaus, reihenhaus, bungalow, einfamilienhaus, house room: room building: office_building, apartment_building, mix_use_building investment: retail, hotel, warehouse, office, restaurant, industrial, other_commercial, werkstatt plot: rural_plot, urban_plot, plot (DEPRECATED) other: garage, other, parking
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[]Property types, as returned by the GET /api/v1/references/types endpoint. This field is deprecated and will be removed in the next major update. Please, use
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_buildingprivatebooleanWhether to return properties listed by a private individual, as opposed to an agent or a professional.
auctionbooleanWhether to return auction properties. (If the
bank filter is also set, the result will contain both auction and bank properties)bankbooleanWhether to return bank properties. (If the
auction filter is also set, the result will contain both bank and auction properties)casafari_connectbooleanWhether to return properties that have at least one listing with a company connected to Casafari Connect.
listing_agentsstring[]Return properties from specified agents. To find allowed agent names use the GET /api/v1/references/agents endpoint.
with_agenciesstring[]Return properties from specified agencies, companies or sources. To find allowed agency names use the GET /api/v1/references/agencies endpoint.
without_agenciesstring[]Exclude properties from specified agencies, companies or sources. To find allowed agency names use the GET /api/v1/references/agencies endpoint.
exclusivebooleanWhether to return properties that are available on market exclusively from a single agency or private individual. Can be passed only along with at least one of the fields:
private, with_agencies, without_agencies.ref_numbersstring[]List of reference numbers from listings.
energy_certificatestringEnergy certificate. This field is deprecated and will be removed in the next major update. Please, use
energy_ratings field instead.Unknown A+ A B C D E F G Henergy_certificatesstring[]List of energy certificates. This field is deprecated and will be removed in the next major update. Please, use
energy_ratings field instead.Unknown A+ A B C D E F G Henergy_ratingsstring[]List of energy ratings.
Unknown A+ A B C D E F G Hdays_on_market_fromintegerMinimum days on market value.
1–10000
days_on_market_tointegerMaximum days on market value.
1–10000
gross_yield_fromnumberMinimum gross yield value.
1–20
gross_yield_tonumberMaximum gross yield value.
1–20
rooms_fromintegerMinimum number of rooms.
1–15000
rooms_tointegerMaximum number of rooms.
1–15000
number_of_parkings_fromintegerMinimum number of parking spaces.
1–15000
number_of_parkings_tointegerMaximum number of parking spaces.
1–15000
living_area_fromintegerMinimum living area.
1–10000000
living_area_tointegerMaximum living area.
1–10000000
floor_numbersinteger[]Desired list of floor numbers. Negative values indicate underground floors (e.g. basements). Minimum value is -250. Maximum value is 250.
-250–250
Example request
Placeholders only: replace the token and the values with your own.
curl -X POST "https://api.casafari.com/api/v1/properties/search" \
-H "Authorization: Bearer $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 OK
Type: object[].
Show the response shape (172 fields)
countintegernextstring (uri)nullablepreviousstring (uri)nullableresultsobject64 properties
property_idintegerrequiredID of the property.
primary_listing_idintegerrequiredPrimary listing (ad) ID of the property which is defined after the matching into property.
typestringrequiredProperty type, as returned by the GET /api/v1/references/types endpoint.
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_buildingtype_groupstringrequiredProperty type group, as returned by the GET /api/v1/references/types endpoint.
operationsstring[]requiredOperation types for which property is available.
sale rentlocationobjectrequiredInformation about property location.
4 properties
location_idintegerrequiredLocation ID, as returned by the POST /api/v1/references/locations endpoint.
namestringrequiredLocation name.
administrative_levelstringrequiredLocation administrative level.
zip_codesstring[]The location zip codes.
default []
locations_structureobject[]requiredInformation about all the parent locations (including property location) up to the country.
4 properties
location_idintegerrequiredLocation ID, as returned by the POST /api/v1/references/locations endpoint.
namestringrequiredLocation name.
administrative_levelstringrequiredLocation administrative level.
zip_codesstring[]The location zip codes.
default []
coordinatesobjectrequiredProperty coordinates.
2 properties
latitudenumberrequiredLatitude.
longitudenumberrequiredLongitude.
total_areaintegerrequiredTotal area.
living_areaintegerrequiredLiving area.
plot_areaintegerrequiredPlot area.
terrace_areaintegerrequiredTerrace area.
bathroomsintegerrequiredNumber of bathrooms.
bedroomsintegerrequiredNumber of bedrooms.
roomsintegerrequiredNumber of rooms.
number_of_parkingsintegernullableNumber of parking spaces.
floor_numberintegerrequiredExact floor number. Negative values indicate underground floors (e.g. basements).
rent_currencystringrequiredRent price currency code.
rent_periodstringrequiredRent period.
day week fortnight month year nonerent_priceintegerrequiredCurrent rent price, in the currency of the listings (specified by the
rent_currency field).rent_statusstringrequiredCurrent rent status of the property.
active reserved hold rented nonesale_currencystringrequiredSale price currency code.
sale_priceintegerrequiredCurrent sale price, in the currency of the listings (specified by the
sale_currency field).sale_statusstringrequiredCurrent sale status of the property.
active reserved hold sold noneis_private_propertybooleanrequiredWhether the property is listed by a private individual, as opposed to an agent or a professional.
featuresobjectrequiredProperty features, as returned by the GET /api/v1/references/features endpoint.
7 properties
floorstringrequiredFloor type.
no_floor ground middle toporientationstringrequiredProperty view orientation.
exterior interiorviewstringrequiredView from the property. This field is deprecated and will be removed in the next major update. Please, use
views field instead.water landscape city golf parkviewsstring[]requiredList of views from the property.
water landscape city golf parkdirectionstringrequiredCardinal direction the property faces. This field is deprecated and will be removed in the next major update. Please, use
directions field instead.north south east westdirectionsstring[]requiredList of cardinal directions the property faces.
north south east westcharacteristicsstring[]requiredProperty characteristics.
balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityconditionstringrequiredProperty condition, as returned by the GET /api/v1/references/conditions endpoint.
used ruin very-good new othersale_time_on_marketobjectrequiredInformation about the property last activity on the sales market.
4 properties
date_startstring (date)requiredStart date of activity on the market.
date_endstring (date)requiredEnd date of activity on the market.
days_on_marketintegerrequiredNumber of days property was / is on the market.
has_untracked_periodbooleanrequiredWhether the property was already on the market when it started being tracked.
rent_time_on_marketobjectrequiredInformation about the property last activity on the rental market.
4 properties
date_startstring (date)requiredStart date of activity on the market.
date_endstring (date)requiredEnd date of activity on the market.
days_on_marketintegerrequiredNumber of days property was / is on the market.
has_untracked_periodbooleanrequiredWhether the property was already on the market when it started being tracked.
listingsobject[]requiredThe list of listings related to the property.
36 properties
listing_idintegerrequiredID of the listing (ad).
total_areaintegerrequiredTotal area.
plot_areaintegerrequiredPlot area.
terrace_areaintegerrequiredTerrace area.
bedroomsintegerrequiredNumber of bedrooms.
bathroomsintegerrequiredNumber of bathrooms.
roomsintegerrequiredNumber of rooms.
sale_statusstringrequiredCurrent sale status of the listing.
active reserved hold sold nonesale_currencystringrequiredSale price currency code.
sale_priceintegerrequiredCurrent sale price, in the currency of the listing (specified by the
sale_currency field).sale_price_baseintegerrequiredCurrent sale price, in Euros.
rent_statusstringrequiredCurrent rent status of the listing.
active reserved hold rented nonerent_currencystringrequiredRent price currency code.
rent_priceintegerrequiredCurrent rent price, in the currency of the listing (specified by the
rent_currency field).rent_price_baseintegerrequiredCurrent rent price, in Euros.
agency_legal_idstringrequiredAgency legal identifier specified on the source. Only for France and its overseas territories(DROM and COM).
agencystringrequiredThe company that manages the listing.
listing_urlstringnullableURL of the listing. Available only for currently active listings.
listing_old_urlstringnullableOld URL of the listing. Available only for currently inactive listings.
descriptionstringrequiredProperty description.
listing_uidstringrequiredUnique ID of the listing on the source site.
construction_yearintegerrequiredConstruction year.
source_namestringrequiredThe name of the source where the listing is displayed.
contacts_infoobjectrequiredInformation about listing contacts.
3 properties
namestringrequiredThe owner name. Only for FSBO listings.
emailstring (email)requiredThe email contact.
phonestringrequiredThe phone contact.
energy_certificatestringrequiredEnergy certificate classification that attests to the energy efficiency of a property. This field is deprecated and will be removed in the next major update. Please, use
energy_rating field instead.energy_ratingstringrequiredEnergy rating that attests to the energy efficiency of a property.
heating_typestringrequiredType of heating.
ceiling_labelstringrequiredCeiling height in meters. Available only for Germany.
commissionnumberrequiredCommission percentage. Available only for Germany.
min_rent_areaintegerrequiredMinimum rental area in square meters (mainly applicable to commercial properties). Available only for Germany.
companiesobject[]requiredCompanies to which the listing belongs.
2 properties
namestringrequiredCompany name.
casafari_connect_onbooleanrequiredWhether the company is connected to Casafari Connect.
created_atstring (date)requiredThe datetime when the listing was added.
floor_numberintegerrequiredExact floor number. Negative values indicate underground floors (e.g. basements).
is_privatebooleanrequiredWhether the listing is listed by a private individual, as opposed to an agent or a professional.
casafari_connectbooleanrequiredWhether the company is connected to Casafari Connect.
thumbnailsstring[]List of the thumbnail image URLs.
historyobject[]List of sale and rent price history data. This field is deprecated and will be removed in the next major update. Please, use
sale_price_history and rent_price_history field instead.default []
5 properties
sale_priceintegerrequiredSale price, in the currency of the listings (specified by the
sale_currency field).sale_currencystringrequiredSale price currency code.
rent_priceintegerrequiredRent price, in the currency of the listings (specified by the
rent_currency field).rent_currencystringrequiredRent price currency code.
changed_atstring (date)requiredDate when the estate was last updated.
sale_price_historyobject[]List of sale price history data.
default []
4 properties
date_startstring (date)requiredStart date when the change was applied.
date_endstring (date)requiredEnd date when the change was applied.
sale_price_oldintegerrequiredOld sale price, in the currency of the listings.
sale_price_newintegerrequiredNew sale price, in the currency of the listings.
rent_price_historyobject[]List of rent price history data.
default []
4 properties
date_startstring (date)requiredStart date when the change was applied.
date_endstring (date)requiredEnd date when the change was applied.
rent_price_oldintegerrequiredOld rent price, in the currency of the listings.
rent_price_newintegerrequiredNew rent price, in the currency of the listings.
sale_status_historyobject[]List of sale status history data.
default []
4 properties
date_startstring (date)requiredStart date when the change was applied.
date_endstring (date)requiredEnd date when the change was applied.
sale_status_oldstringrequiredOld sale status, in the currency of the listings.
sale_status_newstringrequiredNew sale status, in the currency of the listings.
rent_status_historyobject[]List of rent status history data.
default []
4 properties
date_startstring (date)requiredStart date when the change was applied.
date_endstring (date)requiredEnd date when the change was applied.
rent_status_oldstringrequiredOld rent status, in the currency of the listings.
rent_status_newstringrequiredNew rent status, in the currency of the listings.
property_urlstringnullableURL of the property in the CASAFARI website.
addressstringrequiredProperty address.
zip_codestringrequiredThe location zip code.
distancenumbernullableDistance in kilometers from target point to the property.Available only when the
custom_location_boundary.circle field is defined in the request.descriptionstringrequiredProperty description.
construction_yearintegerrequiredConstruction year.
rent_price_baseintegerrequiredCurrent rent price, in Euros.
rent_price_per_sqmnumberrequiredCurrent rent price per square meter, in the currency of the listings (specified by the
rent_currency field).rent_price_per_sqm_basenumberrequiredCurrent rent price per square meter, in Euros.
sale_price_baseintegerrequiredCurrent sale price, in Euros.
sale_price_per_sqmnumberrequiredCurrent sale price per square meter, in the currency of the listings (specified by the
sale_currency field).sale_price_per_sqm_basenumberrequiredCurrent sale price per square meter, in Euros.
is_auction_propertybooleanrequiredWhether the property is an auction property.
is_bank_propertybooleanrequiredWhether the property is a bank property.
changed_atstring (date)requiredThe date and time when the property was last updated.
sale_price_last_changeobjectrequiredInformation about the last change of sale price.
3 properties
change_datestring (date)requiredDate of the change.
old_valueintegerrequiredValue before change.
new_valueintegerrequiredValue after change.
rent_price_last_changeobjectrequiredInformation about the last change of rent price.
3 properties
change_datestring (date)requiredDate of the change.
old_valueintegerrequiredValue before change.
new_valueintegerrequiredValue after change.
thumbnailsstring[]List of the thumbnail image URLs.
picturesstring[]List of the original picture image URLs.
gross_yieldnumberrequiredGross yield in percentage.
titlestringrequiredProperty title.
energy_certificatestringrequiredEnergy certificate classification that attests to the energy efficiency of a property. This field is deprecated and will be removed in the next major update. Please, use
energy_rating field instead.energy_ratingstringrequiredEnergy rating that attests to the energy efficiency of a property.
ceiling_labelstringrequiredCeiling height in meters. Available only for Germany.
min_rent_areaintegerrequiredMinimum rental area in square meters (mainly applicable to commercial properties). Available only for Germany.
ref_numbersstring[]List of reference numbers from listings.
casafari_connectbooleanrequiredWhether the company is connected to Casafari Connect.
source_floor_numbersinteger[]List of property floor numbers based on listings data. Negative values indicate underground floors (e.g. basements).
default []
retail_dataobjectnullableRetail-related attributes of the property. Null for non-commercial properties or if the retail data is not available.
6 properties
facade_measurementsobjectrequiredFacade measurements of the commercial property (height, length, surface in meters).
3 properties
heightnumberrequiredFacade height in meters.
lengthnumberrequiredFacade length in meters.
surfacenumberrequiredFacade surface area in square meters.
transfer_price_rangeobjectrequiredPrice range if the property is available for transfer.
2 properties
gteintegerrequiredLower bound of the transfer price range.
lteintegerrequiredUpper bound of the transfer price range.
is_street_levelbooleanrequiredWhether the commercial entrance is situated at the street level, without having to go upstairs/downstairs to reach it.
number_of_floorsintegerrequiredThe number of commercial property floors.
number_of_premisesintegerrequiredThe number of property usable rooms/premises.
possible_business_typesstring[]requiredWhat kind of business can/did run in this commercial property (e.g. cafe, restaurant, grocery store, dental clinic).
400 Bad Request
Type: object.
Show the response shape (1 fields)
errorsobjectDescription of the errors encountered.
401 Unauthorized
Type: object.
Show the response shape (1 fields)
detailstringDescription of the error encountered.
403 Forbidden
Type: object.
Show the response shape (1 fields)
detailstringDescription of the error encountered.