Weather Forecast API avatar

Weather Forecast API

Pricing

from $10.00 / 1,000 results

Go to Apify Store
Weather Forecast API

Weather Forecast API

Worldwide weather feed by country, region, city, or district — returns up to 16 days of forecast (temperature, feels-like, precipitation, humidity, wind, UV index, sunrise/sunset) or any historical date range via Start/End dates, ready for logistics, retail-demand, and energy modeling.

Pricing

from $10.00 / 1,000 results

Rating

0.0

(0)

Developer

AgentX

AgentX

Maintained by Community

Actor stats

2

Bookmarked

3

Total users

1

Monthly active users

2 days ago

Last modified

Share

Global Weather Scraper - Daily Forecast & Historical Weather Data Extraction API

Global Weather Scraper is a global weather intelligence API that extracts structured daily weather records, multi-variable climate signals, and forecast/historical date ranges for any location worldwide in a single location-driven run. Global Weather Scraper returns structured records per day, including maximum/minimum/mean temperature, apparent temperature extremes, precipitation sum, rain sum, snowfall sum, precipitation hours, precipitation probability, max wind speed, max wind gusts, dominant wind direction (degrees and compass), UV index maximum, sunrise timestamp, sunset timestamp, daylight hours, sunshine hours, current conditions snapshot, resolved location name, country, region, city, latitude, longitude, and timezone. Coverage spans every country, region, city, and town worldwide via free-text location input, with both forecast (1–16 days) and historical date-range modes. Built for climate modeling, logistics planning, agricultural intelligence, solar energy optimization, weather-aware automation, supply chain risk monitoring, and environmental research pipelines. Pay-per-result pricing with no monthly minimum.

Weather Forecast & Historical Global Coverage


Why Choose This API

Structured Daily Weather Records with Forecast and Historical Range Support

🌡️ Full Daily Temperature Profile Extract maximum, minimum, and mean temperatures alongside feels-like (apparent) temperature extremes per day — normalized numeric values ready for time-series modeling, climate benchmarking, and logistics planning systems.

🌧️ Precipitation & Snow Data Capture precipitation sum, rain sum, snowfall sum, precipitation hours, and precipitation probability per day for rainfall event detection, snow routing, and climate analysis pipelines.

💨 Wind Speed, Gusts & Direction Retrieve maximum wind speed, maximum wind gusts, dominant wind direction (degrees), and compass label per day for wind impact analysis, logistics risk scoring, and weather monitoring feeds.

☀️ UV Index, Sunrise & Sunset Extract UV index maximum, sunrise timestamp, sunset timestamp, daylight hours, and sunshine hours per day for health intelligence, solar energy optimization, and event planning systems.

📍 Enriched Location Metadata Each record includes resolved location name, country, region, city, latitude, longitude, and timezone — complete geo-metadata for multi-location weather dataset pipelines.

📅 Forecast & Historical Range Modes Run in forecast mode (1–16 days from today) or historical date-range mode using ISO dates or relative periods (e.g., 30 days ago, 2 weeks).


Quick Start Guide

How to Extract Weather Data in 3 Steps

Step 1: Define Your Location and Date Range

Enter a location (any country, region, city, town, or district) and choose between forecast mode (number of days) or historical mode (start and end dates).

Step 2: Configure and Run the Actor

Open Actor Input

Set the location, mode, and date configuration, then click Start.

Step 3: Download Your Data

Export results as JSON or CSV, or access programmatically via the Apify dataset API. Each record represents one calendar day with full weather metrics, location metadata, and current conditions.


Input Parameters

Configuration Fields

ParameterTypeRequiredDescriptionExample Values
locationstringCountry, region, city, town, or district"Tokyo, Japan", "Ontario, Canada", "Munich"
daysintegerNumber of forecast days from today (1–16) when no date range set3, 7, 14
start_datedatepickerHistorical start date (ISO or relative period)"2025-04-01", "30 days"
end_datedatepickerHistorical end date (ISO or relative period)"2025-04-21", "1 day"

Example Input Configuration — Forecast Mode

{
"location": "Tokyo, Japan",
"days": 7
}

