- Data
- REST API
- Map Intelligence
- Map building units
Map building units
GET /v1/map/buildings/{building_id}/unitsLinked units and address points in a building footprint.
Authenticate with an API key from the API & MCP Hub. The same call is available as an MCP tool at the same price.
Request
Calling GET /v1/map/buildings/{building_id}/units
curl "https://api.marketcode.ai/v1/map/buildings/%3Cbuilding_id%3E/units" \
-H "Authorization: Bearer $MARKETCODE_API_KEY"Send your API key as a Bearer token. Every response carries credits_charged and credits_remaining.
Inputs
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| building_id | Path | string | Yes | |
| limit | Query | integer | No | Default: 100 |
| offset | Query | integer | No | Default: 0 |
Price and licence
What it costs, and where the data comes from
Map building units is free. Free calls need a signed-in account or an API key and appear in your usage, but they never touch your balance.
Credits are granted on sign-up and bought in packs; the pricing page lists every call.
FAQ
Questions about Map building units
How much does `map-building-units` cost?
+
Map building units is free. Free calls need a signed-in account or an API key and appear in your usage, but they never touch your balance.
How do I authenticate?
+
Send your API key as a Bearer token in the Authorization header. Keys are created in the API & MCP Hub, shown once and revocable. Every response carries the credits charged and your remaining balance.
Try Map building units on a real address.
30-minute call. We'll provision a key and walk through the endpoint on your use case.