Analysis
POST
https://api.casafari.com/market-analytics-api/analysisBearer token42 parameters
Send Authorization: Bearer $CASAFARI_TOKEN; see how to get a token.
Over MCP: no tool does this. MCP and REST compared.
Description
Market analysis based on the requested property parameters.
Request body
Content type application/json. Required. Type: object.
custom_location_boundaryobjectrequired3 properties
location_idsinteger[]List of location IDs.
1–10 items1–2147483647
polygonobject[]List of geo-points to search within. Polygon must contain at least 4 points. First and last points must match.
at least 4 items
2 properties
latitudenumberrequired-90–90
longitudenumberrequired-180–180
circleobjectCircle boundary to search within.
2 properties
distanceintegerrequiredMaximum distance in meters from the requested
target_point to the properties.50–50000
target_pointobjectrequiredTarget point coordinates to search around.
2 properties
latitudenumberrequired-90–90
longitudenumberrequired-180–180
business_typestringrequiredOperation type for which the property is available.
sale renttypesstring[]requiredThe list of property types by type groups: apartment: ["apartment", "studio", "duplex", "penthouse", "dachgeschosswohnung", "etagenwohnung", "erdgeschosswohnung"] house: ["country_house", "house", "palace", "townhouse", "villa", "country_estate", "chalet", "bungalow", "family_house", "reihenhaus", "reihenendhaus", "reihenmittelhaus", "einfamilienhaus", "zweifamilienhaus", "landwirtschaftliche_betriebe"] room: ["room"] building: ["apartment_building", "office_building", "mix_use_building"] investment: ["retail", "office", "industrial", "warehouse", "hotel", "building", "other_commercial", "restaurant", "werkstatt"] development: ["apartment_development", "house_development"] plot: ["urban_plot", "rural_plot"] other: ["parking", "garage", "other"] Note that you can select multiple types only from one property type group. The list of property types specific to certain countries: apartment: ○ dachgeschosswohnung: Germany ○ etagenwohnung: Germany ○ erdgeschosswohnung: Germany house: ○ family_house: Germany ○ reihenhaus: Germany ○ reihenendhaus: Germany ○ reihenmittelhaus: Germany ○ einfamilienhaus: Germany ○ zweifamilienhaus: Germany ○ landwirtschaftliche_betriebe: Germany investment: ○ restaurant: Germany ○ werkstatt: Germany plot: ○ urban_plot: Italy, Germany, Portugal, Spain, France ○ rural_plot: Italy, Germany, Portugal, Spain, France
42 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 building other_commercial restaurant werkstatt urban_plot rural_plot room parking garage other apartment_building office_building mix_use_building apartment_development house_developmentat least 1 item
conditionsstring[]nullableProperty conditions, as returned by the GET /api/v1/references/conditions endpoint.
used ruin very-good new otherat least 1 item
energy_ratingsstring[]nullableList of energy ratings that attests to the energy efficiency of the property.
Unknown A+ A B C D E F G Hat least 1 item
orientationsstring[]nullableProperty view orientation.
exterior interiorat least 1 item
viewsstring[]nullableList of views from the property.
water landscape city golf parkat least 1 item
directionsstring[]nullableList of cardinal directions the property faces.
north south east westat least 1 item
floorsstring[]nullableList of floor types.
no_floor ground middle topat least 1 item
price_rangeobjectnullable2 properties
minintegernullable1–2147483647
maxintegernullable1–2147483647
rooms_rangeobjectnullable2 properties
minintegernullable1–15000
maxintegernullable1–15000
bedrooms_rangeobjectnullable2 properties
minintegernullable0–15000
maxintegernullable0–15000
bathrooms_rangeobjectnullable2 properties
minintegernullable1–15000
maxintegernullable1–15000
total_area_rangeobjectnullable2 properties
minintegernullable1–1000000
maxintegernullable1–1000000
plot_area_rangeobjectnullable2 properties
minintegernullable1–1000000
maxintegernullable1–1000000
construction_year_rangeobjectnullable2 properties
minintegernullable1–3000
maxintegernullable1–3000
characteristicsobjectnullable2 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_annuityExample request
Placeholders only: replace the token and the values with your own.
curl -X POST "https://api.casafari.com/market-analytics-api/analysis" \
-H "Authorization: Bearer $CASAFARI_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"custom_location_boundary": {
"location_ids": [
1
]
},
"business_type": "sale",
"types": [
"apartment"
]
}'Responses
200 Successful Response
Type: object.
Show the response shape (33 fields)
price_statisticsobjectrequiredStatistics including the average price and average price per square meter for properties matching the requested filters.
2 properties
average_priceintegerrequiredaverage_price_per_sqmintegerrequiredprice_estimationobjectrequiredProvides estimated prices, including a quick sale price
fast_market_price and an inflated price out_of_market_price.2 properties
fast_market_priceintegerrequiredout_of_market_priceintegerrequiredprice_evolutionobjectrequiredRepresents time series data showing how average prices and prices per square meter have changed over time for inactive properties.
2 properties
avg_priceobjectrequired5 properties
for_the_last_1_monthintegerrequiredfor_the_last_3_monthintegerrequiredfor_the_last_6_monthintegerrequiredfor_the_last_9_monthintegerrequiredfor_the_last_12_monthintegerrequiredavg_price_per_sqmobjectrequired5 properties
for_the_last_1_monthintegerrequiredfor_the_last_3_monthintegerrequiredfor_the_last_6_monthintegerrequiredfor_the_last_9_monthintegerrequiredfor_the_last_12_monthintegerrequiredsummary_price_evolutionobjectrequiredRepresents time series data showing how average prices and prices per square meter have changed over time for both active and inactive properties.
2 properties
avg_priceobjectrequired5 properties
for_the_last_1_monthintegerrequiredfor_the_last_3_monthintegerrequiredfor_the_last_6_monthintegerrequiredfor_the_last_9_monthintegerrequiredfor_the_last_12_monthintegerrequiredavg_price_per_sqmobjectrequired5 properties
for_the_last_1_monthintegerrequiredfor_the_last_3_monthintegerrequiredfor_the_last_6_monthintegerrequiredfor_the_last_9_monthintegerrequiredfor_the_last_12_monthintegerrequiredaverage_days_on_the_marketintegerrequiredIndicates the average number of days properties remain listed on the market before being sold or removed.
400 Bad Request
Type: object.
Show the response shape (3 fields)
messagestringrequirederrorsstring[]nullabledetailsstringnullable404 Not Found
Type: object.
Show the response shape (3 fields)
messagestringrequirederrorsstring[]nullabledetailsstringnullable422 Validation Error
Type: object.
Show the response shape (6 fields)
detailobject[]5 properties
loc(string | integer)[]requiredmsgstringrequiredtypestringrequiredinputanyctxobject