Example Input Configuration — Historical Mode

{
"location": "London, UK",
"start_date": "2025-04-01",
"end_date": "2025-04-30"
}

Output Data Schema

Complete Weather Record Structure

Each extracted weather record represents one calendar day and contains the following fields:

Open Actor Output

Run Context Fields

FieldTypeDescription
processorstringApify actor URL that processed this record
processed_atstringISO 8601 timestamp (UTC) when scraped
statusstringLookup status
modestring"forecast" or "historical"
start_datestringRequested start date (historical mode)
end_datestringRequested end date (historical mode)

Location Metadata Fields

FieldTypeDescription
locationstringResolved place name
countrystringCountry name
regionstringState, province, or county
citystringCity/town/municipality name
latitudenumberLatitude coordinate
longitudenumberLongitude coordinate
timezonestringLocation timezone
temperature_unitstringTemperature unit used
wind_speed_unitstringWind speed unit used

Daily Weather Fields

FieldTypeDescription
datestringCalendar day (ISO date)
weatherstringHuman-readable weather label
temperature_maxnumberMaximum temperature
temperature_minnumberMinimum temperature
temperature_meannumberMean temperature
apparent_temperature_maxnumberFeels-like maximum
apparent_temperature_minnumberFeels-like minimum
wind_speed_maxnumberMaximum wind speed
wind_gusts_maxnumberMaximum wind gusts
wind_direction_dominantnumberDominant wind direction (degrees)
wind_direction_labelstringCompass label for wind direction
precipitation_sumnumberTotal precipitation
precipitation_probability_maxnumberMax precipitation probability (%)
rain_sumnumberTotal rain
snowfall_sumnumberTotal snowfall
precipitation_hoursnumberHours with precipitation
uv_index_maxnumberMaximum UV index
sunrisestringSunrise time (local)
sunsetstringSunset time (local)
daylight_hoursnumberHours of daylight
sunshine_hoursnumberHours of sunshine

Current Conditions Fields

FieldTypeDescription
current_temperaturenumberCurrent air temperature
current_apparent_temperaturenumberCurrent feels-like temperature
current_humiditynumberCurrent relative humidity (%)
current_weatherstringCurrent weather label
current_cloud_covernumberCloud cover (%)
current_pressurenumberAtmospheric pressure (hPa)
current_visibility_kmnumberVisibility distance (km)
current_uv_indexnumberCurrent UV index
current_wind_speednumberCurrent wind speed
current_wind_directionnumberCurrent wind direction (degrees)
current_wind_direction_labelstringCompass label
current_wind_gustsnumberCurrent wind gusts
current_is_daybooleanWhether current observation is daytime

Example JSON Output

{
"processor": "https://apify.com/agentx/global-weather-scraper?fpr=aiagentapi",
"processed_at": "2026-05-01T10:30:00.000Z",
"status": "success",
"mode": "historical",
"start_date": "2026-04-28",
"end_date": "2026-04-30",
"location": "Tokyo, Japan",
"country": "Japan",
"region": "Tokyo",
"city": "Tokyo",
"latitude": 35.6762,
"longitude": 139.6503,
"timezone": "Asia/Tokyo",
"temperature_unit": "celsius",
"wind_speed_unit": "kmh",
"date": "2026-04-28",
"weather": "Mainly clear",
"temperature_max": 22.6,
"temperature_min": 14.8,
"temperature_mean": 18.7,
"precipitation_sum": 0,
"precipitation_probability_max": 10,
"uv_index_max": 7.5,
"sunrise": "2026-04-28T04:59+09:00",
"sunset": "2026-04-28T18:19+09:00",
"daylight_hours": 13.3,
"current_temperature": 18.4,
"current_humidity": 63,
"current_weather": "Mainly clear"
}

Export Formats

  • JSON - Complete structured data with all metadata
  • CSV - Spreadsheet-compatible format for time-series analysis
  • API Access - Programmatic access via Apify Client SDK
  • Cloud Storage - Automatic upload to Apify Dataset

Integration Examples

Actor ID for Platform Integration

Yn1ksjorQhCtBcLN6

