Developer Docs

Build with MapLark

Query planet scale OpenStreetMap data as GeoJSON, CSV, or FlatGeobuf backed by PostGIS and served at low latency.

Documentation

Ready to build real-world applications? Start by exploring the docs and examples. Live playgrounds for each API are on the Products page.

Endpoint Docs

Swagger docs for all endpoints with live request execution, inline parameter editor, and OpenAPI spec download.

All endpoints

Reference Documentation

All endpoints and parameters documented in one place with full schema reference.

Open Reference Docs

Tags query language

Filter features with AND, OR, NOT, grouping, and regex in one tags string, and keep those queries fast.

Read the syntax

PostGIS schema

How to write a fast, reliable query? It boils down to 3 geometry tables, how to target them, and the indexing strategy.

Read the schema

Quick Start

Fetch buildings in a bounding box by swapping in your API key and coordinates.

Python TypeScript cURL MCP server
bash
pip install osmfeatures
Python
from osmfeatures import OSMFeaturesClient

with OSMFeaturesClient(api_key="YOUR_KEY") as client:
    fc = client.query(bbox="18.06,59.32,18.09,59.34", tags=["building"])
    print(len(fc.features), "buildings found")
See the repo osmfeatures-py on GitHub.
Omit type to search all element types (nodes, ways, and relations).
Download the full OpenAPI spec: openapi.json