# Weather Forecast Scraper - Current, Daily & Hourly (`get_anything/weather-forecast-scraper`) Actor

Current conditions plus daily and hourly weather forecasts for any location by city name or coordinates. Temperature, precipitation, wind, UV, sunrise/sunset, up to 16 days, your choice of units. Built on Open-Meteo, no API key. Export JSON, CSV or Excel.

- **URL**: https://apify.com/get\_anything/weather-forecast-scraper.md
- **Developed by:** [Get Anything](https://apify.com/get_anything) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Weather Forecast Scraper — Current, Daily & Hourly

**Current conditions** plus **daily and hourly forecasts** for any location — by **city name** (auto-geocoded) or **coordinates**. Up to **16 days** out, in your choice of units. Built on **Open-Meteo's free API**. **No API key.**

### What it does

- **Current** — temperature, feels-like, humidity, precipitation, weather description, wind speed/direction, pressure, cloud cover, day/night.
- **Daily** — max/min temp, precipitation sum & probability, weather, max wind & gusts, UV index, sunrise/sunset.
- **Hourly** (optional) — temperature, precipitation, weather, wind, humidity.
- **Multiple locations** in one run; units for temperature (°C/°F), wind (kmh/ms/mph/kn) and precipitation (mm/inch).
- Human-readable **weather descriptions** (WMO codes decoded).
- Export to **JSON, CSV, or Excel**, or pull via the Apify API.

### Input

| Field | Description |
|-------|-------------|
| `locations` | City names, auto-geocoded. |
| `coordinates` | `lat,lon` pairs. |
| `forecastDays` | 1–16. |
| `includeCurrent` / `includeDaily` / `includeHourly` | What to return. |
| `temperatureUnit` / `windSpeedUnit` / `precipitationUnit` | Units. |
| `timezone` | IANA tz or `auto`. |

#### Example

```json
{ "locations": ["Dubai", "London"], "forecastDays": 7,
  "includeCurrent": true, "includeDaily": true }
```

### Output

```json
{ "resultType": "dailyForecast", "location": "Dubai", "date": "2026-09-15",
  "tempMax": 41.2, "tempMin": 30.1, "weather": "Clear sky",
  "precipitationSum": 0, "windMax": 22.5, "uvIndexMax": 9 }
```

### Use cases

- **Apps & dashboards** — embed live weather for any city.
- **Logistics & agriculture** — plan around rain, wind and temperature.
- **Events & energy** — forecast-driven scheduling and demand.
- **AI/RAG** — feed forecasts to an assistant or bot.

### FAQ

**Do I need an API key?** No — it uses Open-Meteo's free API.

**City or coordinates?** Either — names are auto-geocoded to coordinates + timezone.

*Powered by Open-Meteo (CC-BY). Data is for information only.*

### 🤖 Use with Claude or ChatGPT (MCP)

Run this actor from Claude, ChatGPT, Cursor or any MCP client via the [Apify MCP server](https://mcp.apify.com). In **Claude Desktop**: Settings → Connectors → Add custom connector → `https://mcp.apify.com`. Or expose just this tool:

```json
{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=get_anything/weather-forecast-scraper" } } }
```

Full guide: [Connect Apify actors to Claude & ChatGPT](https://dev.to/get_anything/connect-any-apify-scraper-to-claude-or-chatgpt-in-2-minutes-mcp-37he).

### ⭐ Found this useful?

If this Actor saved you time, please leave a rating on its [Apify page](https://apify.com/get_anything/weather-forecast-scraper) — reviews genuinely help others discover it and help me keep improving it.

# Actor input Schema

## `locations` (type: `array`):

City / place names, auto-geocoded, e.g. 'Dubai', 'London', 'New York'.

## `coordinates` (type: `array`):

Exact coordinates as 'lat,lon', e.g. '25.2,55.27'.

## `forecastDays` (type: `integer`):

How many days ahead (1-16).

## `includeCurrent` (type: `boolean`):

Return the current weather reading for each location.

## `includeDaily` (type: `boolean`):

Return a daily forecast row per day.

## `includeHourly` (type: `boolean`):

Return an hourly forecast row per hour (more rows).

## `temperatureUnit` (type: `string`):

Temperature unit.

## `windSpeedUnit` (type: `string`):

Wind speed unit.

## `precipitationUnit` (type: `string`):

Precipitation unit.

## `timezone` (type: `string`):

IANA timezone or 'auto' to use each location's local time.

## Actor input object example

```json
{
  "locations": [
    "Dubai",
    "London"
  ],
  "coordinates": [],
  "forecastDays": 7,
  "includeCurrent": true,
  "includeDaily": true,
  "includeHourly": false,
  "temperatureUnit": "celsius",
  "windSpeedUnit": "kmh",
  "precipitationUnit": "mm",
  "timezone": "auto"
}
```

# Actor output Schema

## `results` (type: `string`):

Structured results in the default dataset - one item per current reading or forecast point.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "locations": [
        "Dubai",
        "London"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("get_anything/weather-forecast-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "locations": [
        "Dubai",
        "London",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("get_anything/weather-forecast-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "locations": [
    "Dubai",
    "London"
  ]
}' |
apify call get_anything/weather-forecast-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,get_anything/weather-forecast-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vWczAaDGyJBnXdc5u/builds/c78Y9hHAVyfamfdhk/openapi.json
