# Casafari data platform > Casafari sells property data to people and AI agents through self-serve APIs and MCP servers. One account, one key and one balance of tokens work on every product. This is the Casafari API and MCP Platform, not the existing Casafari API at https://api.casafari.com (for contract clients): its tokens do not work here, and Platform keys (`cf_sk_...`) work only on https://platform.casafari.com/v1/... and https://platform.casafari.com/mcp/..., never on api.casafari.com. A path of the existing API sent here answers `404 existing_api_path` with the platform path to use; see https://developers.casafari.com/docs/moving-from-existing-api. ## Get a key 1. `GET https://platform.casafari.com/v1/signups/terms` returns the current terms version. 2. `POST https://platform.casafari.com/v1/signups` with `{"email", "terms_version", "client": {"name"}}` emails a 6-digit code to a person. 3. `POST https://platform.casafari.com/v1/signups/{signup_id}/verify` with `{"code"}` opens an account on the Free plan (1000 tokens for 30 days; place lookups stay free after that) and returns an API key (`cf_sk_...`), shown once. Send the key as `Authorization: Bearer cf_sk_...` or `X-API-Key: cf_sk_...`, never in a query string. MCP clients can instead sign in with OAuth 2.1: each resource names the one authorization server in its protected-resource metadata. ## Connect an AI assistant One MCP server for every product: https://platform.casafari.com/mcp (server card: https://platform.casafari.com/mcp/.well-known/mcp/server-card.json). Casafari Platform: every Casafari data product in one MCP server, one connection and one sign-in. Each tool is named after its product (Location Lookup, Area Insights, Comparables, Property Sourcing, Claro AI and the rest) and costs what it costs on that product's own server; locations_search and account_status are free. Sign in once with OAuth 2.1, or send an API key as a Bearer token. Each product's own MCP server (listed below, `/mcp/`) is also available, one product at a time, for a connector that needs a single product. ## Products - **Account**: Your account: plan, tokens left, whether calls can run, and the payment link to poll after a top-up. - REST: https://platform.casafari.com/v1 (OpenAPI: https://platform.casafari.com/v1/openapi.json) - **Location Lookup**: Find a place by name and get the location id every other product takes. Free. - REST: https://platform.casafari.com/v1/locations (OpenAPI: https://platform.casafari.com/v1/locations/openapi.json) - MCP: https://platform.casafari.com/mcp/locations (server card: https://platform.casafari.com/mcp/locations/.well-known/mcp/server-card.json) - **Area Insights**: Market statistics for an area: price time series, price, bedroom and time-on-market distributions, analysis and heatmaps, plus registered sale prices, what homes actually sold for, in Spain, France, Italy and Poland (and Portugal as official quarterly medians): weekly price trends, average prices by location and the number of sales by property type. - REST: https://platform.casafari.com/v1/area-insights (OpenAPI: https://platform.casafari.com/v1/area-insights/openapi.json) - MCP: https://platform.casafari.com/mcp/area-insights (server card: https://platform.casafari.com/mcp/area-insights/.well-known/mcp/server-card.json) - **Property Sourcing**: Homes for sale or rent in every covered country, over REST and MCP: a structured search by location, type, price, size, rooms and features, one property with every agency and portal advertising it and its price history, and the property behind a portal or agency link or reference. Asking prices only. - REST: https://platform.casafari.com/v1/property-sourcing (OpenAPI: https://platform.casafari.com/v1/property-sourcing/openapi.json) - MCP: https://platform.casafari.com/mcp/property-sourcing (server card: https://platform.casafari.com/mcp/property-sourcing/.well-known/mcp/server-card.json) - **High Potential Seller Leads**: High Potential Seller Leads. Built from the deduplicated property graph: homes whose asking price was cut repeatedly, around a point: leads for owners who may want to sell. Each lead carries only its property id, coordinates and price cuts, no property details; for those, pass its property_id to Property Sourcing's GET /v1/property-sourcing/properties/{property_id} (10 tokens). REST only. Not Private Seller Leads: those are new listings offered by their owners. - REST: https://platform.casafari.com/v1/seller-leads (OpenAPI: https://platform.casafari.com/v1/seller-leads/openapi.json) - **Comparables**: Comparable properties and price estimates for a subject property, over REST and MCP; both take the same search. Asking prices only, no registered or closing prices. - REST: https://platform.casafari.com/v1/comparables (OpenAPI: https://platform.casafari.com/v1/comparables/openapi.json) - MCP: https://platform.casafari.com/mcp/comparables (server card: https://platform.casafari.com/mcp/comparables/.well-known/mcp/server-card.json) - **Comparables with Transactions**: Comparables with Transactions: everything Comparables returns plus registered closing prices of nearby sales, Spain's notary deals, Italy's registered sales from Agenzia delle Entrate and Poland's RCN (transactional_data) and France's DVF register (dvf_results), over REST and MCP; the same search as Comparables. - REST: https://platform.casafari.com/v1/comparables-transactions (OpenAPI: https://platform.casafari.com/v1/comparables-transactions/openapi.json) - MCP: https://platform.casafari.com/mcp/comparables-transactions (server card: https://platform.casafari.com/mcp/comparables-transactions/.well-known/mcp/server-card.json) - **Claro AI**: Claro AI: AI search for commercial premises for rent or sale anywhere in Spain and for commercial plots in Germany, with asking prices in a place, Location Intelligence and briefs read from files, over REST and MCP. - REST: https://platform.casafari.com/v1/claro (OpenAPI: https://platform.casafari.com/v1/claro/openapi.json) - MCP: https://platform.casafari.com/mcp/claro (server card: https://platform.casafari.com/mcp/claro/.well-known/mcp/server-card.json) - **Parcel Zoning**: Zoning and buildable area of one land parcel in Spain (Bizkaia, Catalonia, and the parcels with a listed commercial premises in the Madrid region and the Valencian Community) and Germany (Hamburg and North Rhine-Westphalia), for now, by cadastral reference or by a point, over REST and MCP: land class, zone and plan, the plan's building rules and the buildable area, every figure with its source and attribution. - REST: https://platform.casafari.com/v1/parcel-zoning (OpenAPI: https://platform.casafari.com/v1/parcel-zoning/openapi.json) - MCP: https://platform.casafari.com/mcp/parcel-zoning (server card: https://platform.casafari.com/mcp/parcel-zoning/.well-known/mcp/server-card.json) - **Private Seller Leads**: Private Seller Leads. Built from new listing alerts: new listings of homes offered by their owners, by place and date, over REST and MCP. Each listing has its portal link, price, size, place and the seller's published name and phone. 10 tokens a page of up to 50. Not High Potential Seller Leads: those are homes with repeated price cuts. - REST: https://platform.casafari.com/v1/private-sellers (OpenAPI: https://platform.casafari.com/v1/private-sellers/openapi.json) - MCP: https://platform.casafari.com/mcp/private-sellers (server card: https://platform.casafari.com/mcp/private-sellers/.well-known/mcp/server-card.json) - **Cadastre**: The Spanish cadastre (not Navarra, Bizkaia or Gipuzkoa) over MCP: find a property or parcel by cadastral reference, address or coordinates, its registry record, and the value of its zone's reference home, never the property's official valor de referencia. No owner data. - MCP: https://platform.casafari.com/mcp/cadastre (server card: https://platform.casafari.com/mcp/cadastre/.well-known/mcp/server-card.json) - **AgencyGraph**: AgencyGraph: every real estate agency of Spain and Portugal, firms only, measured each week from the homes it advertises for sale, over REST and MCP: find an agency, its profile, the agencies of a town with portfolio value, growth of new and delisted homes, price cuts and increases, overpricing at the start and time on the market, market shares, territory, franchise networks, screens and weekly changes; and the city dataset, every agency of a town on REST. - REST: https://platform.casafari.com/v1/agencygraph (OpenAPI: https://platform.casafari.com/v1/agencygraph/openapi.json) - MCP: https://platform.casafari.com/mcp/agencygraph (server card: https://platform.casafari.com/mcp/agencygraph/.well-known/mcp/server-card.json) - **Playbooks**: Playbooks: tell it what you want to achieve, where and how often, and it answers with the playbooks that deliver it: the product operations in order, tokens a run and a month, the countries covered and the plan that fits. Free and without an account or key; running a playbook calls each product at its own price. - REST: https://platform.casafari.com/v1/playbook (OpenAPI: https://platform.casafari.com/v1/playbook/openapi.json) - MCP: https://platform.casafari.com/mcp/playbook (server card: https://platform.casafari.com/mcp/playbook/.well-known/mcp/server-card.json) - No account or key needed: these calls are free, limited per network. ## Find a location id first Every other product takes location ids. Location Lookup finds them: `GET https://platform.casafari.com/v1/locations/search?query=Madrid&country=ES`, or its MCP tools `locations_search` and `locations_get`. These calls are free. The Area Insights, Property Sourcing, AgencyGraph and Playbooks MCP servers also offer `locations_search` itself (free), so one connector is enough. ## One account, tokens and the paywall One account, one key and one balance of tokens cover every product. Each operation costs a fixed number of tokens a call: over REST as its OpenAPI `x-casafari-units` says, over MCP as every tool's description and `_meta["com.casafari/cost"]` say. Some MCP tools cost less than their REST twin (Property Sourcing, Area Insights, Cadastre, Parcel Zoning); llms-full.txt lists both prices. When tokens run out, REST answers `402 payment_required` and MCP answers with a payment error; both carry an `upgrade_url` to top up, and REST adds `Link: <...>; rel="payment"`. After payment, poll `GET https://platform.casafari.com/v1/account/payment-links/{payment_link_id}` (about every 5 seconds) until its status is `completed`, then retry. ## Errors Errors are `application/problem+json`. Each `type` URI is a page: https://platform.casafari.com/errors/ (for example https://platform.casafari.com/errors/payment-required). ## Discovery - API catalog (RFC 9727): https://platform.casafari.com/.well-known/api-catalog - Full reference with every operation: https://platform.casafari.com/llms-full.txt - Authorization server: https://platform.casafari.com/.well-known/oauth-authorization-server - How an agent gets a credential (auth.md): https://platform.casafari.com/auth.md - Documentation: https://developers.casafari.com/docs ## Every operation ### Casafari Platform (MCP: https://platform.casafari.com/mcp) - every tool of every MCP server below, under the same name, at the same price; `locations_search` and `account_status` once. ### Account (REST: https://platform.casafari.com/v1) - `GET /v1/account` (scope account:read, id platform.account.get). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/account" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/account/payment-links/{payment_link_id}` (scope account:read, id platform.payment-link.get). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/account/payment-links/1" -H "Authorization: Bearer $CASAFARI_API_KEY"` ### Location Lookup (REST: https://platform.casafari.com/v1/locations) - `GET /v1/locations/search` (scope locations:read, id locations.search). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/locations/search?size=10" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/locations/{location_id}` (scope locations:read, id locations.get). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/locations/1" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/locations/{location_id}/children` (scope locations:read, id locations.children). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/locations/1/children?size=10" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/locations/by-coordinates` (scope locations:read, id locations.by-coordinates). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/locations/by-coordinates" -H "Authorization: Bearer $CASAFARI_API_KEY"` ### Location Lookup (MCP: https://platform.casafari.com/mcp/locations) - tool `locations_search` (scope locations:read). Free (uses no tokens). - tool `locations_get` (scope locations:read). Free (uses no tokens). ### Area Insights (REST: https://platform.casafari.com/v1/area-insights) - `POST /v1/area-insights/analysis` (scope area-insights:read, id area-insights.analysis). Costs 25 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/area-insights/analysis" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/area-insights/distributions/properties` (scope area-insights:read, id area-insights.distributions.properties). Costs 25 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/area-insights/distributions/properties" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/area-insights/distributions/prices` (scope area-insights:read, id area-insights.distributions.prices). Costs 25 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/area-insights/distributions/prices" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/area-insights/distributions/bedrooms` (scope area-insights:read, id area-insights.distributions.bedrooms). Costs 25 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/area-insights/distributions/bedrooms" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/area-insights/distributions/time-on-market` (scope area-insights:read, id area-insights.distributions.time-on-market). Costs 25 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/area-insights/distributions/time-on-market" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/area-insights/time-series` (scope area-insights:read, id area-insights.time-series). Costs 25 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/area-insights/time-series" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/area-insights/heatmap` (scope area-insights:read, id area-insights.heatmap). Costs 25 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/area-insights/heatmap" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/area-insights/sales/time-series` (scope area-insights:read, id area-insights.sales.time-series). Costs 10 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/area-insights/sales/time-series" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/area-insights/sales/average-prices` (scope area-insights:read, id area-insights.sales.average-prices). Costs 10 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/area-insights/sales/average-prices" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/area-insights/sales/count-by-type` (scope area-insights:read, id area-insights.sales.count-by-type). Costs 10 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/area-insights/sales/count-by-type" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` ### Area Insights (MCP: https://platform.casafari.com/mcp/area-insights) - tool `area-insights_get_price_distribution` (scope area-insights:read). Costs 5 tokens a call. - tool `area-insights_get_bedrooms_distribution` (scope area-insights:read). Costs 5 tokens a call. - tool `area-insights_get_time_on_market_distribution` (scope area-insights:read). Costs 5 tokens a call. - tool `area-insights_get_time_series_data` (scope area-insights:read). Costs 5 tokens a call. - tool `area-insights_get_time_series_operations` (scope area-insights:read). Costs 1 token a call. - tool `area-insights_get_heatmap` (scope area-insights:read). Costs 5 tokens a call. - tool `area-insights_get_current_datetime` (scope area-insights:read). Free (uses no tokens). - tool `area-insights_get_sales_time_series` (scope area-insights:read). Costs 5 tokens a call. - tool `area-insights_get_sales_average_prices` (scope area-insights:read). Costs 5 tokens a call. - tool `area-insights_count_sales_by_type` (scope area-insights:read). Costs 5 tokens a call. - tool `locations_search` (scope locations:read). Free (uses no tokens). Location Lookup's search, on this server too ### Property Sourcing (REST: https://platform.casafari.com/v1/property-sourcing) - `POST /v1/property-sourcing/searches` (scope property-sourcing:read, id property-sourcing.searches.create). Costs 50 tokens a call. Each page is a call. - A structured search: location_ids (from Location Lookup), country, operation (sale or rent), types, price, price_per_sqm, bedrooms, bathrooms, living_area_sqm, plot_area_sqm, features, exclude_features, below_market_pct (percent below our market value), days_on_market, private, exclusive, rental_yield (rent only), new_build, first_seen_after, changed_after, price_cut_pct (asking price cut by at least this many percent, sale only), include_special_sales (also return special sales, left out by default: homes asking 70% or more below our market value, and shares of a home, mortgage-debt sales, homes without possession and parking spaces), sort (largest_price_cut for the largest cuts first) and page_size. Each result's id is a prop_ id and carries days_on_market, market_value, below_market, seller flags and price_change (first and current asking price, change in percent, cuts and the last cut's date). Prices are asking prices. - Example: `curl -X POST "https://platform.casafari.com/v1/property-sourcing/searches?page_size=10" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `GET /v1/property-sourcing/searches/{cursor}` (scope property-sourcing:read, id property-sourcing.searches.next). Costs 50 tokens a call. Each page is a call. - Example: `curl -X GET "https://platform.casafari.com/v1/property-sourcing/searches/1?page_size=10" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/property-sourcing/properties/{property_id}` (scope property-sourcing:read, id property-sourcing.properties.get). Costs 10 tokens a call. - Takes a prop_ id: from a Property Sourcing search or resolve, the property_id of a High Potential Seller Leads result, or an Area Insights properties sample. The answer always has sources (every portal and agency advertising it, with its asking price and link) and price_story (cuts, days on the market across relistings, gap to market value, price spread between agencies); expand=listings,history adds the raw listings and price history. Asking prices only. - Example: `curl -X GET "https://platform.casafari.com/v1/property-sourcing/properties/1" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/property-sourcing/properties/{property_id}/closing-prices` (scope property-sourcing:read, id property-sourcing.properties.closing-prices). Costs 5 tokens a call. - Aggregated registered sale prices, not asking prices: the count and the median, p10, p90 and range per square metre of recent sales of similar homes (same type group, size within 30 percent of the living or total area; implausible rows such as parking spaces are left out and counted in excluded) around the property, with their source, and, for France and Poland only, the closest sales (sold date, price, price per m2, area, distance, type; never an address; Spain and Italy answer the summary alone). Spain, France, Italy and Poland; Portugal answers INE's official median per square metre for the nearest municipality (price_type says it is an area median); Italy answers the OMI quotation range of the home's zone from the Agenzia delle Entrate where there is one (price_type says it is a quotation range, not a closing price); another country answers 400 and is not billed. radius_m (100 to 5000, default 1500) months (1 to 60, default 24) narrow it; sales (0 to 25, default 10) sets the list length. - Example: `curl -X GET "https://platform.casafari.com/v1/property-sourcing/properties/1/closing-prices" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `POST /v1/property-sourcing/smartlinks` (scope property-sourcing:read, id property-sourcing.smartlinks.create). Costs 1 token a call. - Makes a Smartlink, the Casafari application's shareable page of homes, in the agent's name and agency branding: property_ids (1 to 10 prop_ ids), agent (first_name, last_name, email, phone; photo_url and about optional), company (name; logo_url optional), and optionally language (en, es, pt, fr, it, de), sections (price, days_on_market, price_chart, history, sources), brand_color and hide_casafari_label. Answers url, the link to send to a client. The Smartlink is not in the agent's Smartlinks list in the Casafari app yet. Charged only when the Smartlink is made. - Example: `curl -X POST "https://platform.casafari.com/v1/property-sourcing/smartlinks" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/property-sourcing/folders` (scope property-sourcing:write, id property-sourcing.folders.save). Costs 1 token a call. - Saves up to 50 homes (prop_ ids) in a favourites folder of the caller's own Casafari app account, found or made by name: folder, property_ids. Needs an OAuth sign-in with property-sourcing:write by the person whose app account it is; an API key cannot use it. Adds only. - Example: `curl -X POST "https://platform.casafari.com/v1/property-sourcing/folders" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `GET /v1/property-sourcing/smartlinks/{smartlink_id}/activity` (scope property-sourcing:write, id property-sourcing.smartlinks.activity). Costs 1 token a call. - For one of the caller's own Smartlinks: per home, opens, likes and comments, never who the visitor is. Needs an OAuth sign-in with property-sourcing:write. - Example: `curl -X GET "https://platform.casafari.com/v1/property-sourcing/smartlinks/1/activity" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `POST /v1/property-sourcing/properties/resolve` (scope property-sourcing:read, id property-sourcing.properties.resolve). Costs 25 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/property-sourcing/properties/resolve" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` ### Property Sourcing (MCP: https://platform.casafari.com/mcp/property-sourcing) - tool `property-sourcing_search` (scope property-sourcing:read). Costs 5 tokens a call. Each page is a call. - tool `property-sourcing_next_page` (scope property-sourcing:read). Costs 5 tokens a call. Each page is a call. - tool `property-sourcing_get_property` (scope property-sourcing:read). Costs 2 tokens a call. - tool `property-sourcing_get_closing_prices` (scope property-sourcing:read). Costs 5 tokens a call. - tool `property-sourcing_create_smartlink` (scope property-sourcing:read). Costs 1 token a call. - tool `property-sourcing_save_to_folder` (scope property-sourcing:write). Costs 1 token a call. - tool `property-sourcing_get_smartlink_activity` (scope property-sourcing:write). Costs 1 token a call. - tool `property-sourcing_resolve_listing` (scope property-sourcing:read). Costs 2 tokens a call. - tool `locations_search` (scope locations:read). Free (uses no tokens). Location Lookup's search, on this server too ### High Potential Seller Leads (REST: https://platform.casafari.com/v1/seller-leads) - `GET /v1/seller-leads` (scope seller-leads:read, id seller-leads.list). Costs 100 tokens a call. Each page is a call. - Each lead is {id, property_id, coordinates, price_cuts, price_cuts_since}: the property id, its coordinates and its price reductions, no property details (type, price, size, address). For a lead's details, pass its property_id to Property Sourcing's GET /v1/property-sourcing/properties/{property_id} (10 tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/seller-leads?page_size=10" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/seller-leads/{lead_id}` (scope seller-leads:read, id seller-leads.get). Costs 10 tokens a call. - One lead by its lead_ id, with its price-change history. The same property opens in Property Sourcing by the lead's property_id (GET /v1/property-sourcing/properties/{property_id}). - Example: `curl -X GET "https://platform.casafari.com/v1/seller-leads/1" -H "Authorization: Bearer $CASAFARI_API_KEY"` ### Comparables (REST: https://platform.casafari.com/v1/comparables) - `POST /v1/comparables/search` (scope comparables:read, id comparables.get-comparables). Costs 25 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/comparables/search?comparables_count=10" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` ### Comparables (MCP: https://platform.casafari.com/mcp/comparables) - tool `comparables_get_comparables` (scope comparables:read). Costs 25 tokens a call. ### Comparables with Transactions (REST: https://platform.casafari.com/v1/comparables-transactions) - `POST /v1/comparables-transactions/search` (scope comparables-transactions:read, id comparables-transactions.get-comparables). Costs 65 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/comparables-transactions/search?comparables_count=10" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` ### Comparables with Transactions (MCP: https://platform.casafari.com/mcp/comparables-transactions) - tool `comparables-transactions_get_comparables` (scope comparables-transactions:read). Costs 65 tokens a call. ### Claro AI (REST: https://platform.casafari.com/v1/claro) - `POST /v1/claro/search` (scope claro:read, id claro.search-premises). Costs 100 tokens a call. Each page is a call. - Example: `curl -X POST "https://platform.casafari.com/v1/claro/search?limit=10" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/claro/search/refine` (scope claro:read, id claro.refine-search). Costs 100 tokens a call. Each page is a call. - Example: `curl -X POST "https://platform.casafari.com/v1/claro/search/refine?limit=10" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `GET /v1/claro/premises/{id}` (scope claro:read, id claro.get-premises). Costs 25 tokens a call. - Example: `curl -X GET "https://platform.casafari.com/v1/claro/premises/1" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `POST /v1/claro/compare` (scope claro:read, id claro.compare-premises). Costs 25 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/claro/compare" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/claro/market` (scope claro:read, id claro.market-snapshot). Costs 25 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/claro/market" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/claro/location` (scope claro:read, id claro.explain-location). Costs 25 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/claro/location" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/claro/brief/file` (scope claro:read, id claro.brief-from-file). Costs 100 tokens a call. - Example: `curl -X POST "https://platform.casafari.com/v1/claro/brief/file" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/claro/plots/search` (scope claro:read, id claro.search-plots). Costs 100 tokens a call. Each page is a call. - Example: `curl -X POST "https://platform.casafari.com/v1/claro/plots/search?limit=10" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `GET /v1/claro/plots/{id}` (scope claro:read, id claro.get-plot). Costs 25 tokens a call. - Example: `curl -X GET "https://platform.casafari.com/v1/claro/plots/1" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `PUT /v1/claro/stores` (scope claro:write, id claro.stores.put). Free (uses no tokens). - Example: `curl -X PUT "https://platform.casafari.com/v1/claro/stores" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/claro/exports` (scope claro:read, id claro.export). Free (uses no tokens). - Example: `curl -X POST "https://platform.casafari.com/v1/claro/exports" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `GET /v1/claro/health` (scope claro:read, id claro.health). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/claro/health" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/claro/tools` (scope claro:read, id claro.tools). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/claro/tools" -H "Authorization: Bearer $CASAFARI_API_KEY"` ### Claro AI (MCP: https://platform.casafari.com/mcp/claro) - tool `claro_search_premises` (scope claro:read). Costs 100 tokens a call. Each page is a call. - tool `claro_refine_search` (scope claro:read). Costs 100 tokens a call. Each page is a call. - tool `claro_get_premises` (scope claro:read). Costs 25 tokens a call. - tool `claro_compare_premises` (scope claro:read). Costs 25 tokens a call. - tool `claro_market_snapshot` (scope claro:read). Costs 25 tokens a call. - tool `claro_explain_location` (scope claro:read). Costs 25 tokens a call. - tool `claro_brief_from_file` (scope claro:read). Costs 100 tokens a call. - tool `claro_search_plots` (scope claro:read). Costs 100 tokens a call. Each page is a call. - tool `claro_get_plot` (scope claro:read). Costs 25 tokens a call. ### Parcel Zoning (REST: https://platform.casafari.com/v1/parcel-zoning) - `GET /v1/parcel-zoning/es/parcels/{cadastral_ref}` (scope parcel-zoning:read, id parcel-zoning.parcel). Costs 5 tokens a call. - cadastral_ref is a Catastro reference such as 9872023DF2897S (14 or 20 characters), or Bizkaia's form 48.085.1022.07019 (the dots are optional). When the parcel's zone is not known, rules is null and candidate_rules says what each possible zone of the municipality would allow: possibilities, not the answer. A figure the sources do not give is null, never 0. sources[] names every dataset used with its licence; show that attribution. A parcel outside the coverage answers 404 not_found, not billed. - Example: `curl -X GET "https://platform.casafari.com/v1/parcel-zoning/es/parcels/1" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/parcel-zoning/es/parcels` (scope parcel-zoning:read, id parcel-zoning.parcel-at-point). Costs 5 tokens a call. - lat and lon in decimal degrees (WGS 84). The answer is the same Parcel as by cadastral reference, sources[] included; a point on no covered parcel answers 404 not_found, not billed. - Example: `curl -X GET "https://platform.casafari.com/v1/parcel-zoning/es/parcels" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/parcel-zoning/de/parcels/{cadastral_ref}` (scope parcel-zoning:read, id parcel-zoning.de-parcel). Costs 5 tokens a call. - Example: `curl -X GET "https://platform.casafari.com/v1/parcel-zoning/de/parcels/1" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/parcel-zoning/de/parcels` (scope parcel-zoning:read, id parcel-zoning.de-parcel-at-point). Costs 5 tokens a call. - Example: `curl -X GET "https://platform.casafari.com/v1/parcel-zoning/de/parcels" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/parcel-zoning/coverage` (scope parcel-zoning:read, id parcel-zoning.coverage). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/parcel-zoning/coverage" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/parcel-zoning/health` (scope parcel-zoning:read, id parcel-zoning.health). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/parcel-zoning/health" -H "Authorization: Bearer $CASAFARI_API_KEY"` ### Parcel Zoning (MCP: https://platform.casafari.com/mcp/parcel-zoning) - tool `parcel-zoning_lookup` (scope parcel-zoning:read). Costs 2 tokens a call. - tool `parcel-zoning_coverage` (scope parcel-zoning:read). Free (uses no tokens). ### Private Seller Leads (REST: https://platform.casafari.com/v1/private-sellers) - `POST /v1/private-sellers/search` (scope private-sellers:read, id private-sellers.search). Costs 10 tokens a call. Each page is a call. - Example: `curl -X POST "https://platform.casafari.com/v1/private-sellers/search?page_size=10" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `GET /v1/private-sellers/listings/{id}` (scope private-sellers:read, id private-sellers.get-listing). Costs 1 token a call. - Example: `curl -X GET "https://platform.casafari.com/v1/private-sellers/listings/1" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/private-sellers/coverage` (scope private-sellers:read, id private-sellers.coverage). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/private-sellers/coverage" -H "Authorization: Bearer $CASAFARI_API_KEY"` ### Private Seller Leads (MCP: https://platform.casafari.com/mcp/private-sellers) - tool `private-sellers_search` (scope private-sellers:read). Costs 10 tokens a call. Each page is a call. - tool `private-sellers_get_listing` (scope private-sellers:read). Costs 1 token a call. - tool `private-sellers_coverage` (scope private-sellers:read). Free (uses no tokens). ### Cadastre (MCP: https://platform.casafari.com/mcp/cadastre) - tool `cadastre_find` (scope cadastre:read). Costs 2 tokens a call. - tool `cadastre_get_property` (scope cadastre:read). Costs 2 tokens a call. - tool `cadastre_reference_value` (scope cadastre:read). Costs 2 tokens a call. - tool `cadastre_area_values` (scope cadastre:read). Costs 2 tokens a call. - tool `cadastre_zone_quotation` (scope cadastre:read). Costs 2 tokens a call. ### AgencyGraph (REST: https://platform.casafari.com/v1/agencygraph) - `GET /v1/agencygraph/coverage` (scope agencygraph:read, id agencygraph.coverage). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/agencygraph/coverage" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/agencygraph/{country}/coverage` (scope agencygraph:read, id agencygraph.coverage.country). Costs 5 tokens a call. - Example: `curl -X GET "https://platform.casafari.com/v1/agencygraph/1/coverage" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/agencygraph/{country}/agencies` (scope agencygraph:read, id agencygraph.agencies.search). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/agencygraph/1/agencies" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/agencygraph/{country}/agencies/{agency_id}` (scope agencygraph:read, id agencygraph.agencies.get). Costs 50 tokens a call. - A merged agency_id answers 200 with the agency it now belongs to and merged_from naming the id you sent. - Example: `curl -X GET "https://platform.casafari.com/v1/agencygraph/1/agencies/1" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/agencygraph/{country}/benchmark` (scope agencygraph:read, id agencygraph.benchmark). Costs 75 tokens a call. Each page is a call. - At most the first 100 agencies of a town in the chosen order (offset + size <= 100); every agency of a town is the city dataset. Figures under 5 properties are null with their count. Growth is new and delisted homes in the latest complete quarter, with the change on the quarter before and a year before. - Example: `curl -X GET "https://platform.casafari.com/v1/agencygraph/1/benchmark?size=10" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/agencygraph/{country}/market-share` (scope agencygraph:read, id agencygraph.market-share). Costs 50 tokens a call. Each page is a call. - Example: `curl -X GET "https://platform.casafari.com/v1/agencygraph/1/market-share?size=10" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/agencygraph/{country}/agencies/{agency_id}/territory` (scope agencygraph:read, id agencygraph.agencies.territory). Costs 50 tokens a call. Each page is a call. - Example: `curl -X GET "https://platform.casafari.com/v1/agencygraph/1/agencies/1/territory?size=10" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/agencygraph/{country}/networks/{brand}` (scope agencygraph:read, id agencygraph.networks.get). Costs 75 tokens a call. Each page is a call. - Example: `curl -X GET "https://platform.casafari.com/v1/agencygraph/1/networks/1?size=10" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `POST /v1/agencygraph/{country}/screen` (scope agencygraph:read, id agencygraph.screen). Costs 100 tokens a call. Each page is a call. - Example: `curl -X POST "https://platform.casafari.com/v1/agencygraph/1/screen?size=10" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `GET /v1/agencygraph/{country}/changes` (scope agencygraph:read, id agencygraph.changes). Costs 25 tokens a call. - Example: `curl -X GET "https://platform.casafari.com/v1/agencygraph/1/changes" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `GET /v1/agencygraph/{country}/datasets` (scope agencygraph:read, id agencygraph.datasets.quote). Free (uses no tokens). - Free. The tier follows the number of agencies measured in the town (large from 2,000, mid-size from 400, small below); buy with POST to datasets/{tier}. - Example: `curl -X GET "https://platform.casafari.com/v1/agencygraph/1/datasets" -H "Authorization: Bearer $CASAFARI_API_KEY"` - `POST /v1/agencygraph/{country}/datasets/small` (scope agencygraph:read, id agencygraph.datasets.small). Costs 2500 tokens a call. - Body {location_id}. A town of another tier answers 400 naming its tier, not billed. The answer's dataset_id opens the dataset, rebuilt from the newest weekly build, for one year, for this organisation only. - Example: `curl -X POST "https://platform.casafari.com/v1/agencygraph/1/datasets/small" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/agencygraph/{country}/datasets/mid` (scope agencygraph:read, id agencygraph.datasets.mid). Costs 6250 tokens a call. - Body {location_id}. A town of another tier answers 400 naming its tier, not billed. The answer's dataset_id opens the dataset, rebuilt from the newest weekly build, for one year, for this organisation only. - Example: `curl -X POST "https://platform.casafari.com/v1/agencygraph/1/datasets/mid" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `POST /v1/agencygraph/{country}/datasets/large` (scope agencygraph:read, id agencygraph.datasets.large). Costs 12500 tokens a call. - Body {location_id}. A town of another tier answers 400 naming its tier, not billed. The answer's dataset_id opens the dataset, rebuilt from the newest weekly build, for one year, for this organisation only. - Example: `curl -X POST "https://platform.casafari.com/v1/agencygraph/1/datasets/large" -H "Authorization: Bearer $CASAFARI_API_KEY" -H "Content-Type: application/json" -d '{}'` - `GET /v1/agencygraph/{country}/datasets/{dataset_id}` (scope agencygraph:read, id agencygraph.datasets.get). Free (uses no tokens). - Every agency of the town, one row per agency and type group (all, apartment, house): the five measures and new and delisted homes for the last four complete quarters. format=csv answers a CSV file. - Example: `curl -X GET "https://platform.casafari.com/v1/agencygraph/1/datasets/1" -H "Authorization: Bearer $CASAFARI_API_KEY"` ### AgencyGraph (MCP: https://platform.casafari.com/mcp/agencygraph) - tool `agencygraph_coverage` (scope agencygraph:read). Free (uses no tokens). - tool `agencygraph_country_coverage` (scope agencygraph:read). Costs 5 tokens a call. - tool `agencygraph_resolve_agency` (scope agencygraph:read). Free (uses no tokens). - tool `agencygraph_agency_profile` (scope agencygraph:read). Costs 50 tokens a call. - tool `agencygraph_area_benchmark` (scope agencygraph:read). Costs 75 tokens a call. Each page is a call. - tool `agencygraph_market_share` (scope agencygraph:read). Costs 50 tokens a call. Each page is a call. - tool `agencygraph_territory` (scope agencygraph:read). Costs 50 tokens a call. Each page is a call. - tool `agencygraph_network` (scope agencygraph:read). Costs 75 tokens a call. Each page is a call. - tool `agencygraph_screen_agencies` (scope agencygraph:read). Costs 100 tokens a call. Each page is a call. - tool `agencygraph_changes` (scope agencygraph:read). Costs 25 tokens a call. - tool `locations_search` (scope locations:read). Free (uses no tokens). Location Lookup's search, on this server too ### Playbooks (REST: https://platform.casafari.com/v1/playbook) - `GET /v1/playbook/catalog` (scope playbook:read, id playbook.catalog). Free (uses no tokens). - Example: `curl -X GET "https://platform.casafari.com/v1/playbook/catalog"` - `POST /v1/playbook/plan` (scope playbook:read, id playbook.plan). Free (uses no tokens). - No credential. Body: outcomes (playbook ids from GET /v1/playbook/catalog), countries (ISO codes), frequency (oneoff, weekly or daily), and optionally segment, use, volume_per_month (items a month, default 1) and tools (crm gives a CRM-ready CSV). The answer ranks the playbooks, names every requested country a playbook does not cover yet, and sizes the month in tokens with the plan that fits. - Example: `curl -X POST "https://platform.casafari.com/v1/playbook/plan" -H "Content-Type: application/json" -d '{}'` - `POST /v1/playbook/understand` (scope playbook:read, id playbook.understand). Free (uses no tokens). - No credential. Body: text (what you want to achieve, at most 500 characters) and optionally segment. Answers at most three outcome ids to confirm before planning; method says whether a model or the keyword match chose them. - Example: `curl -X POST "https://platform.casafari.com/v1/playbook/understand" -H "Content-Type: application/json" -d '{}'` ### Playbooks (MCP: https://platform.casafari.com/mcp/playbook) - tool `playbook_plan` (scope playbook:read). Free (uses no tokens). - tool `playbook_run` (scope playbook:read). Free itself. Each step costs what its product charges: see playbook_plan for the total. - tool `playbook_status` (scope playbook:read). Free (uses no tokens). - tool `playbook_explain` (scope playbook:read). Free (uses no tokens). - tool `playbook_call` (scope playbook:read). Free itself. Each step costs what its product charges: see playbook_plan for the total. - tool `locations_search` (scope locations:read). Free (uses no tokens). Location Lookup's search, on this server too ### On every MCP server above - tool `account_status` (scope account:read). Free (uses no tokens).