Ⓜ️ Make.com Setup:

  1. Login to Make.com (Get 1000 Free Credits)
  2. Add module "Run an Actor"
  3. Turn 'Map' on - right side of the 'Actor*'
  4. Paste Actor ID - from above
  5. Click the '⟳ Refresh' - left side of Map
  6. Input JSON* - Modify the parameters as needed
  7. Set "Run synchronously" to YES
  8. Add module "Get Dataset Items" - receive the result
  9. In Dataset ID* select defaultDatasetId

🎱 N8N.io Setup:

  1. Add 'Run an Actor and get dataset' - from the apify node
  2. ActorBy IDPaste Actor ID - from above
  3. Input JSON - Modify the parameters as needed

Python Integration Example

from apify_client import ApifyClient
client = ApifyClient('YOUR_API_TOKEN')
run_input = {
"location": "Tokyo, Japan",
"days": 7
}
run = client.actor("Yn1ksjorQhCtBcLN6").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

JavaScript/Node.js Integration

import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: "YOUR_API_TOKEN" });
const input = {
location: "London, UK",
start_date: "2025-04-01",
end_date: "2025-04-30",
};
const run = await client.actor("Yn1ksjorQhCtBcLN6").call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => console.log(item));

JSON-LD Metadata

{
"@context": "https://schema.org",
"@graph": [
{
"@type": "SoftwareApplication",
"@id": "https://apify.com/agentx/global-weather-scraper#software",
"name": "Global Weather Scraper",
"description": "Global Weather Scraper is a global weather intelligence API that extracts structured daily weather records with temperature, precipitation, wind, UV index, and current conditions for any location worldwide, in both forecast and historical modes.",
"applicationCategory": "BusinessApplication",
"applicationSubCategory": "Data Extraction API",
"operatingSystem": "Web, Cloud",
"url": "https://apify.com/agentx/global-weather-scraper?fpr=aiagentapi",
"softwareVersion": "1.0.0",
"datePublished": "2024-08-01",
"dateModified": "2026-05-01",
"featureList": [
"Daily max/min/mean temperature plus apparent extremes",
"Precipitation sum, rain, snowfall, hours, probability",
"Max wind speed, gusts, dominant direction (deg + compass)",
"UV index, sunrise, sunset, daylight, sunshine hours",
"Forecast mode (1–16 days) and historical date-range mode",
"Worldwide location coverage via free-text input",
"Resolved geo-metadata: country, region, city, lat/lon, timezone",
"Native integrations with Make.com, n8n, LangChain, and CrewAI"
],
"offers": {
"@type": "Offer",
"price": "0.01",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
},
"author": { "@id": "https://apify.com/agentx#person" },
"publisher": { "@id": "https://apify.com#organization" }
},
{
"@type": "Person",
"@id": "https://apify.com/agentx#person",
"name": "AgentX",
"url": "https://apify.com/agentx",
"sameAs": [
"https://apify.com/agentx",
"https://t.me/AiAgentApi",
"https://t.me/Apify_Actor"
],
"knowsAbout": [
"weather data",
"forecast API",
"climate intelligence",
"meteorological data",
"logistics planning"
]
},
{
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Apify",
"item": "https://apify.com"
},
{
"@type": "ListItem",
"position": 2,
"name": "AgentX",
"item": "https://apify.com/agentx"
},
{
"@type": "ListItem",
"position": 3,
"name": "Global Weather Scraper",
"item": "https://apify.com/agentx/global-weather-scraper"
}
]
}
]
}

Pricing & Cost Calculator

Pay-Per-Result Pricing

EventDescriptionPrice
Actor StartCharged on each run start (per GB memory, min 1 event)$0.02
ResultCharged weather lookup per day-record returned$0.01

Cost Estimation Examples

Records (Days)Estimated Cost
7-day forecast (1 location)~$0.09
30-day historical (1 location)~$0.32
90-day historical (1 location)~$0.92
365-day historical (1 location)~$3.67
30-day × 10 locations~$3.02

Actor Start cost ($0.02) is separate from per-result pricing.


Use Cases & Applications

Logistics & Operations Intelligence

