API / Vector Tiles
GET /tiles/{source}/{z}/{x}/{y}

Vector Tiles API.

Fetch Mapbox Vector Tiles as binary protobuf bytes.

First call /sources to list available sources, then use /tiles/{source} for TileJSON or /tiles/{source}/{z}/{x}/{y} for tile bytes.

Example request
curl "https://YOUR-RAPIDAPI-HOST/tiles/africa/14/8321/5674" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: YOUR_RAPIDAPI_HOST" \
  --output tile.pbf

Tile Source Discovery

GET /sources

Returns all available vector tile sources. Use the returned id in TileJSON and tile requests.

id
string
Returned
Tile source ID.
name
string
Returned
Source name.
description
string
Returned
Source description when available.
format
string
Returned
Tile format, commonly pbf.
minzoom
integer
Returned
Minimum zoom level.
maxzoom
integer
Returned
Maximum zoom level.
bounds
string
Returned
west,south,east,north bounds.
center
string
Returned
lon,lat,zoom center.
tiles
string
Returned
Tile URL template.
tilejson
string
Returned
TileJSON URL for the source.

TileJSON

GET /tiles/{source}

Returns TileJSON metadata for one source, including bounds, center, format, zoom range, tile URL template, attribution, and vector layer metadata.

Vector Tile

GET /tiles/{source}/{z}/{x}/{y}

source
string
Yes
Tile source ID returned by /sources.
z
integer
Yes
Zoom level. Range: 0 to 22.
x
integer
Yes
XYZ tile column. Range: 0 to (2^z) - 1.
y
integer
Yes
XYZ tile row. Range: 0 to (2^z) - 1.
Successful response
HTTP/1.1 200 OK
Content-Type: application/x-protobuf
Cache-Control: public, max-age=86400

<binary tile data>

A valid coordinate with no tile returns 204. Invalid z, x, or y values return 400.