overpy
Python Wrapper to access the OpenStreepMap Overpass API
Decision gist · record as of 2026-08-14
Yes. Overpy is actively maintained, has no external dependencies, supports current Python versions, carries a permissive MIT license, and fills a clear niche for developers who need to query OpenStreetMap data programmatically. Install it if you're building location-aware applications or need to extract geographic features from OSM.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Actively maintained as of July 2026 with consistent release history since 2014.
- Supports modern Python versions (3.6+) and PyPy.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you must include the license notice in distributions.
last release 2023-12-04 (984 days) · last repo commit 2026-07-13 · 265 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 103,365 downloads/mo, #12,809 on PyPI
Alternatives
Verify before relying
pip install overpy
import overpy
api = overpy.Overpass()
result = api.query('way(50.746,7.154,50.748,7.157) ["highway"]; (._;>;); out body;')
for way in result.ways:
print(way.tags.get('name', 'n/a'))- Whether Overpass API rate limits or authentication requirements affect typical usage patterns
- Performance characteristics when querying large geographic areas or complex filters
What it is and what it does
Overpy is a Python client for the Overpass API, a read-only interface to OpenStreetMap data. It handles the HTTP communication with Overpass servers and parses responses into Python objects representing ways, nodes, and relations from the map. The package abstracts away the details of Overpass query syntax and response parsing, letting you focus on extracting geographic features by their tags and coordinates.
Typical workflows involve constructing an Overpass query (a specialized language for filtering OSM data), submitting it through the api.query() method, and then iterating over the returned ways, nodes, and relations to extract tags and geometry. The package also provides helper functions for common tasks like finding streets or intersections by name within a geographic boundary.
Use it for
- Extract road networks, buildings, or amenities from OpenStreetMap for a specific region
- Build location-based applications that need current OSM data without maintaining a local database
- Analyze geographic features (e.g., all restaurants or parks) within a bounding box
- Geocode addresses or find intersections by querying OSM directly
- Research or validate OpenStreetMap data coverage in a given area
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Overpy is actively maintained, has no external dependencies, supports current Python versions, carries a permissive MIT license, and fills a clear niche for developers who need to query OpenStreetMap data programmatically. Install it if you're building location-aware applications or need to extract geographic features from OSM.
Install
overpy on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained as of July 2026 with consistent release history since 2014. Supports modern Python versions (3.6+) and PyPy.
License in practice
MIT license permits commercial and private use with minimal restrictions; you must include the license notice in distributions.
Quickstart
pip install overpy
import overpy
api = overpy.Overpass()
result = api.query('way(50.746,7.154,50.748,7.157) ["highway"]; (._;>;); out body;')
for way in result.ways:
print(way.tags.get('name', 'n/a'))
Verify before relying
- Whether Overpass API rate limits or authentication requirements affect typical usage patterns
- Performance characteristics when querying large geographic areas or complex filters
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 984 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 103,365 / month, #12,809 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: overpy-0.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “openstreetmap api wrapper”
- overpyA Python wrapper for querying the Overpass API to retrieve and parse…
- osmiumosmium provides Python bindings for the Libosmium C++ library,…
- osm2geojsonConverts OpenStreetMap and Overpass API data (JSON or XML) into…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also osm2geojson · osmium · osmnx · python-geohash · meteomatics · cityseer · polyline · staticmap · pykml · contextily