WeatherAPI website screenshot

WeatherAPI

WeatherAPI.com provides real-time, forecast, historical, marine, future, astronomy, air quality, pollen, sports, IP lookup, time zone, and geolocation data via a JSON/XML REST API. Trusted by 850,000+ developers worldwide with an average ~200ms response time.

1 APIs 14 Features
WeatherForecastHistoryMarineAstronomyGeolocationSportsAlertsPublic APIs

APIs

WeatherAPI

Real-time, forecast (up to 14 days, 300-day future tier), historical (since 2010), marine, astronomy, IP lookup, time zone, sports, and weather-alerts API. Single API key auth v...

Collections

WeatherAPI.com

POSTMAN

Arazzo Workflows

WeatherAPI Current and Forecast Air Quality

Resolve a location, then fetch current and forecast weather with air quality and pollen enabled.

ARAZZO

WeatherAPI Bulk Current Weather

Retrieve current weather for many locations in a single bulk request.

ARAZZO

WeatherAPI Forecast with Astronomy

Resolve a location, pull a multi-day forecast, then enrich it with astronomy for the same date.

ARAZZO

WeatherAPI Future Weather

Resolve a location, then fetch the long-range future forecast for a date 14-300 days out.

ARAZZO

WeatherAPI Historical Weather

Resolve a location, then fetch historical weather for a past date.

ARAZZO

WeatherAPI IP Geolocated Weather

Geolocate an IP address, then fetch current weather and a forecast for that point.

ARAZZO

WeatherAPI Marine Forecast

Resolve a coastal location, then fetch its marine and tide forecast.

ARAZZO

WeatherAPI Search to Astronomy

Resolve a location with autocomplete search, then fetch sun and moon data for a date.

ARAZZO

WeatherAPI Search to Current Weather

Resolve a location with autocomplete search, then fetch its current weather.

ARAZZO

WeatherAPI Sports Events with Weather

Resolve a location, list its upcoming sports events, then fetch current weather context.

ARAZZO

WeatherAPI Timezone and Local Conditions

Resolve a location, read its timezone and local time, then fetch current weather.

ARAZZO

WeatherAPI Travel Briefing

Build a full travel briefing for a destination — current, forecast, astronomy, and alerts.

ARAZZO

WeatherAPI Weather Alerts Check

Resolve a location, probe its forecast for alerts, then branch to pull full alert detail.

ARAZZO

Pricing Plans

Weatherapi Plans Pricing

5 plans

PLANS

Rate Limits

Weatherapi Rate Limits

7 limits

RATE LIMITS

FinOps

Features

Real-time Weather

Current conditions refreshed every 10–15 minutes for any global location.

14-Day Forecast

Daily and hourly forecast covering up to 14 days ahead (15-minute interval on Enterprise).

Historical Weather

Past weather data from January 1, 2010 onwards.

Future Weather

Long-range forecasts from 14 to 300 days ahead (Pro+ and above).

Marine Weather

Wave height, swell direction, and tide tables for coastal and ocean locations.

Astronomy

Sunrise, sunset, moonrise, moonset, moon phase, and illumination.

Air Quality and Pollen

US EPA and UK DEFRA indices plus pollen data with current and forecast endpoints.

Weather Alerts

Government-issued warnings worldwide (USA, UK, Europe, and global).

Sports Events

Upcoming football, cricket, and golf events tied to a location.

Geo Services

Location search/autocomplete, IP lookup, and time zone resolution.

Bulk Requests

POST /current.json#bulk accepts up to 50 locations per call (Pro+ and above).

Multilingual Conditions

Condition descriptions in 40+ languages via the `lang` parameter.

JSON and XML Responses

Every endpoint supports `.json` and `.xml` response variants.

Official MCP Server

Drop-in Model Context Protocol server for Claude Desktop, Cursor, and other agents.

Use Cases

Consumer Weather Apps

Power mobile and web weather apps with global coverage and 200ms response times.

Travel & Trip Planning

Show forecast, alerts, marine, and astronomy data for trip destinations.

Logistics & Fleet Routing

Avoid weather disruptions on routes using forecast and alerts endpoints.

Smart Home & IoT

Drive thermostats, sprinklers, and shades from real-time and forecast data.

Agriculture

Use rainfall, evapotranspiration, and forecast data to plan irrigation and harvest.

Energy Forecasting

Solar irradiance, wind, and temperature inputs for renewable-energy generation models.

Insurance & Risk

Historical archives for claims investigation and parametric weather insurance.

Sports & Events

Schedule outdoor events around forecast windows and alerts.

Maritime & Shipping

Wave, swell, and tide data for coastal and ocean operations.

AI Agents

Give Claude and other LLM agents live weather context via the official MCP server.

Integrations

Claude Desktop

Drop-in MCP server (weatherapi-mcp) registered in claude_desktop_config.json.

Cursor

MCP integration via .cursor/mcp.json.

Microcks

OpenAPI spec carries `x-microcks-operation` extensions for one-command mocking.

SwaggerHub

Spec is also published on SwaggerHub under WeatherAPI.com / WeatherAPI.

WeatherAI.io

Sibling product providing AI-summarised weather narrative.

Miing.com

Sibling product for air-quality analytics.

Azuce.com

Sibling product for solar forecasting.

Solutions

Free Tier

100K calls/month, 3-day forecast, 1-day history — for evaluation and hobby use.

Starter ($7/mo)

3M calls/month, 7-day forecast and history — small production workloads.

Pro+ ($25/mo)

5M calls/month, marine weather, bulk requests, 365-day rolling history.

Business ($65/mo)

