> 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/kp-index.md).

# Planetary Kp index in Duaer

In Duaer: NOAA planetary Kp index in three-hour steps: recent observed geomagnetic activity or the three-day forecast, with storm level. One successful search uses 1 credit.
## What you get

Duaer Planetary Kp index returns the Kp index from 0 to 9 in three-hour steps. Kp 5 and above is a geomagnetic storm, rated G1 to G5.

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

## When to use it

- Judge aurora chances from the forecast.
- Check whether a recent storm reached G3.

## When not to use it

- Alert texts. Use [Space weather alerts](/getting-started/space-weather.md).
- Solar energy at a site. Use [Solar and climate (NASA POWER)](/getting-started/nasa-power.md).

## Search on the canvas

1. Open the node creator and pick Duaer Data → Planetary Kp index.
2. Fill View (recent or forecast).
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/kp-index?view=forecast
- 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-kp-index
description: >-
  Duaer Planetary Kp index. NOAA planetary Kp index in three-hour steps: recent observed geomagnetic activity or the three-day forecast, with storm level.
  One successful search uses 1 Duaer credit.
---

# Duaer Planetary Kp index

Duaer Planetary Kp index returns the Kp index from 0 to 9 in three-hour steps. Kp 5 and above is a geomagnetic storm, rated G1 to G5.

## When to use

- Judge aurora chances from the forecast.
- Check whether a recent storm reached G3.

## When not to use

- Alert texts. Use https://skills.duaer.com/space-weather.md.
- Solar energy at a site. Use https://skills.duaer.com/nasa-power.md.

## Call

`GET https://api.duaer.com/v1/data/kp-index?view=forecast`

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 `view`.

- `view` — `recent` (observed, newest first) or `forecast` (next three days).
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/kp-index?view=forecast` — the three-day Kp forecast.
- `GET https://api.duaer.com/v1/data/kp-index?view=recent&limit=8` — the last 24 hours.

## Result

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

- `timeUtc`, `kp` — start of the three-hour step and the index.
- `status` — observed, estimated, or predicted.
- `stormScale` — G1 to G5 when Kp is 5 or more.

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/space-weather.md — Duaer Space weather alerts
- https://skills.duaer.com/close-approaches.md — Duaer Asteroid close approaches

```
## Questions

### How many credits does a Planetary Kp index search use in Duaer?

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

### What Kp counts as a storm in Duaer Planetary Kp index?

Kp 5 and above is a geomagnetic storm, rated G1 to G5. Duaer Planetary Kp index gives one value per three hours.

## Related

- [Space weather alerts in Duaer](https://doc.duaer.com/getting-started/space-weather.md)
- [Asteroid close approaches in Duaer](https://doc.duaer.com/getting-started/close-approaches.md)

