# Weather Forecast & Alerts: Any City, 9 Days, Bulk (`pankajbhatia/weather-forecast-alerts`) Actor

Get 9-day weather forecasts for any city or coordinates worldwide: daily highs and lows, rain, wind, humidity and conditions, plus optional hourly data and active U.S. weather alerts. Bulk locations, official MET Norway data.

- **URL**: https://apify.com/pankajbhatia/weather-forecast-alerts.md
- **Developed by:** [Pankaj Bhatia](https://apify.com/pankajbhatia) (community)
- **Categories:** Travel, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 location 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 & Alerts: Any City, 9 Days, Bulk

**Get weather forecasts for many places at once.** Enter city names (like `London, UK`, `Austin, TX` or `Tokyo`) or coordinates (`40.71, -74.00`) and get, for each location:

- **Current conditions**: temperature, humidity, wind speed and direction, pressure, cloud cover and conditions
- **Daily forecast for up to 9 days**: low and high temperature, total rain or snow (mm), max wind, average humidity and the main conditions (clear sky, rain showers, snow...)
- **Optional hourly forecast** for about the next 60 hours
- **Active U.S. weather alerts** from the National Weather Service (storms, heat, floods, air quality)

Forecasts come from **MET Norway**, the Norwegian Meteorological Institute, whose free global forecast API is licensed for commercial use. U.S. alerts come from the official **National Weather Service API**. City names are matched against a built-in list of about 15,000 cities (GeoNames, CC BY 4.0), so lookups are instant.

### Who is it for?

- **Logistics, delivery and field-service teams**: plan routes and crews around rain, wind and heat.
- **Event organizers, outdoor businesses and agriculture**: check many sites every morning on a schedule.
- **E-commerce and marketing**: trigger weather-based campaigns (umbrellas when it rains, ice cream when it's hot).
- **Travel sites, apps and AI agents**: add a forecast feed without signing up for a weather API.

### How to use it

1. Add your **locations**: one per line.
2. Choose the **number of days**, **units** (°C or °F) and whether you want **hourly** data and **U.S. alerts**.
3. Click **Start**, then export to Excel, CSV or JSON. Schedule it daily for a morning weather report.

### Input example

```json
{
  "locations": ["London, UK", "Austin, TX", "Tokyo", "-33.87, 151.21"],
  "days": 7,
  "units": "metric",
  "includeHourly": false,
  "includeUsAlerts": true
}
```

### Output example

```json
{
  "input": "Austin, TX",
  "name": "Austin",
  "country": "US",
  "region": "Texas",
  "lat": 30.2672,
  "lon": -97.7431,
  "timezone": "America/Chicago",
  "temperatureUnit": "°C",
  "current": {"temperature": 20.6, "humidity": 55.1, "windSpeed": 2.3, "conditions": "clear sky"},
  "daily": [
    {"date": "2026-10-22", "tempMin": 20.3, "tempMax": 28.2, "precipitationMm": 0, "maxWindSpeed": 4.1, "avgHumidity": 41, "conditions": "clear sky"}
  ],
  "alerts": [],
  "source": "MET Norway (api.met.no), CC BY 4.0"
}
```

### How much does it cost?

Pay-per-event: a small fee **per location** forecast, plus a tiny per-run start fee, with no subscription and no separate platform usage costs. For example, 1,000 location forecasts cost about $2. Locations that can't be found are **not charged**. Set **Maximum cost per run** to cap your spending.

### Good to know

- Coordinates use local UTC dates; city names use the city's own time zone for daily totals.
- Weather alerts are only available for U.S. locations (National Weather Service).

### Use it through the API, integrations or AI agents

Run it from the Apify API, on a schedule, or connect it to Make, Zapier, n8n, Google Sheets or Slack. AI agents can call it through the Apify MCP server.

### FAQ

**Is it legal?** Yes. MET Norway's forecast data is free to use, including commercially, with attribution (each row includes the source). National Weather Service data is public domain.

**How accurate is it?** It's the same model data used by yr.no, one of Europe's most popular weather services, updated several times a day.

**Found a bug or need a feature?** Open an issue. We usually reply within 24 hours.

### More tools from this developer

- [SAM.gov Contract Opportunities Finder & Bid Alerts](https://apify.com/pankajbhatia/sam-gov-contract-opportunities): federal contract opportunities and bid alerts
- [Sitemap & URL Extractor](https://apify.com/pankajbhatia/sitemap-url-extractor): get every URL of a website from its sitemaps
- [Website to Markdown for AI & RAG](https://apify.com/pankajbhatia/website-to-markdown): turn web pages into clean Markdown for LLMs
- [Tech Stack Detector](https://apify.com/pankajbhatia/tech-stack-detector): find what any website is built with
- [Apple App Store Reviews Scraper](https://apify.com/pankajbhatia/app-store-reviews): App Store reviews and ratings for any app
- [ATS Jobs Scraper](https://apify.com/pankajbhatia/ats-jobs-scraper): jobs from Greenhouse, Lever, Ashby, Workable and more
- [Website Screenshot](https://apify.com/pankajbhatia/website-screenshot): full-page, mobile and PDF screenshots in bulk
- [PDF to Text & Markdown Extractor](https://apify.com/pankajbhatia/pdf-text-extractor): extract text from PDFs for AI and search
- [Domain WHOIS, DNS & SSL Checker](https://apify.com/pankajbhatia/domain-whois-dns-ssl-checker): bulk domain, DNS, email security and SSL checks
- [SEO Meta Tags & On-Page Audit](https://apify.com/pankajbhatia/seo-meta-tags-checker): bulk on-page SEO audit with fixes
- [Bulk URL Status & Broken Link Checker](https://apify.com/pankajbhatia/url-status-broken-link-checker): status codes, redirect chains and broken links
- [RSS & Atom Feed Reader](https://apify.com/pankajbhatia/rss-feed-reader): merge and filter many news feeds
- [Hacker News Scraper](https://apify.com/pankajbhatia/hacker-news-scraper): HN stories, comments and Who is hiring jobs
- [Academic Paper Search](https://apify.com/pankajbhatia/academic-paper-search): papers from Crossref, arXiv and PubMed
- [SEC EDGAR Filings & Financials](https://apify.com/pankajbhatia/sec-edgar-filings-financials): 10-K, 10-Q, 8-K filings and company financials
- [Apple Podcasts Scraper](https://apify.com/pankajbhatia/apple-podcasts-scraper): podcast details and full episode lists
- [App Store Top Charts & App Search](https://apify.com/pankajbhatia/app-store-top-charts): top free, paid and grossing app rankings
- [ClinicalTrials.gov Scraper](https://apify.com/pankajbhatia/clinicaltrials-gov-scraper): search and export clinical trials
- [USAspending Federal Awards](https://apify.com/pankajbhatia/usaspending-federal-awards): who won federal contracts and grants
- [Grants.gov Opportunities](https://apify.com/pankajbhatia/grants-gov-opportunities): open and forecasted federal grants
- [EU TED Tenders Scraper](https://apify.com/pankajbhatia/ted-eu-tenders-scraper): European public procurement notices
- [Bulk Domain Availability Checker](https://apify.com/pankajbhatia/bulk-domain-availability-checker): check which domains are free to register
- [Product Recalls Scraper](https://apify.com/pankajbhatia/product-recalls-fda-cpsc-nhtsa): FDA, CPSC and NHTSA vehicle recalls
- [Federal Register Scraper](https://apify.com/pankajbhatia/federal-register-documents): U.S. rules, notices and comment deadlines

# Actor input Schema

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

City names like "London, UK", "Austin, TX", "Tokyo", or coordinates like "40.71, -74.00".

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

How many days to include (1-9).

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

Metric (°C) or imperial (°F) temperatures. Wind is always m/s and rain mm.

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

Add hour-by-hour data (about 60 hours ahead) to each location.

## `includeUsAlerts` (type: `boolean`):

Add active National Weather Service alerts for U.S. locations.

## Actor input object example

```json
{
  "locations": [
    "London, UK",
    "New York, US",
    "Tokyo"
  ],
  "days": 7,
  "units": "metric",
  "includeHourly": false,
  "includeUsAlerts": true
}
```

# Actor output Schema

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

One row per location with current conditions and a daily forecast.

# 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, UK",
        "New York, US",
        "Tokyo"
    ]
};

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

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

```

## MCP server setup

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

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/mOAMavNRiFbi0hfRt/builds/d5uO9bj7hdhp93VSf/openapi.json
