What premises ask in a place
https://platform.casafari.com/v1/claro/marketSend Authorization: Bearer $CASAFARI_API_KEY: a platform API key or OAuth access token, metered in platform units; see platform sign-in and Claro AI. On the platform this is POST https://platform.casafari.com/v1/claro/market; POST /v1/market is Claro's own path, which the platform adds /claro to. The platform forwards the call to Claro unchanged: Claro's Claro-Version header and its error bodies ({"error":{"code","message"}}, with rate_limited and quota_reached on a 429) pass through.
Over MCP: market_snapshot (equivalent). MCP and REST compared.
Description
What commercial premises of a kind ask in a place anywhere in Spain, from every active property of that kind and place (each unit counted once): the asking price per m² as a distribution with its median and middle half, by size band, by district or town, and for one town or province the monthly average over three years with the change in a year, the properties on the market and their days on the market (Casafari Area Insights). Ask in plain words (question: "what does retail rent for in Chamberí?") or send criteria as data (place, types, operation, optional size range); other criteria are ignored. Asking prices, not agreed ones; at least 10 properties or no figures. Returns the criteria as understood and insights: charts as data, each with a one-sentence answer, its count, scope, source and date.
Request body
Content type application/json. Required. Type: object.
questionstringcriteriaobject53 properties
operationstringrent sale eithercitiesstring[]provincesstring[]52 allowed values
a-coruna alava albacete alicante almeria asturias avila badajoz barcelona burgos caceres cadiz cantabria castellon ceuta ciudad-real cordoba cuenca girona granada guadalajara guipuzcoa huelva huesca islas-baleares jaen la-rioja las-palmas leon lleida lugo madrid malaga melilla murcia navarra ourense palencia pontevedra salamanca santa-cruz-de-tenerife segovia sevilla soria tarragona teruel toledo valencia valladolid vizcaya zamora zaragozadistrictsstring[]typesstring[]hotel retail warehouse industrial office other_commercialarea_minnumberarea_maxnumberprice_minnumberprice_maxnumberrent_price_minnumberrent_price_maxnumbersale_price_minnumbersale_price_maxnumberprice_m2_minnumberprice_m2_maxnumberrent_price_m2_minnumberrent_price_m2_maxnumbersale_price_m2_minnumbersale_price_m2_maxnumberstreet_levelbooleanfrontage_min_mnumberfrontage_max_mnumberfloors_minnumberfloors_maxnumberceiling_min_mnumbersmoke_extractionbooleancornerbooleanshop_windowbooleanopen_planbooleanstep_freebooleanloading_accessbooleanlicencestringfood_service retail office gym nonelicence_activitiesstring[]transfer_price_minnumbertransfer_price_maxnumberbusiness_transferbooleanbusiness_typesstring[]keywordsstring[][]exclude_keywordsstring[]footfall_minnumberpop_walk10_minnumberpop_drive10_minnumbertransit_minnumbercompetitors_maxobject[]2 properties
kindstringrequiredrestaurants fast_food cafes shops supermarkets gymsmaxnumberrequiredown_stores_away_mnumbercompetitors_near_maxobject[]max businesses of a segment (or of the named chains) within within_m straight-line metres (1-1,000), from Overture Maps places. A property with an approximate pin gets no verdict.4 properties
segmentstringrequiredgym burger fast_food coffee bakery pharmacy supermarket fashion pizzawithin_mnumberrequiredmaxnumberrequiredchainsstring[]spending_per_resident_minnumberhigh_income_share_minnumberage_shares_minobject[]2 properties
bandstringrequired0_14 15_29 30_44 45_59 60pmin_pctnumberrequiredmeaningstringsortstringbest price_asc price_desc area_desc footfall_desc supply_gapgap_segmentstringgym burger fast_food coffee bakery pharmacy supermarket fashion pizzagap_radius_minteger300 600Example request
Placeholders only: replace the token and the values with your own.
curl -X POST "https://platform.casafari.com/v1/claro/market" \
-H "Authorization: Bearer $CASAFARI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"question": "<question>"
}'Responses
200 What premises ask in a place
No body.
Example from the API description (long arrays shortened)
{
"criteria": {
"operation": "rent",
"cities": [
"madrid"
],
"districts": [
"Chamberí"
],
"types": [
"retail"
]
},
"insights": [
{
"id": "market",
"kind": "histogram",
"title": "Retail premises for rent in Chamberí, Madrid ask a median of €21.0/m² a month; the middle half ask €17.2/m²–€26.4/m² (52 with a stated rent and size).",
"n": 38,
"scope": "retail premises for rent in Centro, 100–400 m² (half to twice this size), each unit counted once",
"source": "Claro properties on the market; asking rents, not agreed ones",
"as_of": "2026-10-13",
"unit": "eur_m2_month",
"bins": [
{
"from": 10,
"to": 15,
"n": 6
},
{
"from": 15,
"to": 20,
"n": 9
}
],
"open_high": true,
"median": 21.5,
"p25": 17.8,
"p75": 27
}
],
"notes": []
}400 Invalid request
Type: object.
Show the response shape (3 fields)
errorobject2 properties
codestringrequiredmessagestringrequired401 Missing or invalid key
Type: object.
Show the response shape (3 fields)
errorobject2 properties
codestringrequiredmessagestringrequired403 No access
Type: object.
Show the response shape (3 fields)
errorobject2 properties
codestringrequiredmessagestringrequired429 Rate limited
Type: object.
Show the response shape (3 fields)
errorobject2 properties
codestringrequiredmessagestringrequired