Documentation menu
Search docs…⌘K

API reference

Raster XYZ map tile (256 px, or 512 px with @2x)

Standard XYZ (Web Mercator) raster tile for Leaflet, MapLibre (raster source) and Flutter `flutter_map`: `https://api.wayline.cloud/v1/tiles/{z}/{x}/{y}@2x.png?key=…`. `{y}` is the tile row followed by `.png` or `@2x.png`. One `map_tile` unit per tile; responses are cacheable for 24 hours, and tiles your app or browser caches are never billed again. Tiles are loaded from browsers and apps, so use a **publishable key**: a key whose only scope is `map_tile`, with allowed origins set for websites. The origin check also uses the `Referer` header, because image requests do not send `Origin`.

Endpoint

GEThttps://api.wayline.cloud/v1/tiles/{z}/{x}/{y}
Bearer Auth

Requires an API key (authentication). Billing: see units & pricing.

Parameters

NameInTypeDescription
zrequiredpathinteger
xrequiredpathinteger
yrequiredpathstringRow with suffix: 14157.png or [email protected].

Response

200 — PNG tile.

Errors

StatusWhen
400Bad request (invalid coordinates, out of coverage, too many elements, etc.).
401Missing or invalid API key, or expired key.
402Free quota exhausted, no payment method, account suspended, or the monthly spend limit you set was reached. Never billed. Raise or remove the limit in the dashboard (Billing) and retry; nothing else changes.
403Account disabled, key IP restriction failed, origin not allowed, or scope not permitted.
429Rate limit exceeded or test key daily quota reached.
503Upstream routing service temporarily unavailable.

Error bodies contain a code such as OUT_OF_COVERAGE — see the error reference.

Try it

Interactive API Console

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

Sends a real request from your browser using a test key (free, never billed). The key stays in this browser tab only.

No key yet? Create a free test key.

Was this page helpful?