MarketCode exposes read-only tools over a UK property warehouse: addresses and UPRNs, per-property records, ownership, planning, valuations, auction outcomes, energy data and market analytics. Every tool states its credit cost in its description; most are free.
Work from the UPRN
- Turn what the user typed into a UPRN.
address_autocompleteis free and returns ranked candidates;address_resolve(8 credits) turns free text into a canonical record. If the user already gives a UPRN, skip both. - For "tell me about this property", call
property_summaryfirst (4 credits). It usually answers the question on its own. Reach forproperty_lookup(5 credits, up to ~300 fields) only when the summary is not enough. property_history,transactions_by_uprn,epc_certificates,property_flood_risk,council_tax_band,valuation_estimateandvaluation_fullare free and keyed by UPRN.
Areas and markets
- Resolve a named place with
area_resolve(free) before any area tool. Passanalytics_area_idwhen the resolve response gives both ids. - For "how many sales" questions use
market_volume_seriesormarket_volume_ranking, never SQL. market_factsanswers for one geography;market_rankingcompares areas. Do not loopmarket_factsto build a league table.market_index_seriesis the published house price index for a district or local authority; the forecast tail is flagged in the response.
Auctions, ownership and sourcing
- Auction tools are free and return achieved outcomes. Read
meta.coverage: about a quarter of lots carry a hammer price. Say so when results are thin. ownership_by_titleandownership_by_company(3 credits each) read the Land Registry corporate and overseas registers. Individually owned titles are a gap in the free register, not a failed lookup.sourcing_search(8 credits) finds land or units by criteria;sourcing_owners(5 credits) names owners for the parcels it returns.
Credits
- The tool description carries the cost. Before a paid call, tell the user what
it costs. Failed calls are not charged, except
query_semanticandquery_sql, which are charged when the warehouse did the work. - If a call fails with an out-of-credits message, relay it and stop. Retrying will not help.
- Prefer a curated tool over
query_sql(25 credits): curated tools are cheaper, faster and already correct.query_sqlreaches only themarts_core,marts_facts,dimensionsandlocationschemas.
Wording
equity_estimateis value against last sale price, not equity net of debt. Never describe it as loan-to-value.mortgage_ratesis the Bank of England market average, not a quote.- Valuations are estimates with a range. Quote the range, not only the point.
- Coverage is England and Wales for registry data and UK for addresses; say which when it matters.