Tomorrow.io Maps API

Web Mercator tile service for weather layers.

OpenAPI Specification

tomorrow-io-maps-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Tomorrow.io Alerts Maps API
  version: '4.0'
  description: 'Create, manage, and trigger weather-based alerts. Alerts evaluate Tomorrow.io

    weather data layers against custom thresholds for one or more linked locations

    and deliver notifications via webhook, email, and the Tomorrow.io app.

    '
  contact:
    name: Tomorrow.io Support
    url: https://support.tomorrow.io
servers:
- url: https://api.tomorrow.io/v4
  description: Tomorrow.io Production
security:
- apikeyAuth: []
tags:
- name: Maps
  description: Web Mercator tile service for weather layers.
paths:
  /map/tile/{zoom}/{x}/{y}/{field}/{timeFormat}:
    get:
      tags:
      - Maps
      summary: Retrieve a Weather Map Tile
      operationId: getMapTile
      description: 'Retrieve a 256x256 PNG tile rendering the requested data layer at the given

        XYZ Web Mercator address and time. Supports past, current, and forecast

        time references via the ``timeFormat`` path parameter.

        '
      parameters:
      - name: zoom
        in: path
        required: true
        schema:
          type: integer
          minimum: 0
          maximum: 12
      - name: x
        in: path
        required: true
        schema:
          type: integer
      - name: y
        in: path
        required: true
        schema:
          type: integer
      - name: field
        in: path
        required: true
        description: Data layer field (e.g. precipitationIntensity, temperature, windSpeed, cloudCover).
        schema:
          type: string
      - name: timeFormat
        in: path
        required: true
        description: ISO-8601 timestamp or 'now'.
        schema:
          type: string
      - name: apikey
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: PNG tile.
          content:
            image/png:
              schema:
                type: string
                format: binary
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: Rate limit exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
        type:
          type: string
        message:
          type: string
  securitySchemes:
    apikeyAuth:
      type: apiKey
      in: query
      name: apikey