Skip to content

NOAA Space Weather Prediction Center API

12 endpointsGovernment & Open DataUSsocial:read9 real examples

Returns space weather scales, Kp index, alerts, GOES X-ray and proton flux, and solar cycle predictions.

View as Markdown
GET/swpc/scalesThe NOAA space weather scales now and for the next days: radio, radiation and geomagnetic.
GET/swpc/kpIndexThe planetary K index in three-hour steps, newest first: a measure of geomagnetic activity.
GET/swpc/alertsThe latest space weather product messages, newest first.
GET/swpc/xraysRecent GOES X-ray flux (0.1 to 0.8 nm, the flare channel) with its flare class, newest first.
GET/swpc/protonsRecent GOES integral proton flux for one energy threshold, newest first; high values signal a solar radiation storm.
GET/swpc/solarCycleThe predicted monthly sunspot number and 10.7 cm flux of the solar cycle, earliest month first, with low and high bands.
GET/swpc/dstThe recent Dst index, a minute-by-minute measure of the ring current; large negative values mean a geomagnetic storm.
GET/swpc/auroraThe chance of seeing the aurora at a point, from NOAA's OVATION model: the nearest one-degree grid cell.
GET/swpc/summarySpace weather now: solar wind speed, interplanetary magnetic field and the 10.7 cm solar radio flux.
GET/swpc/kpForecastThe predicted planetary K index in three-hour steps for the coming days, earliest first: a forecast of geomagnetic storms.
GET/swpc/flareOutlookNOAA's daily odds of C, M and X solar flares and of proton events over the three days from each date, newest first.
GET/swpc/activeRegionsThe sunspot active regions NOAA tracks, newest observation first, with their size, magnetic class and flare odds.

scales

GET/v1/swpc/scales

The NOAA space weather scales now and for the next days: radio, radiation and geomagnetic.

scope social:read1 unitcached 5 minpaginated

Parameters

tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
datestring
dayinteger (int64)
geomagneticScale
levelinteger (int64)
textstring
radioBlackoutScale
levelinteger (int64)
textstring
solarRadiationScale
levelinteger (int64)
textstring
curl "https://api.hoshime.com/v1/swpc/scales" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "date": "2026-11-06",
      "day": 0,
      "geomagnetic": {
        "level": 0,
        "text": "none"
      },
      "radioBlackout": {
        "level": 0,
        "text": "none"
      },
      "solarRadiation": {
        "level": 0,
        "text": "none"
      }
    },
    {
      "date": "2026-11-06",
      "day": 1,
      "geomagnetic": {
        "level": 1,
        "text": "minor"
      },
      "radioBlackout": {
        "level": 0,
        "text": ""
      },
      "solarRadiation": {
        "level": 0,
        "text": ""
      }
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "scales",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swpc",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

kpIndex

GET/v1/swpc/kpIndex

The planetary K index in three-hour steps, newest first: a measure of geomagnetic activity.

scope social:read1 unitcached 10 minpaginated

Parameters

limit
integer
Items per page, 1 to 100.
default 24
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

4 fields
aRunninginteger (int64)
kpnumber (double)
observedAtstring
stationCountinteger (int64)
curl "https://api.hoshime.com/v1/swpc/kpIndex" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "aRunning": 7,
      "kp": 2,
      "observedAt": "2026-11-06T15:00:00Z",
      "stationCount": 8
    },
    {
      "aRunning": 7,
      "kp": 2,
      "observedAt": "2026-11-06T12:00:00Z",
      "stationCount": 8
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "kpIndex",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swpc",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

alerts

GET/v1/swpc/alerts

The latest space weather product messages, newest first.

scope social:read1 unitcached 5 minpaginated

Parameters

limit
integer
Items per page, 1 to 100.
default 10
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
issuedAtstring
messagestring
productIdstring
curl "https://api.hoshime.com/v1/swpc/alerts" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "issuedAt": "2026-11-06T10:56:56Z",
      "message": "Space Weather Message Code: ALTEF3\r\nSerial Number: 3768\r\nIssue Time: 2026 Nov 06 1056 UTC\r\n\r\nCONTINUED ALERT: Electron 2MeV Integral Flux ex…",
      "productId": "EF3A"
    },
    {
      "issuedAt": "2026-11-05T18:57:32Z",
      "message": "Space Weather Message Code: ALTTP2\r\nSerial Number: 1533\r\nIssue Time: 2026 Nov 05 1857 UTC\r\n\r\nALERT: Type II Radio Emission \nBegin Time: 2026…",
      "productId": "TIIA"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "alerts",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swpc",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

xrays

GET/v1/swpc/xrays

Recent GOES X-ray flux (0.1 to 0.8 nm, the flare channel) with its flare class, newest first.

scope social:read1 unitcached 1 minpaginated

Parameters

limit
integer
Items per page, 1 to 360.
default 30e.g. 5
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

4 fields
flareClassstring
fluxWm2number (double)
observedAtstring
satelliteinteger (int64)
curl "https://api.hoshime.com/v1/swpc/xrays?limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "flareClass": "B8.9",
      "fluxWm2": 8.939996405388229e-7,
      "observedAt": "2026-11-06T17:59:00Z",
      "satellite": 18
    },
    {
      "flareClass": "B9.0",
      "fluxWm2": 8.975808327704726e-7,
      "observedAt": "2026-11-06T17:58:00Z",
      "satellite": 18
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "xrays",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swpc",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

protons

GET/v1/swpc/protons

Recent GOES integral proton flux for one energy threshold, newest first; high values signal a solar radiation storm.

scope social:read1 unitcached 5 minpaginated

Parameters

energy
string
Energy threshold of the protons, such as >=10 MeV.
>=1 MeV>=5 MeV>=10 MeV>=30 MeV>=50 MeV>=60 MeV>=100 MeV>=500 MeV
default >=10 MeVe.g. >=10 MeV
limit
integer
Items per page, 1 to 300.
default 30e.g. 5
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

4 fields
energystring
fluxPfunumber (double)
observedAtstring
satelliteinteger (int64)
curl "https://api.hoshime.com/v1/swpc/protons?energy=%3E%3D10+MeV&limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "energy": ">=10 MeV",
      "fluxPfu": 0.23349498212337494,
      "observedAt": "2026-11-06T17:50:00Z",
      "satellite": 18
    },
    {
      "energy": ">=10 MeV",
      "fluxPfu": 0.1992509365081787,
      "observedAt": "2026-11-06T17:45:00Z",
      "satellite": 18
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "protons",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swpc",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

solarCycle

GET/v1/swpc/solarCycle

The predicted monthly sunspot number and 10.7 cm flux of the solar cycle, earliest month first, with low and high bands.

scope social:read1 unitcached 24 hpaginated

Parameters

limit
integer
Items per page, 1 to 200.
default 12e.g. 12
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

5 fields
highSsnnumber (double)
lowSsnnumber (double)
monthstring
predictedF107number (double)
predictedSsnnumber (double)
curl "https://api.hoshime.com/v1/swpc/solarCycle?limit=12" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "highSsn": 95.3,
      "lowSsn": 77.6,
      "month": "2026-05",
      "predictedF107": 130.8,
      "predictedSsn": 86.7
    },
    {
      "highSsn": 95.3,
      "lowSsn": 76.8,
      "month": "2026-06",
      "predictedF107": 129.7,
      "predictedSsn": 86.9
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "solarCycle",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swpc",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

dst

GET/v1/swpc/dst

The recent Dst index, a minute-by-minute measure of the ring current; large negative values mean a geomagnetic storm.

scope social:read1 unitcached 1 minpaginated

Parameters

limit
integer
Items per page, 1 to 600.
default 60e.g. 5
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

2 fields
dstNtnumber (double)
observedAtstring
curl "https://api.hoshime.com/v1/swpc/dst?limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "dstNt": -11.1044,
      "observedAt": "2026-11-06T18:52:00Z"
    },
    {
      "dstNt": -10.8553,
      "observedAt": "2026-11-06T18:51:00Z"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "dst",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swpc",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

aurora

GET/v1/swpc/aurora

The chance of seeing the aurora at a point, from NOAA's OVATION model: the nearest one-degree grid cell.

scope social:read1 unitcached 10 min

Parameters

lat
string
required
Latitude, -90 to 90.
e.g. -6.2
lon
string
required
Longitude, -180 to 180.
e.g. 106.8
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

5 fields
forecastAtstring
latitudenumber (double)
longitudenumber (double)
observedAtstring
probabilityinteger (int64)
curl "https://api.hoshime.com/v1/swpc/aurora?lat=-6.2&lon=106.8" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "forecastAt": "2026-11-06T19:04:00Z",
    "latitude": -6,
    "longitude": 107,
    "observedAt": "2026-11-06T17:53:00Z",
    "probability": 0
  },
  "meta": {
    "cached": false,
    "endpoint": "aurora",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "swpc",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

summary

GET/v1/swpc/summary

Space weather now: solar wind speed, interplanetary magnetic field and the 10.7 cm solar radio flux.

scope social:read1 unitcached 5 min

Parameters

tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

5 fields
btNtnumber (double)
bzNtnumber (double)
observedAtstring
solarFlux10cmnumber (double)
solarWindSpeedKmsnumber (double)
curl "https://api.hoshime.com/v1/swpc/summary" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "btNt": 11,
    "bzNt": 4,
    "observedAt": "2026-11-06T17:58:00Z",
    "solarFlux10cm": 124,
    "solarWindSpeedKms": 359
  },
  "meta": {
    "cached": false,
    "endpoint": "summary",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "swpc",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

kpForecast

GET/v1/swpc/kpForecast

The predicted planetary K index in three-hour steps for the coming days, earliest first: a forecast of geomagnetic storms.

scope social:read1 unitcached 1 hpaginated

Parameters

tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
kpnumber (double)
startsAtstring
statusstring
curl "https://api.hoshime.com/v1/swpc/kpForecast" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "kp": 0,
      "startsAt": "2026-11-06T09:41:00Z",
      "status": "…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "kpForecast",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swpc",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

flareOutlook

GET/v1/swpc/flareOutlook

NOAA's daily odds of C, M and X solar flares and of proton events over the three days from each date, newest first.

scope social:read1 unitcached 1 hpaginated

Parameters

limit
integer
Items per page, 1 to 31.
default 7e.g. 3
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

6 fields
cFlareany[]
datestring
mFlareany[]
polarCapAbsorptionstring
protonEventany[]
xFlareany[]
curl "https://api.hoshime.com/v1/swpc/flareOutlook?limit=3" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "cFlare": [
        null
      ],
      "date": "…",
      "mFlare": [
        null
      ],
      "polarCapAbsorption": "…",
      "protonEvent": [
        null
      ],
      "xFlare": [
        null
      ]
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "flareOutlook",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swpc",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

activeRegions

GET/v1/swpc/activeRegions

The sunspot active regions NOAA tracks, newest observation first, with their size, magnetic class and flare odds.

scope social:read1 unitcached 1 hpaginated

Parameters

limit
integer
Items per page, 1 to 200.
default 20e.g. 5
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
areainteger (int64)
cFlareinteger (int64)
locationstring
mFlareinteger (int64)
magneticClassstring
numberinteger (int64)
numberSpotsinteger (int64)
observedOnstring
protonEventinteger (int64)
spotClassstring
xFlareinteger (int64)
curl "https://api.hoshime.com/v1/swpc/activeRegions?limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "area": 0,
      "cFlare": 0,
      "location": "…",
      "mFlare": 0,
      "magneticClass": "…",
      "number": 0,
      "numberSpots": 0,
      "observedOn": "…",
      "protonEvent": 0,
      "spotClass": "…",
      "xFlare": 0
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "activeRegions",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swpc",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open