# US Weather Alerts (National Weather Service) (`texxupport/us-weather-alerts-nws`) Actor

- **URL**: https://apify.com/texxupport/us-weather-alerts-nws.md
- **Developed by:** [Kye Williams](https://apify.com/texxupport) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 weather alerts

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

## US Weather Alerts (National Weather Service)

Get active US weather watches, warnings and advisories as clean rows, straight from the official National Weather Service API. Choose states, forecast zones or one exact location, filter by alert type and severity, and run it on a schedule to receive **only alerts you have not seen yet**.

**Who uses it:** insurers and claims teams, roofing and restoration contractors, logistics and fleet managers, event organisers, utilities, local news, and anyone sending their own alerts by email, Slack or webhook.

### What you get

One row per alert:

| Field | Example |
| --- | --- |
| event | Tornado Warning |
| severity / urgency / certainty | Extreme / Immediate / Observed |
| headline | Tornado Warning issued November 4 at 1:05AM CST |
| areaDesc | Travis, TX; Williamson, TX |
| onset, expires | 2026-11-04T01:05:00-06:00 |
| senderName | NWS Austin/San Antonio TX |
| description, instruction | Full text from the weather service |
| sameCodes, ugcCodes | County (FIPS/SAME) and zone codes, for matching to your own locations |
| url | Link to the alert on api.weather.gov |

Most severe alerts come first.

### How to use it

1. Enter states (for example `TX`, `OK`), or zone codes, or one `latitude,longitude`.
2. Optional: list alert types (exact names like `Flash Flood Warning`) and pick severities.
3. Run it, or schedule it every 5 to 15 minutes. With **Only alerts not delivered before** on, each alert arrives once.
4. Connect the dataset to email, Slack, Zapier, Make or a webhook through Apify integrations.

### Cost

Priced per alert delivered. A schedule that finds nothing new delivers nothing and costs only the small platform usage of the run.

### Notes

- Data: the public National Weather Service API (api.weather.gov). It is US government work, free of copyright.
- This Actor is not affiliated with or endorsed by NOAA or the National Weather Service. Do not rely on it as your only source of life-safety warnings.
- Questions or a missing feature? Open an issue on the Actor's page.

# Actor input Schema

## `areas` (type: `array`):

Two-letter codes such as TX, FL or GM (Gulf of Mexico). Leave empty, with no zones or point, for the whole country.

## `zones` (type: `array`):

NWS forecast zone or county codes such as TXZ192 or TXC453.

## `point` (type: `string`):

latitude,longitude, for example 30.2672,-97.7431. Returns alerts covering that spot.

## `events` (type: `array`):

Exact NWS event names such as Tornado Warning, Flash Flood Warning, Winter Storm Watch or Heat Advisory. Leave empty for all.

## `severities` (type: `array`):

Leave as is for all.

## `urgencies` (type: `array`):

Leave as is for all.

## `certainties` (type: `array`):

Leave as is for all.

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

Turn on for scheduled runs, so each alert is delivered once. Off: every active alert on every run.

## `includeUpdates` (type: `boolean`):

The weather service re-issues alerts when they change (extended, upgraded). Turn on to be told about each new version.

## `includeTests` (type: `boolean`):

Include test and exercise messages that the weather service publishes for practice. Leave off for real alerts only.

## `maxResults` (type: `integer`):

Stop after this many alerts have been delivered in one run.

## Actor input object example

```json
{
  "areas": [
    "TX",
    "FL",
    "CA",
    "NY",
    "WA",
    "CO"
  ],
  "severities": [
    "Extreme",
    "Severe",
    "Moderate",
    "Minor",
    "Unknown"
  ],
  "urgencies": [
    "Immediate",
    "Expected",
    "Future",
    "Past",
    "Unknown"
  ],
  "certainties": [
    "Observed",
    "Likely",
    "Possible",
    "Unlikely",
    "Unknown"
  ],
  "onlyNew": false,
  "includeUpdates": false,
  "includeTests": false,
  "maxResults": 200
}
```

# Actor output Schema

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

Every alert delivered by this run, as a table you can download as CSV, Excel or JSON.

# 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 = {
    "areas": [
        "TX",
        "FL",
        "CA",
        "NY",
        "WA",
        "CO"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("texxupport/us-weather-alerts-nws").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 = { "areas": [
        "TX",
        "FL",
        "CA",
        "NY",
        "WA",
        "CO",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("texxupport/us-weather-alerts-nws").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 '{
  "areas": [
    "TX",
    "FL",
    "CA",
    "NY",
    "WA",
    "CO"
  ]
}' |
apify call texxupport/us-weather-alerts-nws --silent --output-dataset

```

## MCP server setup

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

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/cbOUqYaXJrw1Izs7b/builds/fNeVm3q600OrZcJSN/openapi.json
