OpenWeatherMap One Call API

Unified timeline API with current, forecast, and historical weather plus alerts.

GitHub OpenAPI
Business capability
Weather & Environment AE-230.10

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /current Get current weather for a location · Current Weather From One Call #
Ask an LLM
“What is the current temperature and wind at a given latitude and longitude?”
“Can I get the UV index and sunrise/sunset times for a place right now?”
Tell an agent
Get the current weather at {lat}, {lon}.
Show current conditions for {lat}, {lon} in {units}.
GET /timeline/1min Get minute-by-minute precipitation forecast · One Minute Timeline #
Ask an LLM
“Can I get a minute-by-minute precipitation forecast for the next hour?”
“What does the one-minute weather timeline return for a location?”
Tell an agent
Get the one-minute weather timeline for {lat}, {lon}.
Show minute-by-minute precipitation forecasts for {lat}, {lon} in {units}.
GET /timeline/15min Get 15-minute weather timeline · Fifteen Minute Timeline #
Ask an LLM
“Can I get weather forecasts every 15 minutes for the next 20 hours?”
“What does the 15-minute weather timeline include?”
Tell an agent
Get the 15-minute weather timeline for {lat}, {lon}.
Show 15-minute forecasts for {lat}, {lon} in {units}.
GET /timeline/1h Get hourly weather history and forecast · Hourly Timeline With History #
Ask an LLM
“Can I get hourly weather data going back 47 years and forecasting the next 48 hours?”
“What historical and forecast hourly weather does the hour timeline return?”
Tell an agent
Get the hourly weather timeline for {lat}, {lon}.
Show 47 years of hourly history and 48-hour forecast for {lat}, {lon} in {units}.
GET /timeline/1day Get daily weather aggregates · Daily Timeline With Aggregates #
Ask an LLM
“Can I get daily weather summaries with moon phase and sunrise/sunset?”
“What daily aggregates does the day timeline return?”
Tell an agent
Get the daily weather timeline for {lat}, {lon}.
Show daily weather aggregates for {lat}, {lon} in {units}.
GET /alert/{alert_id} Get a weather alert · Weather Alert Detail #
Ask an LLM
“Can I look up the details of one weather alert by its ID?”
“What event name, timing and description does a weather alert have?”
Tell an agent
Get weather alert {alert_id}.
Show the details of alert {alert_id}.
GET /onecall Get current and forecast weather for a location · Current and forecast weather data for a coordinate #
Ask an LLM
“Can I get current weather, hourly forecast and daily forecast for a place in one call?”
“Is it possible to exclude the alerts block from a full one-call response?”
Tell an agent
Get current and forecast weather for {lat}, {lon}.
Get one-call weather for {lat}, {lon} excluding {exclude}.
GET /onecall/timemachine Get historical weather for a timestamp · Historical weather data for a coordinate and timestamp #
Ask an LLM
“Can I pull historical weather for a location at a specific past time?”
“How far back does the weather time machine go?”
Tell an agent
Get historical weather at {lat}, {lon} for {dt}.
Pull the weather at {lat}, {lon} on {dt} in {units}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/openweathermap:openweathermap-one-call-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

openweathermap-one-call-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Openweathermap One Call API
  license:
    name: Creative Commons Attribution-ShareAlike 4.0 International
    url: https://creativecommons.org/licenses/by-sa/4.0/
  version: '1.0'
  description: 'Operations tagged One Call across 2 of this provider''s published API definitions: openweathermap-one-call-openapi.yml, openweathermap-one-call-3-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.openweathermap.org/data/4.0/onecall
  description: One Call API 4.0 base URL
- url: https://api.openweathermap.org/data/3.0
  description: One Call API base URL
security:
- appid: []
tags:
- name: One Call
  description: Unified timeline API with current, forecast, and historical weather plus alerts.