Weather Risk Scoring for Routes Extract forecast data for route waypoints to score weather risk per day — enabling proactive routing decisions for freight, last-mile delivery, and field operations.

Weather Event Detection & Alerting Use precipitation probability, snowfall, and wind gust thresholds to build automated weather alert pipelines that trigger operational responses when conditions exceed risk thresholds.

Construction & Site Management Weather Feeds Feed daily weather records into project management systems to flag high-risk weather days for outdoor construction, site inspections, or infrastructure maintenance.

Research & Environmental Intelligence

Historical Climate Dataset Building Extract months or years of historical daily weather records for any location to build climate research datasets, seasonal pattern analysis, and long-term trend modeling.

Multi-Location Weather Comparison Run parallel extractions across multiple cities or regions to compare temperature, precipitation, or UV index profiles across locations for environmental research and investment analysis.

Agricultural Weather Intelligence Extract precipitation, temperature range, sunshine hours, and UV index for agricultural regions to support crop planning, irrigation scheduling, and yield modeling.

AI & Data Applications

Weather-Correlated Demand Modeling Combine weather time-series with sales, traffic, or demand data to build regression models quantifying weather impact on business metrics.

Climate NLP Corpus Build labeled weather description datasets using weather and current_weather fields for NLP model training on weather language understanding.


FAQ

Can this actor extract historical weather data?

Yes. Set start_date and end_date to enable historical mode. Accepts ISO dates (YYYY-MM-DD) or relative periods like 30 days or 2 weeks.

How far ahead can forecast data be extracted?

Up to 16 days forward from today using the days parameter.

What location formats are supported?

Any country, region, city, town, or district name. Examples: "Tokyo, Japan", "Ontario, Canada", "Munich".

Is current conditions data included?

Yes. Each record includes current temperature, humidity, weather label, cloud cover, pressure, visibility, UV index, wind speed, and wind direction.

What data format does the actor output?

Structured JSON with one record per calendar day. Data is also available in CSV format and via REST API.


SEO Keywords & Search Terms

Primary Keywords

global weather data API, weather scraper API, historical weather dataset, weather forecast extraction, daily weather API, weather data pipeline, weather intelligence API, meteorological data extraction, weather time-series API, climate dataset builder

Long-Tail Keywords

how to extract historical weather data, daily weather forecast dataset API, multi-location weather data extraction, weather API for logistics planning, precipitation data pipeline, temperature time-series extraction API, weather risk scoring API, climate trend dataset builder, weather NLP corpus API, agricultural weather intelligence API

Industry Terms

weather time-series extraction, meteorological data pipeline, climate dataset API, forecast weather data, historical daily records, precipitation event detection, wind risk intelligence, solar UV index dataset, weather-correlated demand modeling, logistics weather intelligence

Use Case Keywords

weather data tracker, climate dataset builder, weather risk API, multi-city weather monitor, weather pipeline integration, agricultural climate data, daily temperature feed, historical precipitation dataset, weather forecast API, weather alert automation


Trust & Certifications

  • Production-Grade Infrastructure — runs on the Apify cloud platform with managed proxy rotation and automatic retries
  • Public Open-Data Source — weather records derived from publicly available meteorological feeds; no personal data processed
  • Pay-Per-Result Billing — transparent per-day pricing with no monthly minimum or seat fees
  • Continuously Maintained — schema and feed updates released as upstream weather providers evolve

Data Rights & Usage

All weather data returned by this actor is sourced from publicly available meteorological data providers. Users are responsible for ensuring their use of extracted data complies with applicable laws and the terms of use of underlying weather data sources.

Privacy Compliance

  • GDPR: Compliant with EU General Data Protection Regulation. No personal data is stored beyond the extraction session.
  • CCPA: Compliant with California Consumer Privacy Act requirements.

Enterprise Support

For enterprise licensing, custom integrations, or compliance inquiries:


Jobs & Hiring

Social Media

Video & Transcript

E-Commerce & Retail

Classifieds & Automotive

Real Estate

Business Intelligence & Reviews

Other


Support & Community


Last Updated: May 01, 2026