Interactive tools

Tilequery API playground

The Mapbox Tilequery API allows you to retrieve features from vector tilesets based on a given longitude and latitude. The endpoint also gives you the ability to add a radius to the query to retrieve nearby features, as well as several other optional parameters for customizing the output.

How to use this interactive tool:
  1. Paste your access token into the first field on the left.
  2. Select the tileset to query (or query both at once).
  3. Enter any desired optional parameters in the appropriate fields.
  4. Click a location on the map to visualize the results of your query!
  5. Use the GeoJSON tab to view the query results as raw GeoJSON.
Note

Use of the Mapbox Tilequery API endpoint is rate limited to 300 requests per minute. (If you require a higher rate limit, contact us.) Exceeding the limit of 300 requests per minute will result in an HTTP 429 Too Many Requests response. For information on rate limit headers, see the Rate limits section of the Mapbox API documentation.

Required parameters
from your account page
tileset select tileset(s) to query
Optional parameters
in meters
0
meters
number of items to return
5
items
source layers to query
geometry limit results to a specific type
Deduplicate results based on feature IDs and shared geometries and properties; default is true.
Preview
Click the map to query at a point
"Make a request to see the raw GeoJSON!"
query point
results