OpenWeatherMap API
OpenWeatherMap API
com/api/openweathermap-rest-api-v25
https://openweathermap.org/api
Information:
The OpenWeatherMap API currently provides a wide variety of weather data including (but not limited to)
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
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.
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.
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);
});