paths:
  /current:
    get:
      operationId: getOneCallCurrent
      summary: Current Weather From One Call
      description: Returns a single record with current conditions including temperature, humidity, pressure, wind, UV index, sunrise and sunset times, and weather descriptions for the supplied coordinates.
      tags:
      - One Call
      parameters:
      - $ref: '#/components/parameters/Lat'
      - $ref: '#/components/parameters/Lon'
      - $ref: '#/components/parameters/Units'
      - $ref: '#/components/parameters/Lang'
      - $ref: '#/components/parameters/Appid'
      responses:
        '200':
          description: One Call current weather response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OneCallCurrentResponse'
        '400':
          description: Invalid request parameters.
        '401':
          description: Unauthorized.
        '429':
          description: Too many requests.
    servers:
    - url: https://api.openweathermap.org/data/4.0/onecall
      description: One Call API 4.0 base URL
  /timeline/1min:
    get:
      operationId: getOneCallTimelineOneMinute
      summary: One Minute Timeline
      description: Returns up to 60 records covering precipitation forecasts and government weather alerts at one-minute granularity.
      tags:
      - One Call
      parameters:
      - $ref: '#/components/parameters/Lat'
      - $ref: '#/components/parameters/Lon'
      - $ref: '#/components/parameters/Units'
      - $ref: '#/components/parameters/Lang'
      - $ref: '#/components/parameters/Appid'
      responses:
        '200':
          description: One Call one-minute timeline response.
        '400':
          description: Invalid request parameters.
        '401':
          description: Unauthorized.
        '429':
          description: Too many requests.
    servers:
    - url: https://api.openweathermap.org/data/4.0/onecall
      description: One Call API 4.0 base URL
  /timeline/15min:
    get:
      operationId: getOneCallTimelineFifteenMinute
      summary: Fifteen Minute Timeline
      description: Returns up to 50 records at 15-minute intervals including temperature, precipitation probability, and weather details.
      tags:
      - One Call
      parameters:
      - $ref: '#/components/parameters/Lat'
      - $ref: '#/components/parameters/Lon'
      - $ref: '#/components/parameters/Units'
      - $ref: '#/components/parameters/Lang'
      - $ref: '#/components/parameters/Appid'
      responses:
        '200':
          description: One Call 15-minute timeline response.
        '400':
          description: Invalid request parameters.
        '401':
          description: Unauthorized.
        '429':
          description: Too many requests.
    servers:
    - url: https://api.openweathermap.org/data/4.0/onecall
      description: One Call API 4.0 base URL
  /timeline/1h:
    get:
      operationId: getOneCallTimelineHour
      summary: Hourly Timeline With History
      description: Returns up to 20 records spanning 47 years of historical data and the next 48 hours of forecast at hourly granularity.
      tags:
      - One Call
      parameters:
      - $ref: '#/components/parameters/Lat'
      - $ref: '#/components/parameters/Lon'
      - $ref: '#/components/parameters/Units'
      - $ref: '#/components/parameters/Lang'
      - $ref: '#/components/parameters/Appid'
      responses:
        '200':
          description: One Call hourly timeline response.
        '400':
          description: Invalid request parameters.
        '401':
          description: Unauthorized.
        '429':
          description: Too many requests.
    servers:
    - url: https://api.openweathermap.org/data/4.0/onecall
      description: One Call API 4.0 base URL
  /timeline/1day:
    get:
      operationId: getOneCallTimelineDay
      summary: Daily Timeline With Aggregates
      description: Returns up to 10 records of daily aggregated weather data including moon phase, sunrise, sunset, and per-day summaries.
      tags:
      - One Call
      parameters:
      - $ref: '#/components/parameters/Lat'
      - $ref: '#/components/parameters/Lon'
      - $ref: '#/components/parameters/Units'
      - $ref: '#/components/parameters/Lang'
      - $ref: '#/components/parameters/Appid'
      responses:
        '200':
          description: One Call daily timeline response.
        '400':
          description: Invalid request parameters.
        '401':
          description: Unauthorized.
        '429':
          description: Too many requests.
    servers:
    - url: https://api.openweathermap.org/data/4.0/onecall
      description: One Call API 4.0 base URL
  /alert/{alert_id}:
    get:
      operationId: getOneCallAlert
      summary: Weather Alert Detail
      description: Returns a single weather alert record with event name, timing, description, and originating agency.
      tags:
      - One Call
      parameters:
      - name: alert_id
        in: path
        required: true
        description: Alert identifier returned by other One Call endpoints.
        schema:
          type: string
      - $ref: '#/components/parameters/Appid'
      responses:
        '200':
          description: Alert detail response.
        '400':
          description: Invalid request parameters.
        '401':
          description: Unauthorized.
        '404':
          description: Alert not found.
        '429':
          description: Too many requests.
    servers:
    - url: https://api.openweathermap.org/data/4.0/onecall
      description: One Call API 4.0 base URL
  /onecall:
    get:
      operationId: getOneCall
      summary: Current and forecast weather data for a coordinate
      description: Returns current weather, minute-by-minute forecast for one hour, hourly forecast for 48 hours, daily forecast for 8 days, and any government weather alerts for the supplied latitude and longitude.
      tags:
      - One Call
      parameters:
      - name: lat
        in: query
        required: true
        description: Latitude in decimal degrees, range -90 to 90.
        schema:
          type: number
          format: float
      - name: lon
        in: query
        required: true
        description: Longitude in decimal degrees, range -180 to 180.
        schema:
          type: number
          format: float
      - name: exclude
        in: query
        required: false
        description: Comma-separated list of forecast blocks to omit from the response. Allowed values are current, minutely, hourly, daily, and alerts.
        schema:
          type: string
      - name: units
        in: query
        required: false
        description: Units of measurement. One of standard, metric, or imperial. Default is standard (Kelvin, m/s).
        schema:
          type: string
          enum:
          - standard
          - metric
          - imperial
      - name: lang
        in: query
        required: false
        description: ISO language code for localized response text.
        schema:
          type: string
      - name: appid
        in: query
        required: true
        description: OpenWeather API key.
        schema:
          type: string
      responses:
        '200':
          description: Successful response with combined weather data.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OneCallResponse'
        '400':
          description: Invalid request parameters.
        '401':
          description: Unauthorized. Missing or invalid API key.
        '429':
          description: Too many requests. Rate or quota limit exceeded.
    servers:
    - url: https://api.openweathermap.org/data/3.0
      description: One Call API base URL
  /onecall/timemachine:
    get:
      operationId: getOneCallTimemachine
      summary: Historical weather data for a coordinate and timestamp
      description: Returns historical weather data for the supplied latitude, longitude, and Unix UTC timestamp. Data depth depends on the subscription plan.
      tags:
      - One Call
      parameters:
      - name: lat
        in: query
        required: true
        description: Latitude in decimal degrees.
        schema:
          type: number
          format: float
      - name: lon
        in: query
        required: true
        description: Longitude in decimal degrees.
        schema:
          type: number
          format: float
      - name: dt
        in: query
        required: true
        description: Unix UTC timestamp for the requested historical reading.
        schema:
          type: integer
          format: int64
      - name: units
        in: query
        required: false
        schema:
          type: string
          enum:
          - standard
          - metric
          - imperial
      - name: lang
        in: query
        required: false
        schema:
          type: string
      - name: appid
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Historical weather data response.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request parameters.
        '401':
          description: Unauthorized.
        '429':
          description: Too many requests.
    servers:
    - url: https://api.openweathermap.org/data/3.0
      description: One Call API base URL
