# Mapsource Overpass API > Geospatial APIs for OpenStreetMap queries, local address and business search, regional POI discovery, routing, spatial analysis, basemaps, elevation and static maps. ## API specifications - [OpenAPI 3.1](https://api.mapsource.io/openapi.json) - [MCP server card](https://api.mapsource.io/mcp.json) — the server itself is Streamable HTTP at https://api.mapsource.io/mcp - [Full agent contract](https://api.mapsource.io/llms-full.txt) - [Service status and dataset freshness](https://api.mapsource.io/status) - [Semantic basemap contract](https://api.mapsource.io/basemap/contract) ## Base URL Paths are relative to https://api.mapsource.io, for example https://api.mapsource.io/interpreter and https://api.mapsource.io/{key}/interpreter. Every path also works with an /api prefix (https://api.mapsource.io/api/interpreter), the form https://mapsource.io serves. ## meta - `readServiceStatus` — GET https://api.mapsource.io/status: Read per-subsystem availability and dataset freshness. Monitor service availability, dataset freshness, payment settlement readiness, and the engine and dataset versions behind each answer. - `readMetrics` — GET https://api.mapsource.io/metrics: Read request rates, latencies and data freshness. Monitor performance and identify slow operations or stale datasets. - `readBasemapCatalog` — GET https://api.mapsource.io/tiles/catalog: Discover basemap tile sources. Configure tile sources and supported zoom levels before initializing a map. ## cartography - `readBasemapContract` — GET https://api.mapsource.io/basemap/contract: Read the semantic basemap layer namespace. Look up layer identifiers and properties when creating or editing a style. - `listStyles` — GET https://api.mapsource.io/styles: List style presets and saved profiles. Select a preset or retrieve saved basemap profiles. - `readCompiledStyle` — GET https://api.mapsource.io/styles/{id}/style.json: Read a compiled MapLibre style. Load a preset or saved profile into a MapLibre-compatible client. - `readStyleManifest` — GET https://api.mapsource.io/styles/{id}/manifest.json: Read the semantic manifest behind a style. Retrieve an existing style's editable semantic properties. - `compileStyle` — POST https://api.mapsource.io/styles/compile: Compile a style manifest. Validate and preview style changes before saving a profile. - `saveStyleProfile` — POST https://api.mapsource.io/styles/profiles: Save a basemap profile. Store a style for subsequent retrieval, editing, and rendering. - `generateStyleFromIntent` — POST https://api.mapsource.io/styles/intent: Generate a style from a text description. Create an initial basemap style from a description, then review the proposed manifest. - `readStyleSchema` — GET https://api.mapsource.io/styles/schema.json: Read the semantic style JSON Schema. Validate manifests locally or generate editor controls from the schema. - `listStyleRevisions` — GET https://api.mapsource.io/styles/{id}/revisions: List a profile's immutable revisions. Select a fixed revision for rendering or retrieve an earlier manifest. - `diffStyleRevisions` — GET https://api.mapsource.io/styles/{id}/diff: Compare two revisions at the semantic level. Review property changes before applying a style revision. - `deleteStyleProfile` — DELETE https://api.mapsource.io/styles/profiles/{id}: Delete a saved basemap profile. Remove an unused profile or release capacity for a new profile. - `listFontstacks` — GET https://api.mapsource.io/glyphs: List label fontstacks. Check available font names before configuring label typography. - `uploadFont` — POST https://api.mapsource.io/fonts: Upload a font. Add a custom label font and inspect its supported Unicode ranges. - `deleteFont` — DELETE https://api.mapsource.io/fonts/{name}: Delete an uploaded font. Remove an unused custom font and release its storage allocation. ## discovery - `queryOverpass` — POST https://api.mapsource.io/interpreter: Execute an Overpass QL query. Query arbitrary OSM tags, spatial relationships, or topology using Overpass QL. - `queryOverpassCompat` — POST https://api.mapsource.io/{key}/interpreter: Execute Overpass QL with the key in the path. Connect existing Overpass clients that cannot set request headers. - `submitOverpassJob` — POST https://api.mapsource.io/overpass/jobs: Submit a durable Overpass job. Run a larger JSON Overpass query without keeping the client connection open, then poll metadata and download the completed result. - `listOverpassJobs` — GET https://api.mapsource.io/overpass/jobs: List this key's Overpass jobs. Find recent background queries and resume polling or downloading jobs created with this same API key. - `readOverpassJob` — GET https://api.mapsource.io/overpass/jobs/{id}: Inspect an Overpass job. Poll a submitted job until it succeeds, fails, is cancelled or expires; inspect metadata before downloading its bytes. - `cancelOverpassJob` — DELETE https://api.mapsource.io/overpass/jobs/{id}: Cancel an Overpass job. Stop a queued or running query whose result is no longer needed, and poll until cancellation is confirmed. - `downloadOverpassJobResult` — GET https://api.mapsource.io/overpass/jobs/{id}/result: Download a completed Overpass job. Download a completed result to a file or application, resume an interrupted download, or inspect its size and ETag with HEAD. - `resolveEntity` — GET https://api.mapsource.io/entities/resolve: Resolve a name to a geographic entity. Resolve a place once and reference its entity ID in subsequent operations. - `readEntity` — GET https://api.mapsource.io/entities/{entityId}: Read an entity by its id. Retrieve the name, center, and bounding box associated with an entity ID. - `searchPlaces` — GET https://api.mapsource.io/places/search: Resolve a place name to a coordinate. Look up a populated place by name and retrieve its coordinates. - `lookupPlaces` — GET https://api.mapsource.io/places/lookup: Look up addresses, businesses and places. Find an address, business, brand, landmark, street or populated place. Use a location qualifier such as Starbucks in Portland to search away from the map focus. - `discoverPlaces` — POST https://api.mapsource.io/places/discover: Find businesses and POIs in a region. Find coffee within a 15-minute drive, list businesses in a map viewport, or filter POIs by an existing isochrone. Paginate bounded results; narrow the area when coverage.truncated is true. - `autocompletePlaces` — GET https://api.mapsource.io/places/autocomplete: Prefix-match a place name. Provide place-name suggestions as a user types. - `findNearby` — GET https://api.mapsource.io/places/nearby: Find features within a radius. Find nearby amenities, infrastructure, or named features around a coordinate. - `reverseGeocode` — GET https://api.mapsource.io/places/reverse: Reverse geocode a coordinate. Retrieve a complete locally indexed postal address or place identity associated with a coordinate. - `readPlace` — GET https://api.mapsource.io/places/{osmType}/{osmId}: Read one feature by its OSM identity. Retrieve details for an OSM object identified by type and ID. - `forwardGeocode` — GET https://api.mapsource.io/geocode: Geocode through the compatibility provider. Maintain an existing integration that requires the compatibility geocoder's response format. - `paidOverpassQuery` — POST https://api.mapsource.io/x402/interpreter: Execute an Overpass query with x402. Submit a query using an authorized compatible wallet without a subscription key. ## navigation - `computeRoute` — POST https://api.mapsource.io/route: Compute a turn-by-turn route. Retrieve route geometry, directions, distance, and travel time between waypoints. - `computeMatrix` — POST https://api.mapsource.io/matrix: Compute a travel-time and distance matrix. Compare destinations or build a travel-time matrix for analysis. - `computeIsochrone` — POST https://api.mapsource.io/isochrone: Compute reachable-area polygons. Calculate service areas, catchments, or accessibility within a travel-time limit. - `matchTrace` — POST https://api.mapsource.io/map-match: Fit a GPS trace to the road network. Match recorded travel coordinates to the road network. - `snapPoints` — POST https://api.mapsource.io/snap: Snap points to the road network. Associate coordinates with road segments before routing or analysis. - `optimizeOrder` — POST https://api.mapsource.io/optimize: Solve the visit order for a set of stops. Plan stop sequences for delivery, fieldwork, or multi-stop travel. ## compute - `analyzeGeometry` — POST https://api.mapsource.io/analyze: Run a spatial analysis. Measure or transform GeoJSON, coordinates, query results, and result handles. - `runPipeline` — POST https://api.mapsource.io/compute: Run a multi-step spatial pipeline. Run dependent search, navigation, and analysis without downloading intermediate results. - `readResult` — GET https://api.mapsource.io/results/{id}: Retrieve a held result. Download a result payload or inspect its metadata before further processing. ## account - `readAccount` — GET https://api.mapsource.io/account: Read account and credential details. Inspect account membership, project attribution, and credential permissions. - `createProject` — POST https://api.mapsource.io/account/projects: Create a project. Separate development, staging, production, or other account workloads. - `archiveProject` — DELETE https://api.mapsource.io/account/projects/{project}: Archive a project. Deactivate a project that is no longer in use. - `listServiceAccounts` — GET https://api.mapsource.io/account/projects/{project}/service-accounts: List a project's service accounts. Review service accounts configured for a project's automated workloads. - `createServiceAccount` — POST https://api.mapsource.io/account/projects/{project}/service-accounts: Create a service account. Assign a dedicated identity to an application, integration, or agent. - `disableServiceAccount` — DELETE https://api.mapsource.io/account/projects/{project}/service-accounts/{id}: Disable a service account. Revoke access for a workload or compromised service account. - `listProjectKeys` — GET https://api.mapsource.io/account/projects/{project}/keys: List a project's credentials. Review credentials and access permissions for a project. - `issueProjectKey` — POST https://api.mapsource.io/account/projects/{project}/keys: Issue a scoped credential. Create a credential with permissions for a specific workload. - `revokeProjectKey` — DELETE https://api.mapsource.io/account/projects/{project}/keys/{id}: Revoke a credential. Revoke a compromised credential or remove access for a retired workload. - `setProjectBudget` — PUT https://api.mapsource.io/account/projects/{project}/budget: Set a project usage budget. Set project usage thresholds before automated or high-volume work. - `readAccountUsage` — GET https://api.mapsource.io/account/usage: Read usage attributed by project. Monitor project-level consumption and allocate usage across workloads. - `readAccountAudit` — GET https://api.mapsource.io/account/audit: Read the audit trail. Review account changes and the identity responsible for each action. - `readUsage` — GET https://api.mapsource.io/usage: Read usage for this key. Monitor consumption and remaining allowance before additional requests. ## terrain - `sampleElevation` — GET https://api.mapsource.io/elevation: Sample ground elevation. Retrieve terrain height and the raw model elevation at one coordinate. - `getTerrainTile` — GET https://api.mapsource.io/terrain/{z}/{x}/{y}.png: Read a terrarium-encoded elevation tile. Display hillshading or 3D terrain using the catalog's tile template and zoom range. - `generateContours` — GET https://api.mapsource.io/contours: Generate banded topographic contours. Display elevation contours or analyze terrain relief around a coordinate. ## delivery - `renderStaticMap` — POST https://api.mapsource.io/render/static: Render a static map. Generate static maps for reports, previews, and geographic visualizations. - `getVectorTile` — GET https://api.mapsource.io/tiles/vector/{z}/{x}/{y}.pbf: Read a vector tile. Render or inspect vector features in a map client. Configure source zoom using nativeMaxZoom. - `getRasterTile` — GET https://api.mapsource.io/tiles/{style}/{z}/{x}/{y}.png: Read a raster basemap tile. Display a pre-rendered dark or light basemap without style compilation. - `renderStyleTile` — GET https://api.mapsource.io/tiles/styles/{style}/{z}/{x}/{y}.png: Render a custom style as a raster tile. Display a Mapsource vector preset or fully customized saved style in a raster-only map client. - `readGlyphRange` — GET https://api.mapsource.io/glyphs/{fontstack}/{range}.pbf: Read an SDF glyph range. Supply label glyphs to a MapLibre client rendering a compiled style. ## weather - `readEnvironmentCatalog` — GET https://api.mapsource.io/environment/catalog: Read the weather service catalog and delivery capabilities. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `listEnvironmentSources` — GET https://api.mapsource.io/environment/sources: List source families and their concrete redistribution approvals. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `readEnvironmentSource` — GET https://api.mapsource.io/environment/sources/{sourceId}: Inspect a source family's eligibility and approved products. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `listEnvironmentVariables` — GET https://api.mapsource.io/environment/variables: Read the reference variable dictionary without assuming model availability. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `readEnvironmentStatus` — GET https://api.mapsource.io/environment/status: Read measured per-source weather availability and observation ages. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `readEnvironmentSnapshot` — GET https://api.mapsource.io/environment/sources/{sourceId}/snapshot: Read a complete native aurora or satellite fire snapshot. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `readWeatherCatalog` — GET https://api.mapsource.io/weather/catalog: Read native weather products, formats, rights and transfer limits. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `listWeatherModels` — GET https://api.mapsource.io/weather/models: List forecast and analysis model products. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `readWeatherModel` — GET https://api.mapsource.io/weather/models/{modelId}: Inspect a native weather model product. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `listWeatherRuns` — GET https://api.mapsource.io/weather/models/{modelId}/runs: Discover native source run directories for a date. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `readWeatherRun` — GET https://api.mapsource.io/weather/models/{modelId}/runs/{runId}: List source prefixes and assets within a discovered run. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `readWeatherInventory` — GET https://api.mapsource.io/weather/models/{modelId}/runs/{runId}/inventory: Read actual native GRIB message index fields and byte ranges. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `listWeatherAssets` — GET https://api.mapsource.io/weather/sources/{sourceId}/assets: Discover native objects under an approved product prefix. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `describeWeatherAsset` — GET https://api.mapsource.io/weather/sources/{sourceId}/asset-metadata: Validate native asset format and pin its source version. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `getWeatherAsset` — GET https://api.mapsource.io/weather/sources/{sourceId}/asset: Download byte-identical native weather data. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `readWeatherForecast` — GET https://api.mapsource.io/weather/forecast: Read the native NWS forecast for a supported U.S. point. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `readWeatherAlerts` — GET https://api.mapsource.io/weather/alerts: Read native active NWS alerts for an area or point. Discover reviewed weather products, inspect native source inventories, or retrieve unchanged provider data with its license and version. - `readWeatherVisualizations` — GET https://api.mapsource.io/weather/visualizations: Read available derived weather map products and resource limits. Discover a reviewed product's real source file and field, create a bounded map preview, and retain its source and transformation metadata. - `listWeatherVisualizationAssets` — GET https://api.mapsource.io/weather/sources/{sourceId}/visualization-assets: Discover actual native files for a weather map. Discover a reviewed product's real source file and field, create a bounded map preview, and retain its source and transformation metadata. - `readWeatherVisualizationFields` — GET https://api.mapsource.io/weather/sources/{sourceId}/visualization-fields: Inspect actual fields, levels and times for a weather map. Discover a reviewed product's real source file and field, create a bounded map preview, and retain its source and transformation metadata. - `submitWeatherVisualization` — POST https://api.mapsource.io/weather/sources/{sourceId}/visualizations: Create a bounded weather map asynchronously. Discover a reviewed product's real source file and field, create a bounded map preview, and retain its source and transformation metadata. - `readWeatherVisualizationJob` — GET https://api.mapsource.io/weather/visualizations/{jobId}: Inspect a weather visualization job. Discover a reviewed product's real source file and field, create a bounded map preview, and retain its source and transformation metadata. - `readWeatherVisualizationResult` — GET https://api.mapsource.io/weather/visualizations/{jobId}/result: Download a completed weather visualization. Discover a reviewed product's real source file and field, create a bounded map preview, and retain its source and transformation metadata. ## Authentication Authenticated endpoints require `Authorization: Bearer $MAPSOURCE_API_KEY`. Store the key in a secret manager or environment variable and keep it out of URLs. Obtain a subscription key at https://mapsource.io/pricing?focus=plans. Public endpoints are marked in the API reference. Address and business search and regional POI discovery are included in every plan. Use your existing API key and shared quota allowance; no separate subscription is required. Search requires a subscription key; an x402 Overpass query payment does not grant search access. ## Search integration Use `lookupPlaces` (MCP `geo_search`, operation `lookup`) for address, business and brand suggestions. Use `discoverPlaces` (operation `discover`) for businesses in a viewport, polygon or travel-time region. The compatibility geocoder is retained for existing clients. Read [search examples and coverage](https://mapsource.io/docs/places-api) and [request accounting](https://mapsource.io/docs/limits#search-accounting). Lookup uses its listed quota weight, plus the interpreter’s weight if regional Overpass fallback is used. Discovery counts its Overpass query and optional isochrone/matrix calls without a separate wrapper charge. Observe returned coverage, pagination, ambiguity and dataset timestamps. ## Working efficiently Supported operations return large results as handles containing a type, count, bounding box, source metadata, and expiry. Pass a handle to subsequent operations or retrieve its payload when the client requires the full result. ## Machine payment Read the network, asset, amount and recipient from the challenge itself (PAYMENT-REQUIRED). Mainnet settlement transfers real funds. Obtain explicit spending authority for the amount and task budget before signing. Check settlement status before retrying a signed payment. Endpoint: POST https://api.mapsource.io/x402/interpreter. Send a JSON object with a query field. Configured price: $0.01 per query on eip155:8453. Mode: live. Successful settlement transfers real funds on the specified network. Payments settle directly to the configured wallet. Each verified payer wallet has 1,800 requests per minute and 24 concurrent queries, shared across paid REST and MCP calls, not across other wallets. Query execution bounds remain those of Developer; each successful query is paid separately with no monthly request allowance. Save the transaction hash from PAYMENT-RESPONSE for support. Query payment does not create a subscription or API key. Settlement availability: https://api.mapsource.io/status. ## Attribution OpenStreetMap data is © OpenStreetMap contributors under ODbL. Basemap tiles additionally carry OpenMapTiles and CARTO attribution, and terrain comes from Mapzen Terrain Tiles on AWS Open Data. Keep the attribution returned with a response when you publish anything derived from it. See https://api.mapsource.io/attribution.