OpenWeather provides comprehensive weather data services, including current, forecast, and historical weather information.
Get a URL and emit the full HTTP event on every request (including headers and query parameters). You can also configure the HTTP response code, body, and more.
Get a URL and emit the HTTP body as an event on every request
Emit new event when the content of the URL changes.
Retrieves the current weather condition by location longitude and latitude. See the docs here. For more accurate reading, you are advised to fill in the country and/or state code
Retrieves the current weather for a given (ZIP, country)
Retrieves 1-16 days weather forecast for a specified location. See the docs here. For more accurate reading, you are advised to fill in the country and/or state code
Send an HTTP request using any method and URL. Optionally configure query string parameters, headers, and basic auth.
Retrieves the 5-day weather forecast for a given (ZIP, country)
The OpenWeather API is one of the most powerful and comprehensive weather APIs
available today, allowing developers to build a wide range of applications and
services from simple weather forecasting to complex weather analysis. With
access to global weather data from a wide range of sources, including
professional and amateur weather stations, users can gain insight into climate
change, predict storms and floods, better manage existing and developing
weather hazards, and more.
The OpenWeather API is designed to make life easier for developers, by allowing
users to easily interface with detailed and reliable weather data. Here are a
few ways developers can use the OpenWeather API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
openweather_api: {
type: "app",
app: "openweather_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.openweathermap.org/data/2.5/weather`,
params: {
zip: `20500,us`,
appid: `${this.openweather_api.$auth.api_key}`,
},
})
},
})
// To use any npm package on Pipedream, just import it
import axios from "axios"
export default defineComponent({
async run({ steps, $ }) {
const { data } = await axios({
method: "GET",
url: "https://pokeapi.co/api/v2/pokemon/charizard",
})
return data.species
},
})