Zum Inhalt springen
GET /v1/kp

Planetary K-index (latest + recent series)

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/spaceweather-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/spaceweather-api/v1/kp" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/spaceweather-api/v1/kp", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/spaceweather-api/v1/kp");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/spaceweather-api/v1/kp",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Planetary K-index (0-9) in 3-hour intervals; higher = stronger geomagnetic activity.",
        "latest": {
            "kp": 3.67,
            "time": "2026-05-31T00:00:00",
            "level": "Unsettled",
            "g_scale": null
        },
        "series": [
            {
                "kp": 3.33,
                "time": "2026-05-29T15:00:00"
            },
            {
                "kp": 4,
                "time": "2026-05-29T18:00:00"
            },
            {
                "kp": 3.33,
                "time": "2026-05-29T21:00:00"
            },
            {
                "kp": 3.33,
                "time": "2026-05-30T00:00:00"
            },
            {
                "kp": 3,
                "time": "2026-05-30T03:00:00"
            },
            {
                "kp": 1.33,
                "time": "2026-05-30T06:00:00"
            },
            {
                "kp": 1.67,
                "time": "2026-05-30T09:00:00"
            },
            {
                "kp": 2,
                "time": "2026-05-30T12:00:00"
            },
            {
                "kp": 2.33,
                "time": "2026-05-30T15:00:00"
            },
            {
                "kp": 4.33,
                "time": "2026-05-30T18:00:00"
            },
            {
                "kp": 4,
                "time": "2026-05-30T21:00:00"
            },
            {
                "kp": 3.67,
                "time": "2026-05-31T00:00:00"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-05-31T05:48:00.941Z",
        "request_id": "563135d3-05f7-4fad-a1bd-52dacd5f05a7"
    },
    "status": "ok",
    "message": "K-index retrieved",
    "success": true
}