Open Meteo Weather
Pricing
$1.00 / 1,000 forecast fetcheds
Open Meteo Weather
Fetch current, hourly, and daily weather forecasts and historical data for any coordinates or city — powered by the official Open-Meteo API. No API key required.
Open Meteo Weather
Pricing
$1.00 / 1,000 forecast fetcheds
Fetch current, hourly, and daily weather forecasts and historical data for any coordinates or city — powered by the official Open-Meteo API. No API key required.
You can access the Open Meteo Weather programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "locations": [12 "52.52,13.41",13 "Berlin",14 "New York"15 ],16 "current": [17 "temperature_2m",18 "relative_humidity_2m",19 "apparent_temperature",20 "precipitation",21 "weather_code",22 "wind_speed_10m"23 ],24 "hourly": [],25 "daily": [26 "weather_code",27 "temperature_2m_max",28 "temperature_2m_min"29 ]30};31
32// Run the Actor and wait for it to finish33const run = await client.actor("brunofin/open-meteo-weather").call(input);34
35// Fetch and print Actor results from the run's dataset (if any)36console.log('Results from dataset');37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);38const { items } = await client.dataset(run.defaultDatasetId).listItems();39items.forEach((item) => {40 console.dir(item);41});42
43// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use Open Meteo Weather API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: