---
title: "Execute an Overpass query with x402"
method: POST
path: "/x402/interpreter"
tags: ["discovery"]
---

# Execute an Overpass query with x402

`POST /x402/interpreter`

## Request

- Base URL: `https://api.mapsource.io`
- URL: `https://api.mapsource.io/x402/interpreter`
- Auth: HTTP bearer

Executes a bounded JSON-output Overpass QL query using per-request x402 payment. 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.

When to use: Submit a query using an authorized compatible wallet without a subscription key.

When not to use: Use the subscription interpreter when an API key is available. Query payments do not include tiles or elevation.

## Request body

- object
  - `query` string, required: Overpass QL using [out:json]. Send a JSON object with this field.

## Response `200`

Execute an Overpass query with x402

- object
  - `version` number
  - `generator` string
  - `osm3s` object
  - `elements` object[], required

## Other responses

- `400`: Error with a stable machine code.
- `401`: Error with a stable machine code.
- `402`: Payment required. The PAYMENT-REQUIRED header carries the challenge: read the network, asset, amount and receiver from it, never from documentation.
- `429`: Error with a stable machine code.
- `500`: Error with a stable machine code.

---

[API](https://skmtc.dev/mapsource/apis/mapsource-overpass-api.md) · [All operations](https://skmtc.dev/mapsource/apis/mapsource-overpass-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mapsource/apis/mapsource-overpass-api/revisions/8af8c2769e7b?raw)
