# NOAA Space Weather Prediction Center Scraper (`plainkitbin/noaa-space-weather-data`) Actor

Fetch planetary K-index geomagnetic activity observations from NOAA Space Weather Prediction Center services as structured JSON. Not affiliated with NOAA Space Weather Prediction Center (SWPC).

- **URL**: https://apify.com/plainkitbin/noaa-space-weather-data.md
- **Developed by:** [PlainKit bin](https://apify.com/plainkitbin) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.87 / 1,000 noaa swpc space weather records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## NOAA Space Weather Prediction Center (SWPC) Scraper

NOAA Space Weather Prediction Center (SWPC) Scraper enables developers, researchers, aerospace engineers, and data analysts to extract planetary K-index geomagnetic activity measurements and space weather observations from NOAA SWPC services as clean structured JSON data. This scraper is not affiliated with NOAA Space Weather Prediction Center (SWPC).

### Introduction

Geomagnetic activity and solar wind disruptions directly influence satellite communications, high-frequency radio propagation, power grids, auroral visibility, and orbital systems. The Space Weather Prediction Center (SWPC), a division of the National Weather Service under NOAA, monitors space environmental parameters and publishes planetary K-index observation series.

This Actor gathers observation data from public endpoints at `services.swpc.noaa.gov` to provide:

- Observation timestamp (`time_tag`): ISO formatted UTC observation timestamps.
- Planetary K-index integer level (`kp_index`): Disturbance index rating geomagnetic storm impact.
- Estimated K-index value (`estimated_kp`): Numerical estimate of planetary geomagnetic disturbance.
- Formatted Kp text code (`kp`): Standardized disturbance code representation.

Output rows deliver literal data fields extracted directly from the remote JSON response feeds without unwarranted transformations or invasive alterations.

### Tutorial

#### Quick start

1. Optionally enter a `date_from` parameter (such as `2026-11-14`) to filter observations to those recorded after a specific date.
2. Optionally specify a `search` string to filter records by matching timestamp fragments or Kp label codes.
3. Configure `max_items` to set the maximum quantity of observation rows you want to retrieve.
4. Run the Actor and download your dataset records in JSON, CSV, or Excel format for integration into scientific workflows, alerting pipelines, or astronomy dashboards.

### Pricing

This Actor operates under the Apify Pay-Per-Event pricing structure. You pay only for successfully retrieved and pushed space weather observation records.

- Event name: `noaa-space-weather-record`
- Pricing tiers:
  - FREE plan: $0.00125 per record
  - BRONZE plan: $0.001125 per record
  - SILVER plan: $0.001 per record
  - GOLD plan: $0.000871 per record
  - PLATINUM plan: $0.000871 per record
  - DIAMOND plan: $0.000834 per record

Each space weather record is pushed first to your default dataset and charged immediately following successful delivery. If a charge is refused or your spending limit is reached, execution halts and the current item remains delivered without an additional charge. If a network failure occurs, nothing is charged or pushed. Resumed or restarted runs check previously stored timestamps to prevent duplicate rows or duplicate charges.

### Input and output examples

#### Input example

```json
{
  "date_from": "2026-11-14",
  "search": "0",
  "max_items": 3
}
```

#### Output example

```json
{
  "estimated_kp": 0.33,
  "kp": "0P",
  "kp_index": 0,
  "time_tag": "2026-11-15T00:43:00"
}
```

### Actor recommendations

To complement your space observation data and scientific monitoring pipelines, consider exploring:

- `openalex-works`: Search and harvest academic literature, astrophysical publications, and solar physics papers.
- `arxiv-papers`: Monitor preprints across astrophysics, solar-terrestrial physics, and space weather modelling.
- `urlscan-domain-search`: Monitor website infrastructure and scan domain indicators for online telemetry hubs.

### FAQ and support

#### What data fields does this Actor output?

Each row provides four literal fields from the planetary K-index endpoint: `time_tag` (UTC timestamp), `kp_index` (integer level), `estimated_kp` (floating-point index), and `kp` (alphanumeric code).

#### How does the Actor handle access refusals?

If the remote service responds with access restriction codes (such as HTTP 401, 403, or 429), the Actor stops immediately and outputs a single status record indicating access refusal without charging any event fee.

#### How are duplicate records prevented on restart?

The runner inspects existing dataset entries upon startup. If timestamps were already delivered in a previous attempt, those records are skipped during resumption to ensure zero double pushes and zero duplicate charges.

#### How can I get support or request features?

For assistance, bug reports, or enhancement inquiries, please contact our support team through the Apify platform or reach us by email at support@example.com.

# Actor input Schema

## `date_from` (type: `string`):

Filter observations on or after this ISO date or time prefix (e.g. 2026-11-14).

## `search` (type: `string`):

Optional filter substring matching time tag or Kp index label.

## `max_items` (type: `integer`):

Maximum number of space weather data records to deliver.

## Actor input object example

```json
{
  "date_from": "",
  "search": "",
  "max_items": 5
}
```

# Actor output Schema

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

Dataset items produced by this run.

# 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 = {
    "date_from": "",
    "search": "",
    "max_items": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainkitbin/noaa-space-weather-data").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 = {
    "date_from": "",
    "search": "",
    "max_items": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("plainkitbin/noaa-space-weather-data").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 '{
  "date_from": "",
  "search": "",
  "max_items": 5
}' |
apify call plainkitbin/noaa-space-weather-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plainkitbin/noaa-space-weather-data"
        }
    }
}
```

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/HnoR0oWdPolI0ounV/builds/WfF8bL1jFGLbEc8tr/openapi.json
