This documentation serves as a structured reference for Large Language Models (LLMs) to understand and generate accurate code for the Tomorrow.io Weather API. Each endpoint is documented on its own page with comprehensive information about API structure, parameters, and response formats.

API Reference Overview

Tomorrow.io's Weather API provides developers with access to comprehensive weather data including forecasts, real-time conditions, historical data, and customized timelines. The API is available through several specialized endpoints, each designed for specific weather data needs.

Available Weather APIs

Tomorrow.io provides specialized weather APIs organized by use case and data type. Each endpoint is optimized for specific weather data needs.

Real-Time Weather

Get current weather conditions and immediate forecasts

Weather Forecasting

Access detailed weather predictions and forecast data

Historical Weather

Access past weather data for analysis and research

Data Layers & References

Comprehensive references for weather data fields and codes

Comprehensive overview of 80+ weather data fields including weather, air quality, pollen, and fire index with timestep availability and field descriptors

API field referenceData layer selectionUnit conversion mapping

Specialized Services

Advanced weather services for specific use cases

Authentication

All API requests require authentication using an API key. You can obtain an API key by signing up at Tomorrow.io.

API keys should be included as the apikey parameter in all requests:

https://api.tomorrow.io/v4/weather/forecast?location=london&apikey=[YOUR_API_KEY]

Common Parameters

The following parameters are common across multiple API endpoints:

ParameterTypeRequiredDescriptionExample
locationString | [Number, Number]RequiredAddress, city name, ZIP code, or lat,lon coordinateslondon or 40.7128,74.0060
unitsStringOptionalUnits for the response data (imperial or metric)imperial
apikeyStringRequiredYour Tomorrow.io API keyYOUR_API_KEY

Reference Documentation