• ow logo
    • Getting Started
    • Marketplace
    • Maps
    • News
    • Support
    • For Enterprises
    • Login
    • Sign up
ow logo
Login

Build smarter, plan better with the world’s most flexible weather data platform

Build smarter, plan better with the world’s most flexible weather data platform

  • Get API Key
  • Explore API Docs

Products

  • Current and Forecast APIs
  • Historical Weather Data
  • Weather Maps
  • Weather Dashboard
  • Widgets

Subscription

  • How to start
  • Pricing
  • Subscribe for free
  • FAQ

Technologies

  • Our technology
  • Accuracy and quality of weather data
  • Connect your weather station
Offices
  • London, UK

    The Gherkin, 30 St Mary`s Axe,  The City Of London, London EC3A 8BF, United Kingdom

  • Paphos, Cyprus

    Gladstonos 12-14, Office 1 Hugge Space, Paphos 8046, Cyprus

  • Delaware, US

    16192 Coastal Highway, Lewes,  Delaware 19958, United States

  • App Store
  • Google Play
  • Instagram icon
  • Facebook icon
  • Telegram icon
  • LinkedIn icon
  • Medium icon
  • GitHub icon
  • Discord icon
  • ISO 9001
  • ISO 27001
  • CNB Business Logo
  • RMets Logo
  • ESPO logo
  • LCRIG logo

Company

OpenWeather is a London-based weather intelligence company serving enterprises, developers, businesses, and researchers worldwide. Through its developer business, the company provides global weather data and forecasting services via fast, reliable APIs, delivering historical, current, and forecast weather data for any location worldwide. Combining advanced meteorology, AI-enhanced forecasting models, and scalable data infrastructure, OpenWeather helps customers integrate weather intelligence into applications, services, and operational workflows.

Supplier of Achilles UVDB community
© 2012 - 2026 OpenWeather ® All rights reserved
  • Terms & conditions of sale
  • Website terms & conditions
  • Privacy policy

Documentation

One Call API
  • Dropdown icon
    • Product concept
    • How to start
    • Pagination & limits
    • Dropdown icon
      • How to make an API call
      • Example of API response
      • Fields in API response
    • Dropdown icon
      • How to make an API call
      • Example of API response
      • Fields in API response
    • Dropdown icon
      • How to make an API call
      • Example of API response
      • Fields in API response
    • Dropdown icon
      • How to make an API call
      • Example of API response
      • Fields in API response
    • Dropdown icon
      • How to make an API call
      • Example of API response
      • Fields in API response
    • Dropdown icon
      • How to make an API call
      • Example of API response
      • Fields in API response
    • Dropdown icon
      • List of weather condition codes
      • Units of measurement
      • Multilingual support
      • List of national weather alerts sources
      • Callback function for JavaScript code
    • Dropdown icon
      • Structure of API errors
      • Dropdown icon
        • Error 400
        • Error 401
        • Error 404
        • Error 429
        • Errors '5xx'

Ultraviolet Index (Deprecated)

The product retired on 1st April 2021, please find UV data in One Call API 4.0. One Call API includs current, hourly forecast for 7 days and 5 days historical UV data.

Access current, forecast and historical UV data for any location on Earth including over 200,000 cities! Data is available in the JSON format.

Call current UV data

Parameters of API call

lat, lon

required

Geographical coordinates (latitude, longitude)

appid

required

Your unique API key (you can always find it on your account page under the "API key" tab)

Example of API response

{
"lat":37.75,
"lon":-122.37,
"date_iso":"2017-06-26T12:00:00Z",
"date":1498478400,
"value":10.06
}

Call forecast UV data

The data is available for 8 days ahead.

Parameters of API call

lat, lon

required

Geographical coordinates (latitude, longitude)

appid

required

Your unique API key (you can always find it on your account page under the "API key" tab)

cnt

optional

A number of timestamps in response.

Example of API call

[
      {
          "lat":37.75,
          "lon":-122.37,
          "date_iso":"2017-06-27T12:00:00Z",
          "date":1498564800,
          "value":10.1
      },
      {
          "lat":37.75,
          "lon":-122.37,
          "date_iso":"2017-06-28T12:00:00Z",
          "date":1498651200,
          "value":10.19
      },
      ...
      {
          "lat":37.75,
          "lon":-122.37,
          "date_iso":"2017-07-04T12:00:00Z",
          "date":1499169600,
          "value":10.05
      }
  ]

Call historical UV data

Parameters

lat, lon

required

Geographical coordinates (latitude, longitude)

appid

required

Your unique API key (you can always find it on your account page under the "API key" tab)

cnt

optional

A number of timestamps in response.

start

optional

Starting point of time period in UNIX time

end

optional

Final point of time period in UNIX time

Example of API call

[
    {
        "lat":37.75,
        "lon":-122.37,
        "date_iso":"2017-06-22T12:00:00Z",
        "date":1498132800,
        "value":9.92
    },
    {
        "lat":37.75,
        "lon":-122.37,
        "date_iso":"2017-06-23T12:00:00Z",
        "date":1498219200,
        "value":10.09
    },
    {
        "lat":37.75,
        "lon":-122.37,
        "date_iso":"2017-06-24T12:00:00Z",
        "date":1498305600,
        "value":10.95
    },
    {
        "lat":37.75,
        "lon":-122.37,
        "date_iso":"2017-06-25T12:00:00Z",
        "date":1498392000,
        "value":11.03
    },
    {
        "lat":37.75,
        "lon":-122.37,
        "date_iso":"2017-06-26T12:00:00Z",
        "date":1498478400,
        "value":10.06
    }
]

The data is available starting from the 2017-06-22.

Server response format

Please remember that data is provided only for 12:00 p.m.

{
  "lat": 38.75,
  "lon": 40.25,
  "date_iso": "2017-06-23T12:00:00Z",
  "date": 1498219200,
  "value": 10.16
}
  • lat float latitude for returned data
  • lon float longitude for returned data
  • date_iso string date and time corresponding to returned date
  • date integer ISO 8601 timestamp
  • value float longitude for returned data

Codes of requests

If API call is successful - 200 HTTP-code is returned. If location is not found or wrong APPID is specified then HTTP-code 404 or HTTP-code 400 are returned accordingly.