Understand an area · Use case
How do I build a monthly local market report with Casafari data?
Build a monthly local market report from Casafari Area Insights by running a fixed sequence of calls on one boundary. Use ma_get_time_series_data and ma_get_time_series_operations for price trends and activity, the price, bedroom and time-on-market distributions for structure, and ma_get_heatmap for districts. An AI assistant can run it from one prompt; a script can schedule it.
Products: Area Insights
Short answer
A complete local market report is the same set of Area Insights calls, made on one boundary, for one type group and one operation, every reporting period.
There are two ways to run it:
- An AI assistant connected to the Casafari MCP server can run the whole sequence from a single prompt.
- A script can make the same calls on a schedule and fill a template.
Each report section maps to specific tools.
Steps
Resolve the area and the reporting period
- Call
list_serversthe first time, to read the Area Insights instructions. - Call
ma_get_location_typeaheadwith an English place name and keep thelocation_id. - Call
ma_get_current_datetimeand derive the reporting window, for example the last full month or quarter, asdate_range.
Prices: avg_price_psqm series and delta_pct, yoy_last, cagr
- Call
ma_get_time_series_datawithdata_pointavg_price_psqmanddate_intervalmonth. - Call
ma_get_time_series_operationson the same segment withoperations["delta_pct", "yoy_last", "cagr"].
Activity: new, sold_or_rented, available_on_market, price_down series
- Call
ma_get_time_series_datafour times with identical filters, once each fornew,sold_or_rented,available_on_marketandprice_down.
Structure: price, bedrooms and time-on-market distributions
- Call
ma_get_price_distribution,ma_get_bedrooms_distributionandma_get_time_on_market_distributionon the same boundary.
Geography: heatmap by district
- Call
ma_get_heatmapwith the city'slocation_idanddata_pointavg_price_psqm. Repeat withneworprice_downif useful.
Narrative: POST /market-analytics-api/analysis over REST
- If you also use REST, send
POST /market-analytics-api/analysiswith the samecustom_location_boundary,business_typeandtypes, and add its market analysis to the report. Its response fields are documented on the operation page.
Example prompt and output
Prompt to the assistant: "Write a Q3 market report for apartments for sale in Lisbon. Cover price per m² by month with the change over the quarter and year on year, new supply against sales, price cuts, prices by bedrooms, days on market by price band, and a district comparison."
The assistant runs steps 1 to 8 and returns a report skeleton like this, filled with the live values:
Lisbon apartments for sale: Q3 market report
Source: Casafari Area Insights. Counts are properties, not advertisements.
1. Prices: average price per m² by month; change over the quarter (delta_pct),
year on year (yoy_last), compound growth (cagr)
2. Activity: new properties, properties sold or rented, properties on the market,
price cuts, by month
3. Structure: properties per price band (mean band marked); average price and
price per m² by bedrooms; days on market by price band
4. Geography: districts ranked by average price per m²
5. What it means for buyers and sellersThe recipe above makes 13 MCP calls, plus one optional REST call. These docs publish no market figures; every number in the report comes from the calls.
How to read the result
Quote properties, not advertisements
Casafari's property graph merges every advertisement of a property into one record. Say "properties" in every count, for example "new properties this month", so readers do not mistake the figures for advertisement counts from a portal.
State the type group and operation in every chart
Every figure belongs to one type_group (apartment or house) and one business_type (sale or rent). Label each chart with both, and with the boundary and the period. Also say whether exclude_outliers was on; it is on by default.
Limits
Availability:
- Every Area Insights tool and REST operation used here is available to Casafari clients with their Casafari account.
- Self-serve access for new users is coming soon.
ma_get_time_series_operationsandma_get_heatmapexist over MCP only.
Coverage:
- The tool descriptions name no specific market.
Scheduling:
- These docs describe no built-in scheduler or report template. Your assistant, script or agent runs the calls.
- Machine-readable references for building one are listed in For AI agents.
Apartment and house groups only
The Area Insights MCP tools accept type_group apartment or house only. A report on offices, retail or plots cannot be built from these tools.
Several calls per report; each product has a quota and no quota figures are published
A full report takes 13 MCP calls, and each product has a quota. When the quota is used up, tools answer Request limit reached for this product. and retrying will not help. The sources publish no quota or price figures; ask Casafari. See rate limits and quotas.
Questions
Can I schedule the report to run every month?
Yes, but the scheduling is yours. These docs describe no built-in scheduler. Run a script on your own scheduler that makes the same calls each month. An unattended agent can sign in to the Casafari MCP server with client credentials that Casafari issues for the account. A REST script signs in with POST /login or an API client created by the account owner.
Can the report cover rentals and sales together?
Yes, as two parallel sections. Every Area Insights request takes one business_type, sale or rent, so run the price, activity and distribution calls once for each and present them side by side. Comparing the two sets, for example the average sale price per m² against asking rent per m² in the same boundary, gives readers a rental-yield context.
Can I include my own agency's share of the market?
Not from Area Insights: its tools take no agency filter. In Germany, AgentGraph AI's agentgraph_territory_map with client_brand returns your own network's share per district, alongside the shares held by franchise networks and independents. agentgraph_area_benchmark shows how the market splits between broker types. These docs describe no market-share operation for other countries.
Can I export the data to a BI tool?
Yes. Every Area Insights tool returns structured JSON, such as date_start and value rows or distribution bands, which a script can write to any BI tool. Developers can use the REST API at https://api.casafari.com, described in https://docs.api.casafari.com/openapi.json, or the MCP tool schemas in /tools.json. Bulk delivery is described under Data Export at /docs/data-export.