> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/getting-started/space-weather.md).

# Space weather alerts in Duaer

In Duaer: Alerts, watches, and warnings from the NOAA Space Weather Prediction Center: geomagnetic storms, solar radiation, and radio blackouts. One successful search uses 1 credit.
## What you get

Duaer Space weather alerts lists the messages NOAA SWPC issued recently, newest first, with the headline and full text.

Pick Duaer Data → Space weather alerts in the node creator, or open the [data market](/getting-started/data-market.md). Related: [Planetary Kp index](/getting-started/kp-index.md), [Asteroid close approaches](/getting-started/close-approaches.md).

## When to use it

- Check for geomagnetic storm warnings before an aurora trip.
- Monitor radiation or radio blackout alerts for operations.

## When not to use it

- The Kp index values. Use [Planetary Kp index](/getting-started/kp-index.md).
- Weather on Earth. Use [Weather forecast](/getting-started/weather.md).

## Search on the canvas

1. Open the node creator and pick Duaer Data → Space weather alerts.
2. Fill Last Days (such as 3). Optional: Words (such as geomagnetic).
3. Limit defaults to 10, max 20. Execute.

A search uses 1 credit only when it returns rows. No rows, wrong input, or an upstream failure uses 0.

## Call the API

- GET https://api.duaer.com/v1/data/space-weather?days=3
- Authorization: Bearer <Duaer key>

The call skill below matches Copy skill in the Duaer data market, with parameters, examples, and result fields.

## Call skill

Same text as Copy skill.

```
---
name: duaer-space-weather
description: >-
  Duaer Space weather alerts. Alerts, watches, and warnings from the NOAA Space Weather Prediction Center: geomagnetic storms, solar radiation, and radio blackouts.
  One successful search uses 1 Duaer credit.
---

# Duaer Space weather alerts

Duaer Space weather alerts lists the messages NOAA SWPC issued recently, newest first, with the headline and full text.

## When to use

- Check for geomagnetic storm warnings before an aurora trip.
- Monitor radiation or radio blackout alerts for operations.

## When not to use

- The Kp index values. Use https://skills.duaer.com/kp-index.md.
- Weather on Earth. Use https://skills.duaer.com/weather.md.

## Call

`GET https://api.duaer.com/v1/data/space-weather?days=3`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `days` or `words`.

- `days` — Optional. Alerts issued in the last N days, 1 to 30. Default 3.
- `words` — Optional. Words in the alert, such as geomagnetic or radio blackout.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/space-weather?days=3` — alerts from the last three days.
- `GET https://api.duaer.com/v1/data/space-weather?days=7&words=geomagnetic` — geomagnetic messages this week.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `messageCode`, `productId` — SWPC message code, such as WARK05.
- `headline`, `message` — first alert line and full text.
- `issuedUtc` — issue time.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/kp-index.md — Duaer Planetary Kp index
- https://skills.duaer.com/close-approaches.md — Duaer Asteroid close approaches

```
## Questions

### How many credits does a Space weather alerts search use in Duaer?

One credit when Duaer returns rows. A search with no rows or an error uses 0.

### Where do Duaer Space weather alerts come from?

Duaer Space weather alerts reads recent watches, warnings, and alerts from the NOAA Space Weather Prediction Center (SWPC).

## Related

- [Planetary Kp index in Duaer](https://doc.duaer.com/getting-started/kp-index.md)
- [Asteroid close approaches in Duaer](https://doc.duaer.com/getting-started/close-approaches.md)

