0% found this document useful (0 votes)
141 views2 pages

OpenWeatherMap API

The OpenWeatherMap API provides current and historical weather data including temperature, forecasts, alerts, and air pollution levels. It has comprehensive documentation and examples. To use the API, developers must sign up for a free API key to authenticate their requests. The documentation provides an example of calling the API using jQuery to get weather data for San Francisco.

Uploaded by

Hui Nee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
141 views2 pages

OpenWeatherMap API

The OpenWeatherMap API provides current and historical weather data including temperature, forecasts, alerts, and air pollution levels. It has comprehensive documentation and examples. To use the API, developers must sign up for a free API key to authenticate their requests. The documentation provides an example of calling the API using jQuery to get weather data for San Francisco.

Uploaded by

Hui Nee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

https://www.programmableweb.

com/api/openweathermap-rest-api-v25
https://openweathermap.org/api

Name of the API:


OpenWeatherMap API
Links to that developer support site for the API:
https://rapidapi.com/community/api/open-weather-map

Information:

The OpenWeatherMap API currently provides a wide variety of weather data including (but not limited to)

current weather, forecasts, historical, weather stations, and weather alerts.

The API also provides current and historical air pollution data such as carbon monoxide (CO), ozone (O3),

sulfur dioxide (SO2), and nitrogen dioxide (NO2). This feature is currently in beta and air pollution

historical information goes back to November 2015.

The API documentation is comprehensive, easy to follow, and includes many examples of API requests

and the responses returned. Numerous unofficial OpenWeatherMap API client libraries and wrappers are

available on GitHub.

How to get an OpenWeatherMap API Key?

When connecting an API to a project or application, you must have an API key to authenticate your

request. Creating an app within RapidAPI generates an API key (X-RapidAPI-Key) specific to that

application. You can view analytics based on the API calls you make using this app key.

Learn how to use the weather API in python. Sign up today for free!

Example API Call (jQuery)

var settings = {
"async": true,

"crossDomain": true,

"url": "https://community-open-weather-map.p.rapidapi.com/weather?q=san%20francisco
%2Cus",

"method": "GET",

"headers": {

"x-rapidapi-host": "community-open-weather-map.p.rapidapi.com",

"x-rapidapi-key": "SIGN-UP-FOR-KEY"

$.ajax(settings).done(function (response) {

console.log(response);

});

Take a look of our detailed OpenWeatherMap vs Dark Sky API Comparison here.

You might also like