# NWS Weather Scraper: Observations & Daily Climate Reports (`latamdatatools/nws-weather-climate-reports`) Actor

US weather from the National Weather Service: hourly station observations, official daily climate reports (CLI max/min temperature, precipitation, snow) used to settle weather markets, monthly CF6 tables, forecasts and active alerts. Only new data mode.

- **URL**: https://apify.com/latamdatatools/nws-weather-climate-reports.md
- **Developed by:** [Julian Genuario](https://apify.com/latamdatatools) (community)
- **Categories:** Developer tools, Other
- **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 weather observations

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

## NWS Weather Scraper: Observations & Daily Climate Reports

Get **official US weather data from the National Weather Service** (api.weather.gov) as clean rows:

- **Hourly observations** of any US station: temperature (°F and °C), dew point, humidity, wind and gusts, pressure, visibility, precipitation of the last hour, 24-hour max/min and the raw **METAR**.
- **Daily climate reports (CLI)**: the official daily **maximum and minimum temperature** with the time they happened, precipitation, snowfall, degree days, wind, humidity, normals, records and departures. These reports are the source used to **settle daily temperature contracts in weather prediction markets**.
- **Monthly CF6 tables**: one row per day of the current month (max, min, average, departure, precipitation, snow, wind).
- **Forecasts** (7-day or hourly) for stations or any lat/lon point.
- **Active alerts** (warnings, watches, advisories) for states or forecast zones.

Turn on **only new** and schedule it: every run returns only data you have not received yet. Each daily report is marked `preliminary` (afternoon issuance, "valid as of 4 PM") or `final` (next-morning issuance), and a final report that replaces a preliminary one is delivered again.

### What does NWS Weather Scraper do?

NWS Weather Scraper gets US weather data from the National Weather Service: hourly station observations, official daily climate reports (CLI: max / min temperature, precipitation, snow) used to settle weather markets, monthly CF6 tables, forecasts and active weather alerts, with an only-new-data mode.

### How to use NWS Weather Scraper

1. Click **Try for free** on this page (a free Apify account is enough to start).
2. Fill in the input (see the examples below) or keep the prefilled example.
3. Click **Start** and wait for the run to finish.
4. Download the results from the **Output** tab as JSON, CSV, Excel or HTML, or read them with the Apify API.
5. Optional: create a **Schedule** to run it daily or weekly, and connect a webhook or an integration (Make, Zapier, n8n, Slack).

### Who uses it

- **Weather-market traders**: watch the CLI max/min of Central Park (NYC), Chicago Midway (MDW), Miami (MIA), Austin (AUS), Los Angeles (LAX), Denver (DEN), Philadelphia (PHL)... and the hourly observations during the day.
- **Energy and utilities**: degree days and temperatures for demand models.
- **Agriculture, logistics, insurance**: precipitation, snow, wind and alerts by location.
- **Data teams**: a reliable daily feed into Sheets, BigQuery or a database without parsing NWS text products.

### Input example

```json
{
  "stations": ["KNYC", "KMDW", "KMIA", "KAUS", "KLAX"],
  "dataTypes": ["observations", "climate"],
  "hoursBack": 24,
  "daysBack": 3,
  "latestPerDay": true,
  "onlyNew": true,
  "alertName": "markets-hourly"
}
```

Other options: `climateLocations` (3-letter report codes when they differ from the station), `points` (`"40.7829,-73.9654"`) and `hourlyForecast` for forecasts, `alertAreas` (`"NY"`, `"TX"`, `"NYZ072"`) for alerts, `includeRawText` to keep the original report text, stations from a dataset or CSV.

### Output

Every row has a `dataType`: `observation`, `climate-report`, `cf6-day`, `forecast` or `alert`.

Daily climate report:

```json
{
  "dataType": "climate-report",
  "location": "NYC",
  "stationName": "CENTRAL PARK NY",
  "reportDate": "2026-10-25",
  "reportType": "final",
  "validAsOfLocal": null,
  "maxTempF": 64,
  "maxTempTime": "3:19 PM",
  "minTempF": 43,
  "minTempTime": "6:59 AM",
  "avgTempF": 54,
  "maxTempNormalF": 61,
  "minTempNormalF": 48,
  "maxTempRecordF": 79,
  "maxTempRecordYear": 1963,
  "newRecord": false,
  "precipitationIn": 0,
  "precipitationTrace": false,
  "precipitationMonthToDateIn": 2.22,
  "snowfallIn": 0,
  "heatingDegreeDays": 11,
  "coolingDegreeDays": 0,
  "highestWindMph": 7,
  "highestGustMph": 11,
  "issuedAt": "2026-10-26T06:36:00+00:00",
  "issuingOffice": "KOKX",
  "productUrl": "https://api.weather.gov/products/d31cef35-43ff-401a-988a-7b39f386e7f7"
}
```

Observation:

```json
{
  "dataType": "observation",
  "station": "KNYC",
  "stationName": "New York City, Central Park",
  "timestamp": "2026-10-26T20:51:00+00:00",
  "textDescription": "Clear",
  "temperatureF": 68,
  "temperatureC": 20,
  "dewpointF": 39.9,
  "relativeHumidity": 36,
  "windSpeedMph": 3.4,
  "windGustMph": null,
  "pressureHpa": 1021,
  "precipitationLastHourIn": null,
  "rawMetar": "KNYC 262051Z AUTO VRB03KT 10SM CLR 20/04 A3015 RMK AO2 SLP200 T02000044 56015 $"
}
```

Times in climate reports are **local standard time**, exactly as printed by the NWS. Trace amounts are `0` with `precipitationTrace: true`. Missing values (`MM` in the report) are `null`.

### Pricing

Pay per event:

- **Observation** (also each CF6 day): **USD 1 per 1,000** rows.
- **Daily climate report**: **USD 3 per 1,000** reports.
- **Forecast period** and **alert**: USD 1 per 1,000.
- **USD 0.002 per run** (start).

Unknown stations, reports that cannot be parsed and data skipped by "only new" are free. Your "max charge per run" is respected.

### Limits and notes

- The NWS API keeps about **7 days of observations** and roughly **the last 1-2 weeks of climate reports**; schedule the Actor to build your own history.
- Observation values are what the station reported (some fields are often `null`, e.g. gusts in calm weather). The official daily max/min is the CLI report, not the max of the hourly observations.
- Station IDs are ICAO codes (KNYC, KMDW...). Most CLI locations are the same code without the `K` (KNYC → NYC); add `climateLocations` when they differ.
- This Actor reads public NWS data only. It does not use or redistribute any prediction-market data.

### Data source

Data from the US National Weather Service ([api.weather.gov](https://www.weather.gov/documentation/services-web-api)), a public-domain US government work. Not affiliated with or endorsed by NOAA/NWS.

### Cost examples

Prices at the current pay-per-event rate: USD 0.002 per run, USD 1.00 per 1,000 observations (also each CF6 day), USD 3.00 per 1,000 daily climate reports and USD 1.00 per 1,000 forecast periods or alerts (unknown stations, unparseable reports and data skipped in only-new mode are free). You can set a maximum charge per run in the run options.

| Job | Approximate cost |
|---|---|
| Test run: KNYC, 6 hours of observations + 2 days of climate reports (measured: 3 observations + 2 reports, 5 s) | about $0.011 |
| Hourly monitor of 5 stations in only-new mode (~5 new observations) | about $0.007 per run (~$5 per month) |
| Monthly CF6 table for 10 stations (~300 days) | about $0.30 |
| Daily climate reports for 20 stations | about $0.062 per run |

### Use it from your code, an integration or an AI agent

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("latamdatatools/nws-weather-climate-reports").call(run_input={
  "stations": [
    "KNYC",
    "KMDW",
    "KMIA"
  ],
  "dataTypes": [
    "observations",
    "climate"
  ],
  "hoursBack": 24,
  "daysBack": 3,
  "onlyNew": True,
  "alertName": "markets-hourly"
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["dataType"], item.get("station") or item.get("location"), item.get("timestamp") or item.get("reportDate"))
```

**JavaScript / Node.js** (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('latamdatatools/nws-weather-climate-reports').call({
  stations: [
    'KNYC',
    'KMDW',
    'KMIA'
  ],
  dataTypes: [
    'observations',
    'climate'
  ],
  hoursBack: 24,
  daysBack: 3,
  onlyNew: true,
  alertName: 'markets-hourly'
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((i) => [i.dataType, i.station ?? i.location, i.timestamp ?? i.reportDate]));
```

**No code:**

- **Schedules:** save your input as a Task and run it every hour or every morning from Apify Console (Schedules).
- **Integrations:** send the results to Google Sheets, Slack, email, Make, Zapier, n8n or Airbyte from the Integrations tab, or call your own webhook when a run finishes.
- **AI agents:** add it as a tool in Claude, Cursor, VS Code and other MCP clients through the Apify MCP server (`https://mcp.apify.com`), so the agent can read official US weather observations, climate reports and forecasts.

### FAQ

**Can I call it from my own code or from an AI agent?** Yes. Start runs and fetch results with the Apify API or the JavaScript / Python clients, or use it as a tool from Claude, Cursor and other MCP clients through the Apify MCP server (`mcp.apify.com`).

**Can I run it automatically?** Yes. Create a Schedule in Apify Console (for example every morning) and add a webhook or an integration to get the results where you need them.

**Which export formats are available?** JSON, JSONL, CSV, Excel (XLSX), XML, RSS and HTML table, from the Output tab or the API.

**What does it cost?** See the Pricing section above. You only pay for the events listed there.

# Actor input Schema

## `stations` (type: `array`):

US observation stations, one per line: KNYC (Central Park), KMDW (Chicago Midway), KMIA, KAUS, KLAX, KDEN, KPHL... The daily climate report location is derived automatically (KNYC -> NYC).

## `dataTypes` (type: `array`):

Pick one or more.

## `hoursBack` (type: `integer`):

1 to 168 (the API keeps about 7 days).

## `daysBack` (type: `integer`):

Daily climate reports of today and the previous N days (the API keeps roughly the last 1-2 weeks).

## `latestPerDay` (type: `boolean`):

The NWS issues a preliminary report in the afternoon and the final one the next morning (plus corrections). On = one row per date with the most recent version. Off = every issuance.

## `climateLocations` (type: `array`):

3-letter CLI/CF6 location codes not covered by the stations above (e.g. NYC, MDW, MIA, AUS, LAX, DEN, PHL).

## `points` (type: `array`):

For forecasts at any US location, e.g. 40.7829,-73.9654.

## `hourlyForecast` (type: `boolean`):

Off = 7-day forecast in 12-hour periods. On = hourly forecast (156 periods).

## `alertAreas` (type: `array`):

State codes (NY, TX, FL...) or forecast zones (NYZ072).

## `datasetId` (type: `string`):

Optional Apify dataset ID with a station field.

## `csvUrl` (type: `string`):

Optional public CSV or Google Sheets link with a station column.

## `stationField` (type: `string`):

Field name in the dataset or CSV.

## `includeRawText` (type: `boolean`):

Adds the full original text of each daily climate report.

## `onlyNew` (type: `boolean`):

Return only observations, reports, CF6 days and alerts not delivered in earlier runs with the same alert name. A final climate report that replaces a preliminary one counts as new. Forecasts are always returned.

## `alertName` (type: `string`):

Separate memory per scheduled task.

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

Total cap of rows returned (and charged).

## Actor input object example

```json
{
  "stations": [
    "KNYC",
    "KMIA"
  ],
  "dataTypes": [
    "observations",
    "climate"
  ],
  "hoursBack": 24,
  "daysBack": 3,
  "latestPerDay": true,
  "hourlyForecast": false,
  "stationField": "station",
  "includeRawText": false,
  "onlyNew": false,
  "alertName": "default",
  "maxItems": 10000
}
```

# Actor output Schema

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

No description

## `runSummary` (type: `string`):

No description

# 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 = {
    "stations": [
        "KNYC",
        "KMIA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("latamdatatools/nws-weather-climate-reports").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 = { "stations": [
        "KNYC",
        "KMIA",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("latamdatatools/nws-weather-climate-reports").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 '{
  "stations": [
    "KNYC",
    "KMIA"
  ]
}' |
apify call latamdatatools/nws-weather-climate-reports --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,latamdatatools/nws-weather-climate-reports"
        }
    }
}
```

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/OdAwEb5At4Zekr76d/builds/L83qAdsEwI0mIXnSd/openapi.json