10M calls/month, 14-day forecast, marine with tides, IP allow/block lists, 99.9% SLA.

Enterprise (custom)

15-minute intervals, full historical archives, 100% uptime SLA with contract.

Semantic Vocabularies

Weatherapi Context

29 classes · 151 properties

JSON-LD

API Governance Rules

WeatherAPI API Rules

37 rules · 11 errors 21 warnings 5 info

SPECTRAL

JSON Structure

Weatherapi Air Quality Structure

8 properties

JSON STRUCTURE

Weatherapi Alert Structure

13 properties

JSON STRUCTURE

Weatherapi Alerts Response Structure

2 properties

JSON STRUCTURE

Weatherapi Astro Element Structure

8 properties

JSON STRUCTURE

Weatherapi Astronomy Response Structure

2 properties

JSON STRUCTURE

Weatherapi Bulk Location Structure

2 properties

JSON STRUCTURE

Weatherapi Bulk Request Structure

1 properties

JSON STRUCTURE

Weatherapi Bulk Response Structure

1 properties

JSON STRUCTURE

Weatherapi Condition Structure

3 properties

JSON STRUCTURE

Weatherapi Current Weather Response Structure

2 properties

JSON STRUCTURE

Weatherapi Current Weather Structure

33 properties

JSON STRUCTURE

Weatherapi Forecast Day Entry Structure

5 properties

JSON STRUCTURE

Weatherapi Forecast Day Structure

21 properties

JSON STRUCTURE

Weatherapi Hour Forecast Structure

39 properties

JSON STRUCTURE

Weatherapi Ip Lookup Response Structure

15 properties

JSON STRUCTURE

Weatherapi Location Structure

8 properties

JSON STRUCTURE

Weatherapi Marine Forecast Day Structure

6 properties

JSON STRUCTURE

Weatherapi Marine Hour Structure

8 properties

JSON STRUCTURE

Weatherapi Marine Weather Response Structure

2 properties

JSON STRUCTURE

Weatherapi Pollen Structure

7 properties

JSON STRUCTURE

Weatherapi Search Location Structure

7 properties

JSON STRUCTURE

Weatherapi Sport Event Structure

6 properties

JSON STRUCTURE

Weatherapi Sports Response Structure

3 properties

JSON STRUCTURE

Weatherapi Tide Structure

3 properties

JSON STRUCTURE

Weatherapi Timezone Response Structure

1 properties

JSON STRUCTURE

Example Payloads

Weatherapi Alert Example

13 fields

EXAMPLE

Weatherapi Condition Example

3 fields

EXAMPLE

Weatherapi Location Example

8 fields

EXAMPLE

Weatherapi Pollen Example

7 fields

EXAMPLE

Weatherapi Tide Example

3 fields

EXAMPLE

Resources

🔗
PostmanWorkspace
PostmanWorkspace
🔗
Arazzo
Arazzo
🔗
Arazzo
Arazzo
🔗
Arazzo
Arazzo
🔗
Arazzo
Arazzo
🔗
Arazzo
Arazzo
🔗
Arazzo
Arazzo
🔗
Arazzo
Arazzo
🔗
Arazzo
Arazzo
🔗
Arazzo
Arazzo
🔗
Arazzo
Arazzo
🔗
Arazzo
Arazzo
🔗
Arazzo
Arazzo
🔗
Arazzo
Arazzo
🔗
Website
Website
🚀
GettingStarted
GettingStarted
🌐
Portal
Portal
📝
Signup
Signup
💰
Pricing
Pricing
📜
TermsOfService
TermsOfService
📜
PrivacyPolicy
PrivacyPolicy
💬
Support
Support
📰
Blog
Blog
👥
GitHubOrganization
GitHubOrganization
🔗
PublicAPIsListing
PublicAPIsListing
🔧
MCP Server (Official)
Tools
🔧
weatherapi-mcp on npm
Tools
🔗
Plans
Plans
🔗
RateLimits
RateLimits
🔗
FinOps
FinOps
🔗
SpectralRules
SpectralRules
🔗
Vocabulary
Vocabulary
🔗
JSONLD
JSONLD

Sources

Raw ↑
info:
  _postman_id: cc651803-70be-41b4-8bcc-4b8bd21912bd
  name: WeatherAPI.com
  description: "WeatherAPI.com provides real-time, forecast, historical, marine, future, astronomy, air quality, pollen, sports,\
    \ IP lookup, timezone, and geolocation data via a JSON/XML REST API. Trusted by 850,000+ developers worldwide. Average\
    \ response time ~200ms.\n\n## Authentication\nAll endpoints require an API key passed as the `key` query parameter.\n\n\
    ## Base URL\n`https://api.weatherapi.com/v1`\n\n## Location Query (`q` parameter)\nAccepts: city name, lat/lon decimal,\
    \ US zip, UK postcode, Canada postal code, METAR code (`metar:EGLL`), IATA airport code (`iata:DXB`), IP lookup (`auto:ip`),\
    \ IPv4/IPv6 address, or location ID (`id:2801268`).\n\n## Plans\n- **Free**: 100K calls/month, 3-day forecast, 1-day history\n\
    - **Starter**: $7/mo — 3M calls, 7-day forecast, 7-day history\n- **Pro+**: $25/mo — 5M calls, 300-day future, 365-day\
    \ history\n- **Business**: $65/mo — 10M calls, evapotranspiration\n- **Enterprise**: Custom — 15-min interval, pollen\
    \ history, wind@100m, SLA\n\nContact Support:\n Name: WeatherAPI.com Support"
  schema: https://schema.getpostman.com/json/collection/v2.1.0/collection.json
  createdAt: '2026-06-05T15:20:24.000Z'
  updatedAt: '2026-06-05T15:20:24.000Z'
  lastUpdatedBy: '35240'
  uid: 35240-cc651803-70be-41b4-8bcc-4b8bd21912bd