components:
  parameters:
    Units:
      name: units
      in: query
      required: false
      description: Units of measurement. standard, metric, or imperial.
      schema:
        type: string
        enum:
        - standard
        - metric
        - imperial
    Lat:
      name: lat
      in: query
      required: true
      description: Latitude in decimal degrees, range -90 to 90.
      schema:
        type: number
        format: float
    Appid:
      name: appid
      in: query
      required: true
      description: OpenWeather API key.
      schema:
        type: string
    Lang:
      name: lang
      in: query
      required: false
      description: Localization language code.
      schema:
        type: string
    Lon:
      name: lon
      in: query
      required: true
      description: Longitude in decimal degrees, range -180 to 180.
      schema:
        type: number
        format: float
  schemas:
    OneCallCurrentResponse:
      type: object
      properties:
        lat:
          type: number
          format: float
        lon:
          type: number
          format: float
        timezone:
          type: string
        timezone_offset:
          type: integer
        current:
          type: object
          properties:
            dt:
              type: integer
              format: int64
            sunrise:
              type: integer
              format: int64
            sunset:
              type: integer
              format: int64
            temp:
              type: number
              format: float
            feels_like:
              type: number
              format: float
            pressure:
              type: integer
            humidity:
              type: integer
            dew_point:
              type: number
              format: float
            uvi:
              type: number
              format: float
            clouds:
              type: integer
            visibility:
              type: integer
            wind_speed:
              type: number
              format: float
            wind_deg:
              type: integer
            weather:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: integer
                  main:
                    type: string
                  description:
                    type: string
                  icon:
                    type: string
    OneCallResponse:
      type: object
      properties:
        lat:
          type: number
          format: float
        lon:
          type: number
          format: float
        timezone:
          type: string
        timezone_offset:
          type: integer
        current:
          type: object
        minutely:
          type: array
          items:
            type: object
        hourly:
          type: array
          items:
            type: object
        daily:
          type: array
          items:
            type: object
        alerts:
          type: array
          items:
            type: object
  securitySchemes:
    appid:
      type: apiKey
      in: query
      name: appid
x-refined-from:
- openweathermap-one-call-openapi.yml
- openweathermap-one-call-3-api-openapi.yml