# Weather Forecast API — Hourly & 10-Day, Any City Worldwide (`actor-forge/weather-forecast-global`) Actor

Hourly and daily weather forecasts for any city or coordinates worldwide, up to 10 days: temperature, feels-like, precipitation, wind, humidity, cloud, pressure, UV and weather symbol, from MET Norway (commercial use OK). Metric or imperial. $1 per 1,000 locations.

- **URL**: https://apify.com/actor-forge/weather-forecast-global.md
- **Developed by:** [ActorForge](https://apify.com/actor-forge) (community)
- **Categories:** Developer tools, Travel
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 forecasts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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 API — Hourly & 10-Day, Any City Worldwide

Hourly and daily weather forecasts for any city or coordinates worldwide, up to 10 days: temperature, feels-like, precipitation, wind, humidity, cloud, pressure, UV and weather symbol, from MET Norway (commercial use OK). Metric or imperial. $1 per 1,000 locations.

**Weather forecasts for any city or point on Earth, in clean rows, from the Norwegian Meteorological Institute's free public API (MET Norway, the data behind Yr), licensed CC BY 4.0, so commercial use is fine.** Type city names ("London", "Paris, France", "Portland, OR") or latitude/longitude pairs; names are matched offline against about 49,000 places, so there is no geocoding quota. Get up to **10 days**: hourly steps for about the first 2.5 days, then 6-hourly, each with **temperature, feels-like, min/max, dew point, humidity, precipitation, wind speed and direction, cloud cover, fog, pressure, clear-sky UV index and a weather symbol** (clearsky_day, rain, heavyrainandthunder...). Each place also gets **daily summaries** in its own time zone: min and max temperature, total precipitation, max wind, mean cloud and humidity, and the day's symbol. Pick the layout: **one row per location** (current conditions plus everything nested), **one row per day**, or **one row per time step** for spreadsheets, in **metric or imperial units**. Use it for **logistics and field-work planning, events, agriculture, energy and demand models, travel apps, dashboards and alerts**. From **$1 per 1,000 locations**, with no API key and no compute bill on top; bad place names return a free status row explaining why.

### What data does it return?

Every run outputs clean, schema-validated rows like these:

| name | date | temperatureMin | temperatureMax | precipitation | windSpeedMax | symbol |
| --- | --- | --- | --- | --- | --- | --- |
| London | 2026-10-24 | 10 | 14.9 | 16.6 | 10.2 | rain |
| New York City | 2026-10-25 | 5 | 18.8 | 0 | 2.6 | clearsky_day |
| São Paulo | 2026-10-25 | 15 | 22.5 | 52 | 7 | heavyrain |

### How much does it cost?

Transparent pay-per-event pricing — you only pay for what you get, and the
actor **always respects your run budget**: set a maximum total charge and it
stops cleanly at the cap instead of overrunning.

| Event | Price | Charged | Worked example |
| --- | --- | --- | --- |
| `forecast` | $0.001 | per location (location layout) | 1,000 locations with current conditions, daily summaries and all time steps = $1.00 |
| `forecast-day` | $0.0002 | per location-day row (daily layout) | 1,000 places × 5 days = $1.00 |
| `forecast-hour` | $0.00002 | per time-step row (hourly layout) | 48 hourly rows for one place = $0.00096 |
| `apify-actor-start` | $0.00005 | per run per GB of memory (platform start fee) | One run at 256 MB = $0.00005 |

### Input options

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `locations` | array | yes | — | Cities or coordinates, one per line: "London", "Paris, France", "Portland, OR", "Rome, Georgia, US", or "latitude, longitude" (e.g. 35.6762, 139.6503) for any spot on Earth. Names cover about 49,000 places with 5,000+ people; the biggest match wins unless you add a country or US state. |
| `days` | integer | no | `3` | Local calendar days to cover, starting today (1–10). Steps are hourly for about the first 2.5 days, then every 6 hours. |
| `output` | string | no | `"location"` | One row per location (current conditions, daily summaries and every time step nested), one row per location and day, or one row per location and time step (best for spreadsheets). |
| `units` | string | no | `"metric"` | Metric (°C, m/s, mm, hPa) or imperial (°F, mph, inches, inHg). |
| `maxItems` | integer | no | `1000` | Upper limit on rows for the whole run. |

### Limits & honest notes

- Forecasts come from MET Norway's public Locationforecast 2.0 API (api.met.no). It is a global numerical forecast, usually very good, but no forecast is a guarantee. Do not use it for safety-of-life decisions; follow your national weather service's warnings. This actor is not made by, affiliated with or endorsed by MET Norway or Yr.
- Attribution: the weather data is CC BY 4.0 (MET Norway). Every row carries an attribution field; keep it when you republish the data. City names and coordinates come from GeoNames (CC BY 4.0).
- One request per distinct location per run, at most 10 requests per second, with an identifying user agent, as MET's terms ask. Coordinates are rounded to 4 decimals (about 11 m).
- Time steps are hourly for about the first 60 hours, then every 6 hours. Precipitation is the amount over each step. In the daily summary a 6-hour step counts toward the day it starts in. "UV" is MET's clear-sky UV index (the UV if there were no clouds). Gusts and precipitation probability are filled only where MET provides them (mainly the Nordic region); elsewhere they are empty.
- Place names: the biggest place with that name wins (e.g. "Paris" is Paris, France); add a country or US state ("Paris, TX") to choose another. The alternatives field lists other matches. Places under 5,000 people need latitude and longitude. Unknown names and invalid coordinates return a free status row. Respects your run budget: set a maximum total charge and the run stops cleanly at the cap.

### Related ActorForge actors

- [Kalshi Weather Markets](https://apify.com/actor-forge/kalshi-weather-markets) — compare the forecast with temperature-bracket odds
- [News Search](https://apify.com/actor-forge/news-search) — storm and weather news for the same places

### Changelog

- **2026-10-24** — Initial release: cities or coordinates worldwide, up to 10 days, hourly/6-hourly steps, daily summaries in local time, three layouts, metric or imperial units, free status rows.

***

*Built and maintained by **ActorForge**. Reliability first: every actor in the
portfolio is monitored by an automated nightly self-test, and breakages are
typically fixed the same day.*

# Actor input Schema

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

Cities or coordinates, one per line: "London", "Paris, France", "Portland, OR", "Rome, Georgia, US", or "latitude, longitude" (e.g. 35.6762, 139.6503) for any spot on Earth. Names cover about 49,000 places with 5,000+ people; the biggest match wins unless you add a country or US state.

## `days` (type: `integer`):

Local calendar days to cover, starting today (1–10). Steps are hourly for about the first 2.5 days, then every 6 hours.

## `output` (type: `string`):

One row per location (current conditions, daily summaries and every time step nested), one row per location and day, or one row per location and time step (best for spreadsheets).

## `units` (type: `string`):

Metric (°C, m/s, mm, hPa) or imperial (°F, mph, inches, inHg).

## `maxItems` (type: `integer`):

Upper limit on rows for the whole run.

## Actor input object example

```json
{
  "locations": [
    "London",
    "New York",
    "Tokyo"
  ],
  "days": 3,
  "output": "location",
  "units": "metric",
  "maxItems": 1000
}
```

# Actor output Schema

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

One row per location, day or time step (depending on the layout): temperature, feels-like, precipitation, wind, humidity, cloud, pressure, UV and weather symbol.

## `summary` (type: `string`):

Rows delivered, requests made, whether the source refused a request, and billing.

# 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": [
        "London",
        "New York",
        "Tokyo"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("actor-forge/weather-forecast-global").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": [
        "London",
        "New York",
        "Tokyo",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("actor-forge/weather-forecast-global").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": [
    "London",
    "New York",
    "Tokyo"
  ]
}' |
apify call actor-forge/weather-forecast-global --silent --output-dataset

```

## MCP server setup

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

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/qYTWpNNzEQkyFUlUf/builds/110ydhaq2Q58nLyLO/openapi.json
