{"openapi":"3.1.2","info":{"title":"meteoblue Maps API","description":"# Overview\n\nThe Maps API provides dynamically generated weather map visualisations as map tiles based on meteoblue forecast and data products.\nIt allows users to request fully processed map tiles by specifying parameters such as location, time, weather variables and visual configuration.\nThe API is designed for applications that require pre-rendered or processed map outputs, such as reports, dashboards or backend-generated visualisations.\n\nMap rendering is based on configurable layers and styling options, enabling the creation of customised visual representations of meteorological data.\nDepending on the configuration, maps can be generated using different rendering approaches, including raster-based and vector-based formats.\n\nThis API returns tiles in vector and raster format. Vector tiles are encoded in the [Protobuf format](https://github.com/mapbox/vector-tile-spec/tree/master/2.1).\nFor more information and compatible rendering libraries, see [awesome-vector-tiles](https://github.com/mapbox/awesome-vector-tiles).\n\nFor satellite and radar data, see the [Tiles API documentation](../tiles/redoc).\n\nLearn more about the features and use cases of the [Maps API](https://business.meteoblue.com/products/weather-apis/weather-maps-api) on our website.\nConfigure and send API requests using the [Maps API Configurator](https://www.meteoblue.com/en/weather-api/maps-api/).\n\nThe API can be used to render customisable weather overlays on standard map SDKs (Leaflet, Mapbox GL JS, Google Maps).\nEvery model-based layer is generated on demand, allowing you to change styling, colour maps, units, contours, smoothing, thresholds, density, opacity, and composite rules directly through the URL.\nThis is a core capability of the Maps API, allowing for maximum customisability instead of fixed, pre-defined tiles with no possibility of altering how the data is visualised.\n\n## Map Rendering: Raster vs Vector\n\nThe Maps API supports different rendering approaches for generating map visualisations, primarily:\n\n- Raster rendering produces map images as pre-rendered pixels (e.g. PNG). These images are generated on the server and delivered as complete visual outputs. Raster maps are well suited for static use cases such as reports, dashboards, or situations where no further client-side interaction is required.\n- Vector rendering is based on structured data that defines map features and styling. This approach allows more flexibility in how map elements are rendered, and is typically used in combination with client-side rendering technologies and interactive applications.\n\nIn the context of the Maps API, raster rendering is the preferred approach for generating ready-to-use map images.\nVector-based approaches are primarily relevant when integrating with systems that support dynamic or client-side rendering.\n\n## Limitations\n\nThe availability of map data depends on the selected domain, time, and weather layer.\nNot all combinations may be available for all locations or time steps.\nRequests must use valid tile coordinates and supported configuration parameters.\nIf a request falls outside the supported data coverage or contains invalid parameters, the API will return an error response.\n\n## Credits and Call Limits\n\n### API Keys and Access\n\nAccess to the Maps API is controlled via an API key. API keys are associated with a user account and are used to authenticate API requests.\nA user account may own multiple API keys, for example to separate usage across applications or environments. All API usage performed with an API key is attributed to the owning account.\nThe API key itself has to be provided as a URL query parameter (`apikey=YOUR_API_KEY`).\nAPI keys should be stored securely and must not be exposed publicly.\n\n### Usage Accounting and Limits\n\nAPI usage is accounted for based on credits, not on fixed call limits.\nEach API request consumes 200 credits.\nUsage statistics are available to provide transparency on consumed credits and API usage over time.\nDaily credit limits may be applied at two levels:\n\n- Account-level limits, which can be set to ensure overall API stability\n- API key-level limits, which can be configured by the user to prevent accidental overuse\n\nIf the configured daily credit limit is exceeded, subsequent API requests will result in an error response.\n\n**Without further agreement, we impose a rate limit of 500 calls per minute.** If you plan to make a lot of requests, please evenly distribute your calls over a few hours.","version":"1.0.0","x-logo":{"url":"https://static.meteoblue.com/assets/images/logo/meteoblue_logo_v2.0.png","backgroundColor":"hsl(210deg, 40%, 98%)","altText":"meteoblue","href":"https://docs.meteoblue.com/en/weather-apis/introduction/overview"}},"tags":[{"name":"Maps API"}],"servers":[{"url":"https://maps-api.meteoblue.com"}],"security":[{"apikey":[]}],"paths":{"/v1/map/vector/{domain}/{time}/{layer}/{z}/{x}/{y}":{"parameters":[{"name":"layer","in":"path","required":true,"schema":{"type":"string","examples":["temperature~11~2%20m%20above%20gnd~daily~max~contourSteps~-10.0~0.0~10.0~20.0~30.0~40.0"],"pattern":"^[^~_]+~\\d+~[^~_]+~[^~_]+~[^~_]+~((contourLinear~[\\d.]+(~-?[\\d.]+~-?[\\d.]+)?)|(linesLinear~[\\d.]+(~-?[\\d.]+~-?[\\d.]+)?)|(lineslinearWithHighLowPressureLabels~[\\d.]+(~-?[\\d.]+~-?[\\d.]+)?)|(contourSteps(~-?[\\d.]+)+)|(linesSteps(~-?[\\d.]+)+)|windArrows)(_[^~_]+~\\d+~[^~_]+~[^~_]+~[^~_]+~((contourLinear~[\\d.]+(~-?[\\d.]+~-?[\\d.]+)?)|(linesLinear~[\\d.]+(~-?[\\d.]+~-?[\\d.]+)?)|(lineslinearWithHighLowPressureLabels~[\\d.]+(~-?[\\d.]+~-?[\\d.]+)?)|(contourSteps(~-?[\\d.]+)+)|(linesSteps(~-?[\\d.]+)+)|windArrows))*$"},"description":"Layer-Definition of a vector-tile.\n\nMultiple layers in a single query are supported, by separating them with the character `_` (underscore).\n\nEach Vector-Layer-Definition contains values separated by the character `~` (tilde).\n\n| Vector-Layer-Parameter | Description                                                  |\n| ---------------------- | ------------------------------------------------------------ |\n| Name                   | Name of the source layer inside the protobuf (used in `style.json`) |\n| Code                   | Weather-Variable [Code](http://my.meteoblue.com/dataset/codes?apikey=DEMOKEY&sig=19d81dbde47ea2ae6da2a870c48b88dc) (integer > 0) |\n| Level                  | Height-Level of Variable (examples: `sfc`, `2 m above gnd`, `2 m elevation corrected`, `MSL`) |\n| Time-Resolution        | One of: `static`, `none`, `1min`, `5min`, `10min`, `15min`, `30min`, `hourly`, `3hourly`, `6hourly`, `halfDay`, `daily`, `7 days`, `weekly52`, `monthly`, `yearly`, `total` |\n| Aggregation            | One of: `mean`, `min`, `max`, `sum`, `stddev`, `sumIgnoreNaN`, `meanIgnoreNaN`, `minIgnoreNaN`, `maxIgnoreNaN`, `p10`, `p25`, `p50`, `p75`, `p90` |\n| Type                   | Type followed by type-specific parameters _see next table_ |\n\nA Vector-Layer supports these different types, which depending on the type, require some additional parameters.\n| Vector-Type                            | Description                                  |\n| -------------------------------------- | -------------------------------------------- |\n| `contourSteps`                         | `step0~step1~step2~...~stepN`                |\n| `linesSteps`                           | `step0~step1~step2~...~stepN`                |\n| `contourLinear`                        | `width` or `width~min~max`                   |\n| `linesLinear`                          | `width` or `width~min~max`                   |\n| `lineslinearWithHighLowPressureLabels` | `width` or `width~min~max`                   |\n| `windArrows`                           | _no further parameters_                      |"},{"name":"domain","in":"path","required":true,"schema":{"type":"string","enum":["NEMS4","NEMS12","NEMSGLOBAL","GFS05","GFS025","GFS012","MFEU","MFGLOBAL","UMGLOBAL","ICON","ICONEU"]},"description":"Domain (Weather-Model) from which to get the data."},{"name":"time","in":"path","required":true,"schema":{"anyOf":[{"type":"string","description":"The point in time of interest. Used for most standard requests, which don't require aggregations or comparisons, like a regular temperature map.","examples":["2020-03-12T00Z"],"pattern":"^\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z$"},{"type":"string","description":"The time interval of interest, as two date-time values separated by `/`. Used for aggregations like daily precipitation sum map. _Make sure to specify the aggregation with the `timeIntervalAggregation`-parameter._","examples":["2020-03-01T00Z/2020-03-15T00Z"],"pattern":"^\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z/\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z$"},{"type":"string","description":"Two points in time of interest, as two date-time values separated by `_`. Used for comparisons between the two points in time, like temperature difference. _Make sure to specify the comparison with the `timeIntervalComparator`-parameter._","examples":["2020-03-12T00Z_2020-03-12T06Z"],"pattern":"^\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z_\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z$"},{"type":"string","description":"Two time intervals of interest, as four date-time values separated by `_` and `/`. Used for comparisons between two aggregated periods, like precipitation deficit between seasons. _Make sure to specify the aggregation and comparison with the `timeIntervalAggregation`- and `timeIntervalComparator`-parameter._","examples":["2020-03-01T00Z/2020-04-01T00Z_2021-03-01T00Z/2021-04-01T00Z"],"pattern":"^\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z/\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z_\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z/\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z$"}],"examples":["2020-03-12T00Z","2020-03-01T00Z/2020-03-15T00Z","2020-03-12T00Z_2020-03-12T06Z","2020-03-01T00Z/2020-04-01T00Z_2021-03-01T00Z/2021-04-01T00Z"]},"description":"The forecast or data timestamp for which the map is generated. The format depends on the use case:\n- A single point in time, for example a regular temperature map.\n- A time interval, aggregated with `timeIntervalAggregation`.\n- Two points in time, compared with `timeIntervalComparator`.\n- Two time intervals, aggregated with `timeIntervalAggregation` and compared with `timeIntervalComparator`.\n\nAvailable timestamps can be retrieved with the [Time API](../time/redoc)."},{"name":"z","in":"path","required":true,"schema":{"type":"integer","minimum":0},"description":"The zoom-level of the tile. A value of `0` gives a tile the size of the entire world, each increase in zoom-level subdivides the tile-set in half.\n\n| Zoom (z) | Tiles per side | Max `x` | Max `y` | Tile width @ 0° (km) | Tile width @ 23.5° (km) |\n|----------|----------------|---------|---------|----------------------|------------------------|\n| 0        | 1              | 0       | 0       | 40 075               | 36749                  |\n| 5        | 32             | 31      | 31      | 1253                 | 1149                   |\n| 10       | 1024           | 1023    | 1023    | 39.1                 | 35.9                   |"},{"name":"x","in":"path","required":true,"schema":{"type":"integer","minimum":0},"description":"The x-coordinate of the tile (left to right). Valid values depend on the zoom-level `z` and range from `0` to `2^z -1`. (At zoom 0 there is only one tile, `x = 0`.)"},{"name":"y","in":"path","required":true,"schema":{"type":"integer","minimum":0},"description":"The y-coordinate of the tile (top to bottom). Valid values depend on the zoom-level `z` and range from `0` to `2^z -1`. (At zoom 0 there is only one tile, `y = 0`.)"},{"name":"lastUpdate","in":"query","schema":{"type":"string","format":"date-time"},"description":"Used to purge the cache on client and server-side. Should be set to last-model-update time."},{"name":"timeIntervalAggregation","in":"query","schema":{"type":"string","enum":["mean","min","max","sum","stddev","sumIgnoreNaN","meanIgnoreNaN","minIgnoreNaN","maxIgnoreNaN","p10","p25","p50","p75","p90"],"default":"none","examples":["none"]},"description":"The aggregation to do over the specified time interval. Only applicable if an interval was provided for the `time`-parameter."},{"name":"timeIntervalComparator","in":"query","schema":{"type":"string","enum":["subtract","add","mean"]},"description":"The comparison to do over the two specified instances or time intervals. Only applicable if these were provided for the `time`-parameter."}],"get":{"tags":["Maps API"],"summary":"Vector Map Tile","description":"This endpoint returns a vector-based map tile for the requested weather layer, domain, time, and tile coordinates.\n**Used vector format for the tiles: ([protobuf format](https://github.com/mapbox/vector-tile-spec/tree/master/2.1)).**\nThis endpoint provides **vector tiles** containing weather data as geometric features (lines, polygons, or points) (**no raster images or svg**).\nYou can render them dynamically in clients like **Mapbox GL**, **OpenLayers**, or **Tangram** using a custom `style.json`.\nEach request returns a `.pbf` file representing one tile of the map grid.\nFor examples and compatible rendering libraries, see [awesome-vector-tiles](https://github.com/mapbox/awesome-vector-tiles).","responses":{"200":{"description":"OK","headers":{"MB-Credits-Accounted":{"$ref":"#/components/headers/accounting-header"}},"content":{"application/x-protobuf":{"schema":{"type":"string","format":"binary","externalDocs":{"description":"The protobuf is in the format specified by mapbox vector-tile-specification.","url":"https://github.com/mapbox/vector-tile-spec/tree/master/2.0"},"contentMediaType":"application/x-protobuf","contentEncoding":"binary"}}}},"400":{"$ref":"#/components/responses/error-response","description":"Bad Request"},"403":{"$ref":"#/components/responses/error-response","description":"Forbidden"},"422":{"$ref":"#/components/responses/error-response","description":"Bad Request"},"429":{"$ref":"#/components/responses/error-response","description":"Too Many Requests"}},"x-codeSamples":[{"lang":"JavaScript","source":"let now = (new Date()).toISOString().replace(/\\.\\d*/, \"\");\nfetch(`https://maps-api.meteoblue.com/v1/map/vector/NEMSAUTO/${now}/temperature~11~2%20m%20above%20gnd~daily~max~contourSteps~-50.0~0.0~50.0/4/1/1?apikey=YOUR_APIKEY`)\n.then(res => res.json())\n.then(console.log);"},{"lang":"Python","source":"import requests\nfrom datetime import datetime\n\nnow = datetime().strftime(\"%Y-%m-%dT%H:%M:%SZ\")\nurl = f\"https://maps-api.meteoblue.com/v1/map/vector/NEMSAUTO/{now}/temperature~11~2%20m%20above%20gnd~daily~max~contourSteps~-50.0~0.0~50.0/4/1/1?apikey=YOUR_APIKEY\"\nresponse = requests.get(url)\nprint(response.json())"},{"lang":"Shell","source":"curl \"https://maps-api.meteoblue.com/v1/map/vector/NEMSAUTO/$(date -u +\"%Y-%m-%dT%H:%M:%SZ\")/temperature~11~2%20m%20above%20gnd~daily~max~contourSteps~-50.0~0.0~50.0/4/1/1?apikey=YOUR_APIKEY\""},{"lang":"Java","source":"import java.net.*;\nimport java.io.*;\n\npublic class Main {\n    public static void main(String[] args) throws Exception {\n        String now = ZonedDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"));\n        String url = \"https://maps-api.meteoblue.com/v1/map/vector/NEMSAUTO/\" + now + \"/temperature~11~2%20m%20above%20gnd~daily~max~contourSteps~-50.0~0.0~50.0/4/1/1?apikey=YOUR_APIKEY\";\n        HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection();\n        conn.setRequestMethod(\"GET\");\n\n        try (BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()))) {\n            String line;\n            while ((line = in.readLine()) != null) {\n                System.out.println(line);\n            }\n        }\n    }\n}"}]}},"/v1/map/raster/{domain}/{time}/{layer}/{z}/{x}/{y}":{"parameters":[{"name":"layer","in":"path","required":true,"schema":{"type":"string","examples":["11~2%20m%20above%20gnd~daily~max~contourSteps~-10.0~rgb(160,234,247)~0.0~rgb(0,239,124)~10.0~rgb(0,228,82)~20.0~rgb(0,200,72)~30.0~rgb(16,184,122)~40.0~rgb(41,123,93)"],"pattern":"^\\d+~[^~_]+~[^~_]+~[^~_]+~((contourSteps(~-?[\\d.]+~[^~_]+)+)|(colorBlurRaster(~-?[\\d.]+~[^~_]+)+)|uvCoding)(_(\\d+~[^~_]+~[^~_]+~[^~_]+~((contourSteps(~-?[\\d.]+~[^~_]+)+)|(colorBlurRaster(~-?[\\d.]+~[^~_]+)+)|uvCoding)))*$"},"description":"Layer-Definition of a raster-tile.\n\nMultiple layers in a single query are supported, by separating them with the character `_` (underscore).\n\nEach Raster-Layer-Definition contains values separated by the character `~` (tilde).\n\n| Raster-Layer-Parameter | Description                                                  |\n| ---------------------- | ------------------------------------------------------------ |\n| Code                   | Weather-Variable [Code](http://my.meteoblue.com/dataset/codes?apikey=DEMOKEY&sig=19d81dbde47ea2ae6da2a870c48b88dc) (integer > 0) |\n| Level                  | Height-Level of Variable (examples: `sfc`, `2 m above gnd`, `2 m elevation corrected`, `MSL`) |\n| Time-Resolution        | One of: `static`, `none`, `1min`, `5min`, `10min`, `15min`, `30min`, `hourly`, `3hourly`, `6hourly`, `halfDay`, `daily`, `7 days`, `weekly52`, `monthly`, `yearly`, `total` |\n| Aggregation            | One of: `mean`, `min`, `max`, `sum`, `stddev`, `sumIgnoreNaN`, `meanIgnoreNaN`, `minIgnoreNaN`, `maxIgnoreNaN`, `p10`, `p25`, `p50`, `p75`, `p90` |\n| Type                   | Type followed by type-specific parameters _see next table_  |\n\nA Raster-Layer supports these different types, which depending on the type, require some additional parameters.\n| Type              | Description                                  |\n| ----------------- | -------------------------------------------- |\n| `contourSteps`    | `step0~color0~step1~color1~...~stepN~colorN` |\n| `colorBlurRaster` | `step0~color0~step1~color1~...~stepN~colorN` |\n| `uvCoding`        | _no further parameters_                      |\n\nSupported colour formats are:\n| Format | Example |\n| - | - |\n| 3-digit hex `#RGB` | `#2EA` |\n| 4-digit hex `#RGBA` | `#39A6` |\n| 6-digit hex `#RRGGBB` | `#f940ad` |\n| 8-digit hex `#RRGGBBAA` | `#4a6f6e69` |\n| RGB functional `rgb(R,G,B)` | `rgb(255,255,0)` |\n| RGBA functional `rgba(R,G,B,A)` | `rgba(128,64,32,0.5)` |"},{"name":"domain","in":"path","required":true,"schema":{"type":"string","enum":["NEMS4","NEMS12","NEMSGLOBAL","GFS05","GFS025","GFS012","MFEU","MFGLOBAL","UMGLOBAL","ICON","ICONEU"]},"description":"Domain (Weather-Model) from which to get the data."},{"name":"time","in":"path","required":true,"schema":{"anyOf":[{"type":"string","description":"The point in time of interest. Used for most standard requests, which don't require aggregations or comparisons, like a regular temperature map.","examples":["2020-03-12T00Z"],"pattern":"^\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z$"},{"type":"string","description":"The time interval of interest, as two date-time values separated by `/`. Used for aggregations like daily precipitation sum map. _Make sure to specify the aggregation with the `timeIntervalAggregation`-parameter._","examples":["2020-03-01T00Z/2020-03-15T00Z"],"pattern":"^\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z/\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z$"},{"type":"string","description":"Two points in time of interest, as two date-time values separated by `_`. Used for comparisons between the two points in time, like temperature difference. _Make sure to specify the comparison with the `timeIntervalComparator`-parameter._","examples":["2020-03-12T00Z_2020-03-12T06Z"],"pattern":"^\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z_\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z$"},{"type":"string","description":"Two time intervals of interest, as four date-time values separated by `_` and `/`. Used for comparisons between two aggregated periods, like precipitation deficit between seasons. _Make sure to specify the aggregation and comparison with the `timeIntervalAggregation`- and `timeIntervalComparator`-parameter._","examples":["2020-03-01T00Z/2020-04-01T00Z_2021-03-01T00Z/2021-04-01T00Z"],"pattern":"^\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z/\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z_\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z/\\d{4}-?\\d{2}-?\\d{2}T(\\d{2}(\\d{2}(\\d{2})?)?)?Z$"}],"examples":["2020-03-12T00Z","2020-03-01T00Z/2020-03-15T00Z","2020-03-12T00Z_2020-03-12T06Z","2020-03-01T00Z/2020-04-01T00Z_2021-03-01T00Z/2021-04-01T00Z"]},"description":"The forecast or data timestamp for which the map is generated. The format depends on the use case:\n- A single point in time, for example a regular temperature map.\n- A time interval, aggregated with `timeIntervalAggregation`.\n- Two points in time, compared with `timeIntervalComparator`.\n- Two time intervals, aggregated with `timeIntervalAggregation` and compared with `timeIntervalComparator`.\n\nAvailable timestamps can be retrieved with the [Time API](../time/redoc)."},{"name":"z","in":"path","required":true,"schema":{"type":"integer","minimum":0},"description":"The zoom-level of the tile. A value of `0` gives a tile the size of the entire world, each increase in zoom-level subdivides the tile-set in half.\n\n| Zoom (z) | Tiles per side | Max `x` | Max `y` | Tile width @ 0° (km) | Tile width @ 23.5° (km) |\n|----------|----------------|---------|---------|----------------------|------------------------|\n| 0        | 1              | 0       | 0       | 40 075               | 36749                  |\n| 5        | 32             | 31      | 31      | 1253                 | 1149                   |\n| 10       | 1024           | 1023    | 1023    | 39.1                 | 35.9                   |"},{"name":"x","in":"path","required":true,"schema":{"type":"integer","minimum":0},"description":"The x-coordinate of the tile (left to right). Valid values depend on the zoom-level `z` and range from `0` to `2^z -1`. (At zoom 0 there is only one tile, `x = 0`.)"},{"name":"y","in":"path","required":true,"schema":{"type":"integer","minimum":0},"description":"The y-coordinate of the tile (top to bottom). Valid values depend on the zoom-level `z` and range from `0` to `2^z -1`. (At zoom 0 there is only one tile, `y = 0`.)"},{"name":"lastUpdate","in":"query","schema":{"type":"string","format":"date-time"},"description":"Used to purge the cache on client and server-side. Should be set to last-model-update time."},{"name":"timeIntervalAggregation","in":"query","schema":{"type":"string","enum":["mean","min","max","sum","stddev","sumIgnoreNaN","meanIgnoreNaN","minIgnoreNaN","maxIgnoreNaN","p10","p25","p50","p75","p90"],"default":"none","examples":["none"]},"description":"The aggregation to do over the specified time interval. Only applicable if an interval was provided for the `time`-parameter."},{"name":"timeIntervalComparator","in":"query","schema":{"type":"string","enum":["subtract","add","mean"]},"description":"The comparison to do over the two specified instances or time intervals. Only applicable if these were provided for the `time`-parameter."}],"get":{"tags":["Maps API"],"summary":"Raster Map Tile","description":"This endpoint returns a pre-rendered raster map tile for the requested weather layer, domain, time, and tile coordinates.\nThe output is provided as an image, representing the fully styled visualisation of the selected meteorological data.\nBy default the tile is returned as PNG. If the `Accept` header of the request contains `image/webp`, the tile is returned as lossless WebP instead.\nRaster map tiles are generated on the server and delivered as complete visual outputs, requiring no additional client-side rendering.\nThis makes the endpoint suitable for applications that require consistent, ready-to-use map visuals without dynamic styling or interaction.\nRaster tiles are well suited for static use cases such as reports, dashboards, or situations where no further client-side interaction is required.","responses":{"200":{"description":"OK","headers":{"MB-Credits-Accounted":{"$ref":"#/components/headers/accounting-header"}},"content":{"image/png":{"schema":{"type":"string","format":"binary","examples":["PNG"],"contentMediaType":"image/png","contentEncoding":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary","examples":["WebP"],"contentMediaType":"image/webp","contentEncoding":"binary"}}}},"400":{"$ref":"#/components/responses/error-response","description":"Bad Request"},"403":{"$ref":"#/components/responses/error-response","description":"Forbidden"},"422":{"$ref":"#/components/responses/error-response","description":"Bad Request"},"429":{"$ref":"#/components/responses/error-response","description":"Too Many Requests"}},"x-codeSamples":[{"lang":"JavaScript","source":"let now = (new Date()).toISOString().replace(/\\.\\d*/, \"\");\nfetch(`https://maps-api.meteoblue.com/v1/map/raster/NEMSAUTO/${now}/11~2%20m%20above%20gnd~daily~max~colorBlurRaster~-50.0~rgba(0,255,255,1.0)~0.0~rgba(255,0,255,1.0)~50.0~rgba(255,255,0,1.0)/4/1/1?apikey=YOUR_APIKEY`)\n.then(res => res.json())\n.then(console.log);"},{"lang":"Python","source":"import requests\nfrom datetime import datetime\n\nnow = datetime().strftime(\"%Y-%m-%dT%H:%M:%SZ\")\nurl = f\"https://maps-api.meteoblue.com/v1/map/raster/NEMSAUTO/{now}/11~2%20m%20above%20gnd~daily~max~colorBlurRaster~-50.0~rgba(0,255,255,1.0)~0.0~rgba(255,0,255,1.0)~50.0~rgba(255,255,0,1.0)/4/1/1?apikey=YOUR_APIKEY\"\nresponse = requests.get(url)\nprint(response.json())"},{"lang":"Shell","source":"curl \"https://maps-api.meteoblue.com/v1/map/raster/NEMSAUTO/$(date -u +\"%Y-%m-%dT%H:%M:%SZ\")/11~2%20m%20above%20gnd~daily~max~colorBlurRaster~-50.0~rgba(0,255,255,1.0)~0.0~rgba(255,0,255,1.0)~50.0~rgba(255,255,0,1.0)/4/1/1?apikey=YOUR_APIKEY\""},{"lang":"Java","source":"import java.net.*;\nimport java.io.*;\n\npublic class Main {\n    public static void main(String[] args) throws Exception {\n        String now = ZonedDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"));\n        String url = \"https://maps-api.meteoblue.com/v1/map/raster/NEMSAUTO/\" + now + \"/11~2%20m%20above%20gnd~daily~max~colorBlurRaster~-50.0~rgba(0,255,255,1.0)~0.0~rgba(255,0,255,1.0)~50.0~rgba(255,255,0,1.0)/4/1/1?apikey=YOUR_APIKEY\";\n        HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection();\n        conn.setRequestMethod(\"GET\");\n\n        try (BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()))) {\n            String line;\n            while ((line = in.readLine()) != null) {\n                System.out.println(line);\n            }\n        }\n    }\n}"}]}}},"components":{"responses":{"error-response":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean","const":true,"description":"Flag indicating that an error has occurred."},"error_message":{"type":"string","description":"Message describing the error."}},"required":["error","error_message"]},"examples":{"Error Message Example":{"summary":"Example Error","description":"Example of a possible error message","value":{"error":true,"error_message":"Message describing the error."}}}}}}},"headers":{"accounting-header":{"schema":{"type":"integer","examples":[0],"minimum":0},"description":"The total number of credits which were accounted from the user of the apikey for the made request."}},"securitySchemes":{"apikey":{"description":"A meteoblue API access key.","type":"apiKey","name":"apikey","in":"query"}}}}