# 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