Tilequery API

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.

Enter values for each parameter or click the map below to query at a point.

For custom tilesets, replace mapbox.mapbox-streets-v8 or mapbox.mapbox-terrain-v2 with the tileset ID of the tileset you'd like to query.

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 .

Parameters
from your account page
tileset select tileset(s) to query
Optional parameters
in meters
number of items to return
source layers to query
limit results to a specific type
Deduplicate results based on feature IDs and shared geometries and properties; default is true.
Request URL
https://api.mapbox.com/v4/{tileset_id}/tilequery/{lon},{lat}.json
Response
You haven't queried a point yet. Click on the map to query at a point or enter parameters to try the Tilequery API.
Was this playground helpful?