# OSM Building Footprint by Coordinate

> OSM Building Footprint by Coordinate is a paid API for AI agents from x402-endpoints.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Returns OpenStreetMap building geometry as GeoJSON with footprint area, floor count, and height for a given coordinate or bounding box

## Facts

- Endpoint: GET https://x402-endpoints.onrender.com/osm/building-footprint?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/osm-building-footprint-by-coordinate-d05647e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3Dn1fMDKbGwKJWIjuenzs

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability osm-building-footprint-by-coordinate-d05647e8
```

Example prompt: What does the building footprint look like at the Eiffel Tower — coordinates 48.8584, 2.2945? I need its GeoJSON outline, floor count, height, and footprint area in square meters, with a search radius of 100 metres.

## When to prefer this

Choose this endpoint when you need building geometry, footprint area, floor count, or height for any location worldwide using OpenStreetMap data. Ideal for urban analysis, real estate enrichment, solar potential preprocessing, navigation, or any geospatial workflow needing building polygons. Prefer over proprietary datasets when open data and global coverage matter more than cadastral precision.

## Known failure modes

- No building found at the given coordinate or within the radius — returns empty feature collection
- Bounding box exceeds ~2km span limit — returns error
- Invalid lat/lon values outside valid range — returns 400 error
- Overpass API temporarily overloaded or unavailable — returns 503 or timeout
- Missing required lat/lon or bbox parameter — returns 422 validation error

## How this service works

OpenStreetMap building footprints via Overpass — give a coordinate (or bounding box) and get building geometry as GeoJSON, footprint area (m²), levels and height by coordinate. Worldwide coverage, OpenStreetMap data.

## Output

GeoJSON feature(s) for the matching building(s) including polygon geometry, computed footprint area in square metres, number of levels/floors, and estimated height — sourced from OpenStreetMap via Overpass, with worldwide coverage.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude of the point, e.g. 48.8584"
      },
      "lon": {
       "type": "number",
       "description": "Longitude of the point, e.g. 2.2945"
      },
      "bbox": {
       "type": "string",
       "description": "Alternative to lat/lon: 'south,west,north,east' (max ~2km span)"
      },
      "radius": {
       "type": "integer",
       "description": "Search radius in metres [1-200], default 50"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "query": {
   "lat": 48.8584,
   "lon": 2.2945,
   "radius_m": 60
  },
  "cached": false,
  "source": "OpenStreetMap via Overpass API (overpass-api.de)",
  "buildings": [
   {
    "tags": {
     "name": "Tour Eiffel",
     "height": "324",
     "building": "tower",
     "addr:city": "Paris",
     "addr:postcode": "75007"
    },
    "osm_id": 5013364,
    "centroid": {
     "lat": 48.8582603,
     "lon": 2.2944966
    },
    "geometry": {
     "type": "Polygon",
     "coordinates": [
      [
       [
        2.2942817,
        48.8576248
       ],
       [
        2.2956897,
        48.8582343
       ],
       [
        2.2942817,
        48.8576248
       ]
      ]
     ]
    },
    "osm_type": "way",
    "footprint_area_m2": 11288.6
   }
  ],
  "timestamp": "2026-06-25T10:00:00Z",
  "attribution": "© OpenStreetMap contributors (ODbL)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/osm-building-footprint-by-coordinate-d05647e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-endpoints.onrender.com](https://www.zero.xyz/host/x402-endpoints.onrender.com/llms.txt)
