- Home
- Docs
- API reference
- Raster XYZ map tile (256 px, or 512 px with @2x)
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
https://api.wayline.cloud/v1/tiles/{z}/{x}/{y}Requires an API key (authentication). Billing: see units & pricing.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
zrequired | path | integer | |
xrequired | path | integer | |
yrequired | path | string | Row with suffix: 14157.png or [email protected]. |
Response
200 — PNG tile.
Errors
| Status | When |
|---|---|
400 | Bad request (invalid coordinates, out of coverage, too many elements, etc.). |
401 | Missing or invalid API key, or expired key. |
402 | Free 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. |
403 | Account disabled, key IP restriction failed, origin not allowed, or scope not permitted. |
429 | Rate limit exceeded or test key daily quota reached. |
503 | Upstream routing service temporarily unavailable. |
Error bodies contain a code such as OUT_OF_COVERAGE — see the error reference.
Try it
Interactive API Console
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.