item:
- name: current.json
  item:
  - name: WeatherAPI Current / Real-time Weather
    id: 27d41460-df4c-4873-8f2a-604429209f4e
    protocolProfileBehavior:
      disableBodyPruning: true
    request:
      method: GET
      header:
      - key: Accept
        value: application/json
      url:
        raw: '{{baseUrl}}/current.json?key=<string>&q=<string>&aqi=no&pollen=no&lang=<string>&current_fields=<string>'
        host:
        - '{{baseUrl}}'
        path:
        - current.json
        query:
        - description: (Required) Your WeatherAPI.com API key.
          key: key
          value: <string>
        - description: '(Required) Location query. Accepts: city name, lat/lon, US zip, UK postcode, Canada postal code, METAR
            code (metar:EGLL), IATA (iata:DXB), auto:ip, IPv4/IPv6, or location ID (id:2801268).'
          key: q
          value: <string>
        - description: Include Air Quality Index (AQI) data in response.
          key: aqi
          value: 'no'
        - description: Include pollen data. Available on Pro+ and above.
          key: pollen
          value: 'no'
        - description: 'Language code for condition text. E.g.: fr, de, es, zh, ar. See full list in docs.'
          key: lang
          value: <string>
        - description: Comma-separated list of fields to return in the current element, e.g. temp_c,wind_mph.
          key: current_fields
          value: <string>
      description: Returns up-to-date current weather for a given location. Data is refreshed every 10–15 minutes. Optionally
        includes air quality (AQI) and pollen data.
    response:
    - id: 6a860e3f-a85b-4f6e-ba8d-f5e422c4aeb7
      name: Current weather data
      originalRequest:
        method: GET
        header:
        - key: Accept
          value: application/json
        url:
          raw: '{{baseUrl}}/current.json?key=<API Key>&q=<string>&aqi=no&pollen=no&lang=<string>&current_fields=<string>'
          host:
          - '{{baseUrl}}'
          path:
          - current.json
          query:
          - description: (Required) Your WeatherAPI.com API key.
            key: key
            value: <API Key>
          - description: '(Required) Location query. Accepts: city name, lat/lon, US zip, UK postcode, Canada postal code,
              METAR code (metar:EGLL), IATA (iata:DXB), auto:ip, IPv4/IPv6, or location ID (id:2801268).'
            key: q
            value: <string>
          - description: Include Air Quality Index (AQI) data in response.
            key: aqi
            value: 'no'
          - description: Include pollen data. Available on Pro+ and above.
            key: pollen
            value: 'no'
          - description: 'Language code for condition text. E.g.: fr, de, es, zh, ar. See full list in docs.'
            key: lang
            value: <string>
          - description: Comma-separated list of fields to return in the current element, e.g. temp_c,wind_mph.
            key: current_fields
            value: <string>
      status: OK
      code: 200
      _postman_previewlanguage: json
      header:
      - key: Content-Type
        value: application/json
      cookie: []
      responseTime: null
      body: "{\n  \"location\": {\n    \"name\": \"<string>\",\n    \"region\": \"<string>\",\n    \"country\": \"<string>\"\
        ,\n    \"lat\": \"<float>\",\n    \"lon\": \"<float>\",\n    \"tz_id\": \"<string>\",\n    \"localtime_epoch\": \"\
        <integer>\",\n    \"localtime\": \"<string>\"\n  },\n  \"current\": {\n    \"last_updated_epoch\": \"<integer>\",\n\
        \    \"last_updated\": \"<string>\",\n    \"temp_c\": \"<number>\",\n    \"temp_f\": \"<number>\",\n    \"is_day\"\
        : \"<integer>\",\n    \"condition\": {\n      \"text\": \"<string>\",\n      \"icon\": \"<string>\",\n      \"code\"\
        : \"<integer>\"\n    },\n    \"wind_mph\": \"<number>\",\n    \"wind_kph\": \"<number>\",\n    \"wind_degree\": \"\
        <integer>\",\n    \"wind_dir\": \"<string>\",\n    \"pressure_mb\": \"<number>\",\n    \"pressure_in\": \"<number>\"\
        ,\n    \"precip_mm\": \"<number>\",\n    \"precip_in\": \"<number>\",\n    \"humidity\": \"<integer>\",\n    \"cloud\"\
        : \"<integer>\",\n    \"feelslike_c\": \"<number>\",\n    \"feelslike_f\": \"<number>\",\n    \"windchill_c\": \"\
        <number>\",\n    \"windchill_f\": \"<number>\",\n    \"heatindex_c\": \"<number>\",\n    \"heatindex_f\": \"<number>\"\
        ,\n    \"dewpoint_c\": \"<number>\",\n    \"dewpoint_f\": \"<number>\",\n    \"vis_km\": \"<number>\",\n    \"vis_miles\"\
        : \"<number>\",\n    \"uv\": \"<number>\",\n    \"gust_mph\": \"<number>\",\n    \"gust_kph\": \"<number>\",\n   \
        \ \"short_rad\": \"<number>\",\n    \"diff_rad\": \"<number>\",\n    \"air_quality\": {\n      \"co\": \"<number>\"\
        ,\n      \"o3\": \"<number>\",\n      \"no2\": \"<number>\",\n      \"so2\": \"<number>\",\n      \"pm2_5\": \"<number>\"\
        ,\n      \"pm10\": \"<number>\",\n      \"us-epa-index\": \"<integer>\",\n      \"gb-defra-index\": \"<integer>\"\n\
        \    },\n    \"pollen\": {\n      \"Hazel\": \"<number>\",\n      \"Alder\": \"<number>\",\n      \"Birch\": \"<number>\"\
        ,\n      \"Oak\": \"<number>\",\n      \"Grass\": \"<number>\",\n      \"Mugwort\": \"<number>\",\n      \"Ragweed\"\
        : \"<number>\"\n    }\n  }\n}"
      createdAt: '2026-06-05T15:20:24.000Z'
      updatedAt: '2026-06-05T15:20:24.000Z'
      uid: 35240-6a860e3f-a85b-4f6e-ba8d-f5e422c4aeb7
    - id: d6b88571-c014-4b54-9c24-b89a47648184
      name: Bad request — invalid parameter or location not found.
      originalRequest:
        method: GET
        header:
        - key: Accept
          value: application/json
        url:
          raw: '{{baseUrl}}/current.json?key=<API Key>&q=<string>&aqi=no&pollen=no&lang=<string>&current_fields=<string>'
          host:
          - '{{baseUrl}}'
          path:
          - current.json
          query:
          - description: (Required) Your WeatherAPI.com API key.
            key: key
            value: <API Key>
          - description: '(Required) Location query. Accepts: city name, lat/lon, US zip, UK postcode, Canada postal code,
              METAR code (metar:EGLL), IATA (iata:DXB), auto:ip, IPv4/IPv6, or location ID (id:2801268).'
            key: q
            value: <string>
          - description: Include Air Quality Index (AQI) data in response.
            key: aqi
            value: 'no'
          - description: Include pollen data. Available on Pro+ and above.
            key: pollen
            value: 'no'
          - description: 'Language code for condition text. E.g.: fr, de, es, zh, ar. See full list in docs.'
            key: lang
            value: <string>
          - description: Comma-separated list of fields to return in the current element, e.g. temp_c,wind_mph.
            key: current_fields
            value: <string>
      status: Bad Request
      code: 400
      _postman_previewlanguage: json
      header:
      - key: Content-Type
        value: application/json
      cookie: []
      responseTime: null
      body: "{\n  \"error\": {\n    \"code\": \"<integer>\",\n    \"message\": \"<string>\"\n  }\n}"
      createdAt: '2026-06-05T15:20:24.000Z'
      updatedAt: '2026-06-05T15:20:24.000Z'
      uid: 35240-d6b88571-c014-4b54-9c24-b89a47648184
    - id: 5e728b00-c2ad-4792-b71b-171a2e91d23a
      name: Unauthorized — API key missing or invalid.
      originalRequest:
        method: GET
        header:
        - key: Accept
          value: application/json
        url:
          raw: '{{baseUrl}}/current.json?key=<API Key>&q=<string>&aqi=no&pollen=no&lang=<string>&current_fields=<string>'
          host:
          - '{{baseUrl}}'
          path:
          - current.json
          query:
          - description: (Required) Your WeatherAPI.com API key.
            key: key
            value: <API Key>
          - description: '(Required) Location query. Accepts: city name, lat/lon, US zip, UK postcode, Canada postal code,
              METAR code (metar:EGLL), IATA (iata:DXB), auto:ip, IPv4/IPv6, or location ID (id:2801268).'
            key: q
            value: <string>
          - description: Include Air Quality Index (AQI) data in response.
            key: aqi
            value: 'no'
          - description: Include pollen data. Available on Pro+ and above.
            key: pollen
            value: 'no'
          - description: 'Language code for condition text. E.g.: fr, de, es, zh, ar. See full list in docs.'
            key: lang
            value: <string>
          - description: Comma-separated list of fields to return in the current element, e.g. temp_c,wind_mph.
            key: current_fields
            value: <string>
      status: Unauthorized
      code: 401
      _postman_previewlanguage: json
      header:
      - key: Content-Type
        value: application/json
      cookie: []
      responseTime: null
      body: "{\n  \"error\": {\n    \"code\": \"<integer>\",\n    \"message\": \"<string>\"\n  }\n}"
      createdAt: '2026-06-05T15:20:24.000Z'
      updatedAt: '2026-06-05T15:20:24.000Z'
      uid: 35240-5e728b00-c2ad-4792-b71b-171a2e91d23a
    - id: 3d26a35b-0054-4eee-9de0-a84483f27ea2
      name: Forbidden — API key quota exceeded, disabled, or plan does not include this resource.
      originalRequest:
        method: GET
        header:
        - key: Accept
          value: application/json
        url:
          raw: '{{baseUrl}}/current.json?key=<API Key>&q=<string>&aqi=no&pollen=no&lang=<string>&current_fields=<string>'
          host:
          - '{{baseUrl}}'
          path:
          - current.json
          query:
          - description: (Required) Your WeatherAPI.com API key.
            key: key
            value: <API Key>
          - description: '(Required) Location query. Accepts: city name, lat/lon, US zip, UK postcode, Canada postal code,
              METAR code (metar:EGLL), IATA (iata:DXB), auto:ip, IPv4/IPv6, or location ID (id:2801268).'
            key: q
            value: <string>
          - description: Include Air Quality Index (AQI) data in response.
            key: aqi
            value: 'no'
          - description: Include pollen data. Available on Pro+ and above.
            key: pollen
            value: 'no'
          - description: 'Language code for condition text. E.g.: fr, de, es, zh, ar. See full list in docs.'
            key: lang
            value: <string>
          - description: Comma-separated list of fields to return in the current element, e.g. temp_c,wind_mph.
            key: current_fields
            value: <string>
      status: Forbidden
      code: 403
      _postman_previewlanguage: json
      header:
      - key: Content-Type
        value: application/json
      cookie: []
      responseTime: null
      body: "{\n  \"error\": {\n    \"code\": \"<integer>\",\n    \"message\": \"<string>\"\n  }\n}"
      createdAt: '2026-06-05T15:20:24.000Z'
      updatedAt: '2026-06-05T15:20:24.000Z'
      uid: 35240-3d26a35b-0054-4eee-9de0-a84483f27ea2
    createdAt: '2026-06-05T15:20:24.000Z'
    updatedAt: '2026-06-05T15:20:24.000Z'
    uid: 35240-27d41460-df4c-4873-8f2a-604429209f4e
  id: 92a9889a-a7af-47b4-8e4c-b6259eeef546
  createdAt: '2026-06-05T15:20:24.000Z'
  updatedAt: '2026-06-05T15:20:24.000Z'
  uid: 35240-92a9889a-a7af-47b4-8e4c-b6259eeef546
