# Marine Weather Warnings: Live NWS Alerts (`m_ctim/nws-marine-weather-warning-tracker`) Actor

Check for active marine hazard alerts (Small Craft Advisory, Gale Warning, Storm Warning, Coastal Flood, High Surf, and more) from the official NOAA/National Weather Service feed, filtered by US coastal state. For boating operators, ports and shipping, and marine insurance. No key, no proxy.

- **URL**: https://apify.com/m\_ctim/nws-marine-weather-warning-tracker.md
- **Developed by:** [Timothy Kelvin](https://apify.com/m_ctim) (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

## Marine Weather Warning Tracker: NWS Alerts by Area

Check for active marine hazard alerts from the official NOAA/National
Weather Service feed: Small Craft Advisory, Gale Warning, Storm Warning,
Coastal Flood, High Surf, Rip Current, and more, filtered by US coastal
state.

### Who this is for

- **Boating and marine recreation operators** checking active hazard alerts before heading out.
- **Ports and shipping operations** monitoring coastal conditions across multiple areas at once.
- **Marine insurance underwriters** tracking active marine hazard warnings by region.

### Input

| Field | Type | Description |
|---|---|---|
| `areas` | array | Two-letter US coastal state/territory codes, e.g. `["FL", "CA", "HI"]`. Leave empty for all coastal areas nationwide. |
| `eventTypes` | array | Limit to specific alert types (see list below). Leave empty for all of them. |

```json
{
  "areas": ["FL"]
}
```

Alert types supported: Small Craft Advisory, Gale Watch, Gale Warning,
Storm Warning, Hurricane Force Wind Watch, Hurricane Force Wind Warning,
Special Marine Warning, Marine Weather Statement, Coastal Flood Advisory,
Coastal Flood Watch, Coastal Flood Warning, Coastal Flood Statement, High
Surf Advisory, High Surf Warning, Rip Current Statement.

### Output

One record per active alert:

```json
{
  "id": "https://api.weather.gov/alerts/urn:oid:2.49.0.1.840...",
  "event": "Small Craft Advisory",
  "severity": "Moderate",
  "certainty": "Likely",
  "urgency": "Expected",
  "headline": "Small Craft Advisory issued...",
  "description": "...",
  "instruction": "...",
  "areaDesc": "Coastal waters from...",
  "senderName": "NWS Miami FL",
  "effective": "2026-09-19T06:00:00-04:00",
  "expires": "2026-09-19T18:00:00-04:00",
  "nwsUrl": "https://api.weather.gov/alerts/urn:oid:..."
}
```

An empty result means no active marine alerts match your filters right now.

### How it works

Direct calls to `api.weather.gov`, official NOAA/National Weather Service
alerts feed, US federal government data. No proxy, no scraping.

### Related products

- [Tsunami Warning Tracker](https://github.com/timmKal01/noaa-tsunami-warning-tracker) — same alert family, scoped to tsunami-specific events instead of everyday marine hazards
- [US Weather Forecast & Alerts Tracker](https://github.com/timmKal01/us-weather-tracker) — general forecast and alerts for any US location, not scoped to marine hazards
- [Active Hurricane & Tropical Storm Tracker](https://github.com/timmKal01/active-hurricane-tracker) — named tropical cyclones specifically, from the National Hurricane Center

# Actor input Schema

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

Limit to these two-letter US coastal state/territory codes, e.g. "FL", "CA", "HI". Leave empty to check all coastal areas nationwide.

## `eventTypes` (type: `array`):

Limit to these alert types: Small Craft Advisory, Gale Watch, Gale Warning, Storm Warning, Hurricane Force Wind Watch, Hurricane Force Wind Warning, Special Marine Warning, Marine Weather Statement, Coastal Flood Advisory, Coastal Flood Watch, Coastal Flood Warning, Coastal Flood Statement, High Surf Advisory, High Surf Warning, Rip Current Statement. Leave empty to check all of them.

## Actor input object example

```json
{}
```

# Actor output Schema

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("m_ctim/nws-marine-weather-warning-tracker").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("m_ctim/nws-marine-weather-warning-tracker").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 '{}' |
apify call m_ctim/nws-marine-weather-warning-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,m_ctim/nws-marine-weather-warning-tracker"
        }
    }
}
```

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/nT8r96xWPPD1OlRaz/builds/dxfdjCtqgsc5BBYTv/openapi.json
