- Data
- MCP server
- Buildings & Land
- Mixed-use buildings in an area
Mixed-use buildings in an area
mixed_use_buildingsBuildings holding BOTH residential and commercial units — the conversion and permitted-development cohort.
Same call over REST
Building mixed use/v1/buildings/mixed-useNot connected yet? Connect your assistant. Sign in with your MarketCode account; no API key needed.
Reference
What mixed_use_buildings answers
Hard to source elsewhere: it is a property of the building's unit mix, not an attribute of any single property.
UK only.
Inputs
Before you call it
- area_id
- The area id is the analytics area identifier, not a name or a GSS code. Call area_resolve with a place name or code ("Hackney", "E5") first; it is free and returns the id with the area's hierarchy. Where it gives both
area_idandanalytics_area_id, passanalytics_area_id.
Example
An example call to mixed_use_buildings
Use the MarketCode tool mixed_use_buildings with {"area_id":"c0694b59-04d1-48ab-9a4c-c4f9d7b74f60","limit":3} and show me the result.{
"error": "HTTP 502",
"detail": "The origin web server returned an invalid or incomplete response to Cloudflare. This typically indicates the origin is overloaded or misconfigured."
}The call failed with these arguments; the status and message are shown rather than an invented body.
Inputs
Arguments mixed_use_buildings takes
| Name | Type | Required | Description |
|---|---|---|---|
| area_id | string | Yes | |
| min_commercial | integer | No | Default: 1 |
| min_residential | integer | No | Default: 1 |
| limit | integer | No | Default: 100 |
Usage
How to run mixed_use_buildings in your assistant
Ask your assistant in plain English, for example:
"Use the MarketCode tool mixed_use_buildings for <address or area>.
Show the result and the credits charged."
The arguments the assistant will send, for the example on this page:
{"area_id":"c0694b59-04d1-48ab-9a4c-c4f9d7b74f60","limit":3}The connect steps for Claude, ChatGPT, Codex, Cursor and Claude Code are on the MCP page.
Price and licence
What it costs, and where the data comes from
mixed_use_buildings costs 6 credits per successful call over MCP and over REST, and the two surfaces share one credit balance.
The price covers licensed records in the response, from Ordnance Survey. A call that fails is not charged.
Credits are granted on sign-up and bought in packs; the pricing page lists every call.
Sources
- Ordnance Survey
National Geographic Database (buildings, land and sites)
Used under licence from Ordnance Survey · Great Britain
Related
Tools used with mixed_use_buildings
- Built-stock profile of an areaFree
area_stock_profileComposition of the built stock in an area: unit counts, HMO share, mixed-use share, median building height and footprint, solar penetration.Same category - Physical form of buildings3 credits
building_physicalPhysical form of the buildings a set of UPRNs sit in: height, volume, footprint area, floor count, construction and roof material, basement, green roof, solar panels, and the residential/commercial unit mix.Same category - Hex-binned density for mapsFree
h3_densityHex-binned stock and transaction density for map layers, at H3 resolution 8.Same category - Plot utilisation of land parcels6 credits
plot_utilisationLand parcels by size and how much of them is built on. Set `max_built_coverage` to 0.2 to find largely undeveloped plots.Same category
Glossary
Terms used here
- Permitted development: Changes an owner may make without a planning application, granted nationally by the General Permitted Development Order, subject to limits and to local withdrawal by Article 4.
- Mixed-use building: A building that holds both residential and commercial units; a property of the building's unit mix rather than of any single unit, and the conversion cohort.
FAQ
Questions about mixed_use_buildings
How much does `mixed_use_buildings` cost?
+
mixed_use_buildings costs 6 credits per successful call over MCP and over REST, and the two surfaces share one credit balance. The price covers licensed records in the response, from Ordnance Survey. A call that fails is not charged.
Where do I get the area id?
+
From area_resolve, which is free: give it a place name or postcode district and it returns the area id, centroid and hierarchy. mixed_use_buildings then takes that id.
Which assistants can run `mixed_use_buildings`?
+
Any MCP client: Claude (claude.ai, Claude Desktop, Claude Code), ChatGPT in developer mode, Codex and Cursor, each documented on the MCP page. You sign in with your MarketCode account over OAuth; there is no key to paste, and the connection is read-only.
Where does the data come from?
+
Read from Ordnance Survey NGD. Coverage is the UK.
Can I store or republish the results?
+
The response includes records we license from Ordnance Survey. Use them in your own analysis, reports and products; bulk redistribution of the raw records or building a competing dataset from them is not covered. Ask us if you need a redistribution licence.
Does `mixed_use_buildings` change anything?
+
No. The tool is annotated read-only on the server, so it never writes to your data or ours and an assistant can call it without a confirmation step.
Try mixed_use_buildings in your assistant.
30-minute call. We'll connect your assistant live on a real address.