- name: forecast.json
  item:
  - name: WeatherAPI Forecast Weather
    id: e7a007d3-dd1d-4e7e-8994-caf8f44b2e4f
    protocolProfileBehavior:
      disableBodyPruning: true
    request:
      method: GET
      header:
      - key: Accept
        value: application/json
      url:
        raw: '{{baseUrl}}/forecast.json?key=<string>&q=<string>&days=<integer>&dt=<date>&unixdt=<integer>&hour=<integer>&alerts=no&aqi=no&pollen=no&tp=15&lang=<string>&day_fields=<string>&hour_fields=<string>&et0=no'
        host:
        - '{{baseUrl}}'
        path:
        - forecast.json
        query:
        - description: (Required) Your WeatherAPI.com API key.
          key: key
          value: <string>
        - description: '(Required) Location query. Accepts: city name, lat/lon, US zip, UK postcode, Canada postal code, METAR
            code (metar:EGLL), IATA (iata:DXB), auto:ip, IPv4/IPv6, or location ID (id:2801268).'
          key: q
          value: <string>
        - description: (Required) Number of forecast days (1–14).
          key: days
          value: <integer>
        - description: Restrict date output in yyyy-MM-dd format.
          key: dt
          value: <date>
        - description: Unix timestamp equivalent of `dt`. Do not pass both.
          key: unixdt
          value: <integer>
        - description: Restrict output to a specific hour (0–23) in 24-hour format.
          key: hour
          value: <integer>
        - description: Include weather alerts in Forecast API response.
          key: alerts
          value: 'no'
        - description: Include Air Quality Index (AQI) data in response.
          key: aqi
          value: 'no'
        - description: Include pollen data. Available on Pro+ and above.
          key: pollen
          value: 'no'
        - description: Interval for data. Use tp=15 for 15-minute intervals (Enterprise only).
          key: tp
          value: '15'
        - description: 'Language code for condition text. E.g.: fr, de, es, zh, ar. See full list in docs.'
          key: lang
          value: <string>
        - description: Comma-separated fields to return in forecast/history day element.
          key: day_fields
          value: <string>
        - description: Comma-separated fields to return in forecast/history hour element.
          key: hour_fields
          value: <string>
        - description: Include evapotranspiration data. Business and Enterprise only.
          key: et0
          value: 'no'
      description: Returns weather forecast for up to 14 days (plan dependent). Includes hourly intervals, astronomy, air
        quality, pollen, and weather alerts.
    response:
    - id: dc26ca4a-4782-45ba-8aee-92f4d42992e8
      name: Forecast weather data
      originalRequest:
        method: GET
        header:
        - key: Accept
          value: application/json
        url:
          raw: '{{baseUrl}}/forecast.json?key=<API Key>&q=<string>&days=<integer>&dt=<date>&unixdt=<integer>&hour=<integer>&alerts=no&aqi=no&pollen=no&tp=15&lang=<string>&day_fields=<string>&hour_fields=<string>&et0=no'
          host:
          - '{{baseUrl}}'
          path:
          - forecast.json
          query:
          - description: (Required) Your WeatherAPI.com API key.
            key: key
            value: <API Key>
          - description: '(Required) Location query. Accepts: city name, lat/lon, US zip, UK postcode, Canada postal code,
              METAR code (metar:EGLL), IATA (iata:DXB), auto:ip, IPv4/IPv6, or location ID (id:2801268).'
            key: q
            value: <string>
          - description: (Required) Number of forecast days (1–14).
            key: days
            value: <integer>
          - description: Restrict date output in yyyy-MM-dd format.
            key: dt
            value: <date>
          - description: Unix timestamp equivalent of `dt`. Do not pass both.
            key: unixdt
            value: <integer>
          - description: Restrict output to a specific hour (0–23) in 24-hour format.
            key: hour
            value: <integer>
          - description: Include weather alerts in Forecast API response.
            key: alerts
            value: 'no'
          - description: Include Air Quality Index (AQI) data in response.
            key: aqi
            value: 'no'
          - description: Include pollen data. Available on Pro+ and above.
            key: pollen
            value: 'no'
          - description: Interval for data. Use tp=15 for 15-minute intervals (Enterprise only).
            key: tp
            value: '15'
          - description: 'Language code for condition text. E.g.: fr, de, es, zh, ar. See full list in docs.'
            key: lang
            value: <string>
          - description: Comma-separated fields to return in forecast/history day element.
            key: day_fields
            value: <string>
          - description: Comma-separated fields to return in forecast/history hour element.
            key: hour_fields
            value: <string>
          - description: Include evapotranspiration data. Business and Enterprise only.
            key: et0
            value: 'no'
      status: OK
      code: 200
      _postman_previewlanguage: json
      header:
      - key: Content-Type
        value: application/json
      cookie: []
      responseTime: null
      body: "{\n  \"location\": {\n    \"name\": \"<string>\",\n    \"region\": \"<string>\",\n    \"country\": \"<string>\"\
        ,\n    \"lat\": \"<float>\",\n    \"lon\": \"<float>\",\n    \"tz_id\": \"<string>\",\n    \"localtime_epoch\": \"\
        <integer>\",\n    \"localtime\": \"<string>\"\n  },\n  \"current\": {\n    \"last_updated_epoch\": \"<integer>\",\n\
        \    \"last_updated\": \"<string>\",\n    \"temp_c\": \"<number>\",\n    \"temp_f\": \"<number>\",\n    \"is_day\"\
        : \"<integer>\",\n    \"condition\": {\n      \"text\": \"<string>\",\n      \"icon\": \"<string>\",\n      \"code\"\
        : \"<integer>\"\n    },\n    \"wind_mph\": \"<number>\",\n    \"wind_kph\": \"<number>\",\n    \"wind_degree\": \"\
        <integer>\",\n    \"wind_dir\": \"<string>\",\n    \"pressure_mb\": \"<number>\",\n    \"pressure_in\": \"<number>\"\
        ,\n    \"precip_mm\": \"<number>\",\n    \"precip_in\": \"<number>\",\n    \"humidity\": \"<integer>\",\n    \"cloud\"\
        : \"<integer>\",\n    \"feelslike_c\": \"<number>\",\n    \"feelslike_f\": \"<number>\",\n    \"windchill_c\": \"\
        <number>\",\n    \"windchill_f\": \"<number>\",\n    \"heatindex_c\": \"<number>\",\n    \"heatindex_f\": \"<number>\"\
        ,\n    \"dewpoint_c\": \"<number>\",\n    \"dewpoint_f\": \"<number>\",\n    \"vis_km\": \"<number>\",\n    \"vis_miles\"\
        : \"<number>\",\n    \"uv\": \"<number>\",\n    \"gust_mph\": \"<number>\",\n    \"gust_kph\": \"<number>\",\n   \
        \ \"short_rad\": \"<number>\",\n    \"diff_rad\": \"<number>\",\n    \"air_quality\": {\n      \"co\": \"<number>\"\
        ,\n      \"o3\": \"<number>\",\n      \"no2\": \"<number>\",\n      \"so2\": \"<number>\",\n      \"pm2_5\": \"<number>\"\
        ,\n      \"pm10\": \"<number>\",\n      \"us-epa-index\": \"<integer>\",\n      \"gb-defra-index\": \"<integer>\"\n\
        \    },\n    \"pollen\": {\n      \"Hazel\": \"<number>\",\n      \"Alder\": \"<number>\",\n      \"Birch\": \"<number>\"\
        ,\n      \"Oak\": \"<number>\",\n      \"Grass\": \"<number>\",\n      \"Mugwort\": \"<number>\",\n      \"Ragweed\"\
        : \"<number>\"\n    }\n  },\n  \"forecast\": {\n    \"forecastday\": [\n      {\n        \"date\": \"<date>\",\n \
        \       \"date_epoch\": \"<integer>\",\n        \"day\": {\n          \"maxtemp_c\": \"<number>\",\n          \"maxtemp_f\"\
        : \"<number>\",\n          \"mintemp_c\": \"<number>\",\n          \"mintemp_f\": \"<number>\",\n          \"avgtemp_c\"\
        : \"<number>\",\n          \"avgtemp_f\": \"<number>\",\n          \"maxwind_mph\": \"<number>\",\n          \"maxwind_kph\"\
        : \"<number>\",\n          \"totalprecip_mm\": \"<number>\",\n          \"totalprecip_in\": \"<number>\",\n      \
        \    \"totalsnow_cm\": \"<number>\",\n          \"avgvis_km\": \"<number>\",\n          \"avgvis_miles\": \"<number>\"\
        ,\n          \"avghumidity\": \"<integer>\",\n          \"daily_will_it_rain\": \"<integer>\",\n          \"daily_chance_of_rain\"\
        : \"<integer>\",\n          \"daily_will_it_snow\": \"<integer>\",\n          \"daily_chance_of_snow\": \"<integer>\"\
        ,\n          \"condition\": {\n            \"text\": \"<string>\",\n            \"icon\": \"<string>\",\n        \
        \    \"code\": \"<integer>\"\n          },\n          \"uv\": \"<number>\",\n          \"air_quality\": {\n      \
        \      \"co\": \"<number>\",\n            \"o3\": \"<number>\",\n            \"no2\": \"<number>\",\n            \"\
        so2\": \"<number>\",\n            \"pm2_5\": \"<number>\",\n            \"pm10\": \"<number>\",\n            \"us-epa-index\"\
        : \"<integer>\",\n            \"gb-defra-index\": \"<integer>\"\n          }\n        },\n        \"astro\": {\n \
        \         \"sunrise\": \"<string>\",\n          \"sunset\": \"<string>\",\n          \"moonrise\": \"<string>\",\n\
        \          \"moonset\": \"<string>\",\n          \"moon_phase\": \"<string>\",\n          \"moon_illumination\": \"\
        <number>\",\n          \"is_moon_up\": \"<integer>\",\n          \"is_sun_up\": \"<integer>\"\n        },\n      \
        \  \"hour\": [\n          {\n            \"time_epoch\": \"<integer>\",\n            \"time\": \"<string>\",\n   \
        \         \"temp_c\": \"<number>\",\n            \"temp_f\": \"<number>\",\n            \"is_day\": \"<integer>\"\
        ,\n            \"condition\": {\n              \"text\": \"<string>\",\n              \"icon\": \"<string>\",\n  \
        \            \"code\": \"<integer>\"\n            },\n            \"wind_mph\": \"<number>\",\n            \"wind_kph\"\
        : \"<number>\",\n            \"wind_degree\": \"<integer>\",\n            \"wind_dir\": \"<string>\",\n          \
        \  \"pressure_mb\": \"<number>\",\n            \"pressure_in\": \"<number>\",\n            \"precip_mm\": \"<number>\"\
        ,\n            \"precip_in\": \"<number>\",\n            \"snow_cm\": \"<number>\",\n            \"humidity\": \"\
        <integer>\",\n            \"cloud\": \"<integer>\",\n            \"feelslike_c\": \"<number>\",\n            \"feelslike_f\"\
        : \"<number>\",\n            \"windchill_c\": \"<number>\",\n            \"windchill_f\": \"<number>\",\n        \
        \    \"heatindex_c\": \"<number>\",\n            \"heatindex_f\": \"<number>\",\n            \"dewpoint_c\": \"<number>\"\
        ,\n            \"dewpoint_f\": \"<number>\",\n            \"will_it_rain\": \"<integer>\",\n            \"chance_of_rain\"\
        : \"<integer>\",\n            \"will_it_snow\": \"<integer>\",\n            \"chance_of_snow\": \"<integer>\",\n \
        \           \"vis_km\": \"<number>\",\n            \"vis_miles\": \"<number>\",\n            \"gust_mph\": \"<number>\"\
        ,\n            \"gust_kph\": \"<number>\",\n            \"uv\": \"<number>\",\n            \"short_rad\": \"<number>\"\
        ,\n            \"diff_rad\": \"<number>\",\n            \"et0\": \"<number>\",\n            \"air_quality\": {\n \
        \             \"co\": \"<number>\",\n              \"o3\": \"<number>\",\n              \"no2\": \"<number>\",\n \
        \             \"so2\": \"<number>\",\n              \"pm2_5\": \"<number>\",\n              \"pm10\": \"<number>\"\
        ,\n              \"us-epa-index\": \"<integer>\",\n              \"gb-defra-index\": \"<integer>\"\n            },\n\
        \            \"pollen\": {\n              \"Hazel\": \"<number>\",\n              \"Alder\": \"<number>\",\n     \
        \         \"Birch\": \"<number>\",\n              \"Oak\": \"<number>\",\n              \"Grass\": \"<number>\",\n\
        \              \"Mugwort\": \"<number>\",\n              \"Ragweed\": \"<number>\"\n            }\n          },\n\
        \          {\n            \"time_epoch\": \"<integer>\",\n            \"time\": \"<string>\",\n            \"temp_c\"\
        : \"<number>\",\n            \"temp_f\": \"<number>\",\n            \"is_day\": \"<integer>\",\n            \"condition\"\
        : {\n              \"text\": \"<string>\",\n              \"icon\": \"<string>\",\n              \"code\": \"<integer>\"\
        \n            },\n            \"wind_mph\": \"<number>\",\n            \"wind_kph\": \"<number>\",\n            \"\
        wind_degree\": \"<integer>\",\n            \"wind_dir\": \"<string>\",\n            \"pressure_mb\": \"<number>\"\
        ,\n            \"pressure_in\": \"<number>\",\n            \"precip_mm\": \"<number>\",\n            \"precip_in\"\
        : \"<number>\",\n            \"snow_cm\": \"<number>\",\n            \"humidity\": \"<integer>\",\n            \"\
        cloud\": \"<integer>\",\n            \"feelslike_c\": \"<number>\",\n            \"feelslike_f\": \"<number>\",\n\
        \            \"windchill_c\": \"<number>\",\n            \"windchill_f\": \"<number>\",\n            \"heatindex_c\"\
        : \"<number>\",\n            \"heatindex_f\": \"<number>\",\n            \"dewpoint_c\": \"<number>\",\n         \
        \   \"dewpoint_f\": \"<number>\",\n            \"will_it_rain\": \"<integer>\",\n            \"chance_of_rain\": \"\
        <integer>\",\n            \"will_it_snow\": \"<integer>\",\n            \"chance_of_snow\": \"<integer>\",\n     \
        \       \"vis_km\": \"<number>\",\n            \"vis_miles\": \"<number>\",\n            \"gust_mph\": \"<number>\"\
        ,\n            \"gust_kph\": \"<number>\",\n            \"uv\": \"<number>\",\n            \"short_rad\": \"<number>\"\
        ,\n            \"diff_rad\": \"<number>\",\n            \"et0\": \"<number>\",\n            \"air_quality\": {\n \
        \             \"co\": \"<number>\",\n              \"o3\": \"<number>\",\n              \"no2\": \"<number>\",\n \
        \             \"so2\": \"<number>\",\n              \"pm2_5\": \"<number>\",\n              \"pm10\": \"<number>\"\
        ,\n              \"us-epa-index\": \"<integer>\",\n              \"gb-defra-index\": \"<integer>\"\n            },\n\
        \            \"pollen\": {\n              \"Hazel\": \"<number>\",\n              \"Alder\": \"<number>\",\n     \
        \         \"Birch\": \"<number>\",\n              \"Oak\": \"<number>\",\n              \"Grass\": \"<number>\",\n\
        \              \"Mugwort\": \"<number>\",\n              \"Ragweed\": \"<number>\"\n            }\n          }\n \
        \       ]\n      },\n      {\n        \"date\": \"<date>\",\n        \"date_epoch\": \"<integer>\",\n        \"day\"\
        : {\n          \"maxtemp_c\": \"<number>\",\n          \"maxtemp_f\": \"<number>\",\n          \"mintemp_c\": \"<number>\"\
        ,\n          \"mintemp_f\": \"<number>\",\n          \"avgtemp_c\": \"<number>\",\n          \"avgtemp_f\": \"<number>\"\
        ,\n          \"maxwind_mph\": \"<number>\",\n          \"maxwind_kph\": \"<number>\",\n          \"totalprecip_mm\"\
        : \"<number>\",\n          \"totalprecip_in\": \"<number>\",\n          \"totalsnow_cm\": \"<number>\",\n        \
        \  \"avgvis_km\": \"<number>\",\n          \"avgvis_miles\": \"<number>\",\n          \"avghumidity\": \"<integer>\"\
        ,\n          \"daily_will_it_rain\": \"<integer>\",\n          \"daily_chance_of_rain\": \"<integer>\",\n        \
        \  \"daily_will_it_snow\": \"<integer>\",\n          \"daily_chance_of_snow\": \"<integer>\",\n          \"condition\"\
        : {\n            \"text\": \"<string>\",\n            \"icon\": \"<string>\",\n            \"code\": \"<integer>\"\
        \n          },\n          \"uv\": \"<number>\",\n          \"air_quality\": {\n            \"co\": \"<number>\",\n\
        \            \"o3\": \"<number>\",\n            \"no2\": \"<number>\",\n            \"so2\": \"<number>\",\n     \
        \       \"pm2_5\": \"<number>\",\n            \"pm10\": \"<number>\",\n            \"us-epa-index\": \"<integer>\"\
        ,\n            \"gb-defra-index\": \"<integer>\"\n          }\n        },\n        \"astro\": {\n          \"sunrise\"\
        : \"<string>\",\n          \"sunset\": \"<string>\",\n          \"moonrise\": \"<string>\",\n          \"moonset\"\
        : \"<string>\",\n          \"moon_phase\": \"<string>\",\n          \"moon_illumination\": \"<number>\",\n       \
        \   \"is_moon_up\": \"<integer>\",\n          \"is_sun_up\": \"<integer>\"\n        },\n        \"hour\": [\n    \
        \      {\n            \"time_epoch\": \"<integer>\",\n            \"time\": \"<string>\",\n            \"temp_c\"\
        : \"<number>\",\n            \"temp_f\": \"<number>\",\n            \"is_day\": \"<integer>\",\n            \"condition\"\
        : {\n              \"text\": \"<string>\",\n              \"icon\": \"<string>\",\n              \"code\": \"<integer>\"\
        \n            },\n            \"wind_mph\": \"<number>\",\n            \"wind_kph\": \"<number>\",\n            \"\
        wind_degree\": \"<integer>\",\n            \"wind_dir\": \"<string>\",\n            \"pressure_mb\": \"<number>\"\
        ,\n            \"pressure_in\": \"<number>\",\n            \"precip_mm\": \"<number>\",\n            \"precip_in\"\
        : \"<number>\",\n            \"snow_cm\": \"<number>\",\n            \"humidity\": \"<integer>\",\n            \"\
        cloud\": \"<integer>\",\n            \"feelslike_c\": \"<number>\",\n            \"feelslike_f\": \"<number>\",\n\
        \            \"windchill_c\": \"<number>\",\n            \"windchill_f\": \"<number>\",\n            \"heatindex_c\"\
        : \"<number>\",\n            \"heatindex_f\": \"<number>\",\n            \"dewpoint_c\": \"<number>\",\n         \
        \   \"dewpoint_f\": \"<number>\",\n            \"will_it_rain\": \"<integer>\",\n            \"chance_of_rain\": \"\
        <integer>\",\n            \"will_it_snow\": \"<integer>\",\n            \"chance_of_snow\": \"<integer>\",\n     \
        \       \"vis_km\": \"<number>\",\n            \"vis_miles\": \"<number>\",\n            \"gust_mph\": \"<number>\"\
        ,\n            \"gust_kph\": \"<number>\",\n            \"uv\": \"<number>\",\n            \"short_rad\": \"<number>\"\
        ,\n            \"diff_rad\": \"<number>\",\n            \"et0\": \"<number>\",\n            \"air_quality\": {\n \
        \             \"co\": \"<number>\",\n              \"o3\": \"<number>\",\n              \"no2\": \"<number>\",\n \
        \             \"so2\": \"<number>\",\n              \"pm2_5\": \"<number>\",\n              \"pm10\": \"<number>\"\
        ,\n              \"us-epa-index\": \"<integer>\",\n              \"gb-defra-index\": \"<integer>\"\n            },\n\
        \            \"pollen\": {\n              \"Hazel\": \"<number>\",\n              \"Alder\": \"<number>\",\n     \
        \         \"Birch\": \"<number>\",\n              \"Oak\": \"<number>\",\n              \"Grass\": \"<number>\",\n\
        \              \"Mugwort\": \"<number>\",\n              \"Ragweed\": \"<number>\"\n            }\n          },\n\
        \          {\n            \"time_epoch\": \"<integer>\",\n            \"time\": \"<string>\",\n            \"temp_c\"\
        : \"<number>\",\n            \"temp_f\": \"<number>\",\n            \"is_day\": \"<integer>\",\n            \"condition\"\
        : {\n              \"text\": \"<string>\",\n              \"icon\": \"<string>\",\n              \"code\": \"<integer>\"\
        \n            },\n            \"wind_mph\":

# --- truncated at 32 KB (177 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/weatherapi/refs/heads/main/apis.yml