NOAA Space Weather Prediction Center API
Returns space weather scales, Kp index, alerts, GOES X-ray and proton flux, and solar cycle predictions.
View as Markdown| GET | /swpc/scales | The NOAA space weather scales now and for the next days: radio, radiation and geomagnetic. |
| GET | /swpc/kpIndex | The planetary K index in three-hour steps, newest first: a measure of geomagnetic activity. |
| GET | /swpc/alerts | The latest space weather product messages, newest first. |
| GET | /swpc/xrays | Recent GOES X-ray flux (0.1 to 0.8 nm, the flare channel) with its flare class, newest first. |
| GET | /swpc/protons | Recent GOES integral proton flux for one energy threshold, newest first; high values signal a solar radiation storm. |
| GET | /swpc/solarCycle | The predicted monthly sunspot number and 10.7 cm flux of the solar cycle, earliest month first, with low and high bands. |
| GET | /swpc/dst | The recent Dst index, a minute-by-minute measure of the ring current; large negative values mean a geomagnetic storm. |
| GET | /swpc/aurora | The chance of seeing the aurora at a point, from NOAA's OVATION model: the nearest one-degree grid cell. |
| GET | /swpc/summary | Space weather now: solar wind speed, interplanetary magnetic field and the 10.7 cm solar radio flux. |
| GET | /swpc/kpForecast | The predicted planetary K index in three-hour steps for the coming days, earliest first: a forecast of geomagnetic storms. |
| GET | /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. |
| GET | /swpc/activeRegions | The sunspot active regions NOAA tracks, newest observation first, with their size, magnetic class and flare odds. |
scales
/v1/swpc/scalesThe NOAA space weather scales now and for the next days: radio, radiation and geomagnetic.
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
date | string |
day | integer (int64) |
geomagnetic | Scale |
level | integer (int64) |
text | string |
radioBlackout | Scale |
level | integer (int64) |
text | string |
solarRadiation | Scale |
level | integer (int64) |
text | string |
curl "https://api.hoshime.com/v1/swpc/scales" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swpc/scales", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swpc/scales", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swpc/kpIndexThe planetary K index in three-hour steps, newest first: a measure of geomagnetic activity.
Parameters
limitinteger | Items per page, 1 to 100. default 24 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
aRunning | integer (int64) |
kp | number (double) |
observedAt | string |
stationCount | integer (int64) |
curl "https://api.hoshime.com/v1/swpc/kpIndex" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swpc/kpIndex", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swpc/kpIndex", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swpc/alertsThe latest space weather product messages, newest first.
Parameters
limitinteger | Items per page, 1 to 100. default 10 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
issuedAt | string |
message | string |
productId | string |
curl "https://api.hoshime.com/v1/swpc/alerts" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swpc/alerts", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swpc/alerts", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swpc/xraysRecent GOES X-ray flux (0.1 to 0.8 nm, the flare channel) with its flare class, newest first.
Parameters
limitinteger | Items per page, 1 to 360. default 30e.g. 5 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
flareClass | string |
fluxWm2 | number (double) |
observedAt | string |
satellite | integer (int64) |
curl "https://api.hoshime.com/v1/swpc/xrays?limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swpc/xrays?limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swpc/xrays?limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swpc/protonsRecent GOES integral proton flux for one energy threshold, newest first; high values signal a solar radiation storm.
Parameters
energystring | Energy threshold of the protons, such as >=10 MeV.>=1 MeV>=5 MeV>=10 MeV>=30 MeV>=50 MeV>=60 MeV>=100 MeV>=500 MeVdefault >=10 MeVe.g. >=10 MeV |
limitinteger | Items per page, 1 to 300. default 30e.g. 5 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
energy | string |
fluxPfu | number (double) |
observedAt | string |
satellite | integer (int64) |
curl "https://api.hoshime.com/v1/swpc/protons?energy=%3E%3D10+MeV&limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swpc/protons?energy=%3E%3D10+MeV&limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swpc/protons?energy=%3E%3D10+MeV&limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swpc/solarCycleThe predicted monthly sunspot number and 10.7 cm flux of the solar cycle, earliest month first, with low and high bands.
Parameters
limitinteger | Items per page, 1 to 200. default 12e.g. 12 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
highSsn | number (double) |
lowSsn | number (double) |
month | string |
predictedF107 | number (double) |
predictedSsn | number (double) |
curl "https://api.hoshime.com/v1/swpc/solarCycle?limit=12" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swpc/solarCycle?limit=12", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swpc/solarCycle?limit=12", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swpc/dstThe recent Dst index, a minute-by-minute measure of the ring current; large negative values mean a geomagnetic storm.
Parameters
limitinteger | Items per page, 1 to 600. default 60e.g. 5 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
dstNt | number (double) |
observedAt | string |
curl "https://api.hoshime.com/v1/swpc/dst?limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swpc/dst?limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swpc/dst?limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swpc/auroraThe chance of seeing the aurora at a point, from NOAA's OVATION model: the nearest one-degree grid cell.
Parameters
latstring required | Latitude, -90 to 90. e.g. -6.2 |
lonstring required | Longitude, -180 to 180. e.g. 106.8 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
forecastAt | string |
latitude | number (double) |
longitude | number (double) |
observedAt | string |
probability | integer (int64) |
curl "https://api.hoshime.com/v1/swpc/aurora?lat=-6.2&lon=106.8" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swpc/aurora?lat=-6.2&lon=106.8", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swpc/aurora?lat=-6.2&lon=106.8", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swpc/summarySpace weather now: solar wind speed, interplanetary magnetic field and the 10.7 cm solar radio flux.
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
btNt | number (double) |
bzNt | number (double) |
observedAt | string |
solarFlux10cm | number (double) |
solarWindSpeedKms | number (double) |
curl "https://api.hoshime.com/v1/swpc/summary" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swpc/summary", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swpc/summary", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swpc/kpForecastThe predicted planetary K index in three-hour steps for the coming days, earliest first: a forecast of geomagnetic storms.
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
kp | number (double) |
startsAt | string |
status | string |
curl "https://api.hoshime.com/v1/swpc/kpForecast" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swpc/kpForecast", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swpc/kpForecast", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/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.
Parameters
limitinteger | Items per page, 1 to 31. default 7e.g. 3 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
cFlare | any[] |
date | string |
mFlare | any[] |
polarCapAbsorption | string |
protonEvent | any[] |
xFlare | any[] |
curl "https://api.hoshime.com/v1/swpc/flareOutlook?limit=3" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swpc/flareOutlook?limit=3", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swpc/flareOutlook?limit=3", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swpc/activeRegionsThe sunspot active regions NOAA tracks, newest observation first, with their size, magnetic class and flare odds.
Parameters
limitinteger | Items per page, 1 to 200. default 20e.g. 5 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
area | integer (int64) |
cFlare | integer (int64) |
location | string |
mFlare | integer (int64) |
magneticClass | string |
number | integer (int64) |
numberSpots | integer (int64) |
observedOn | string |
protonEvent | integer (int64) |
spotClass | string |
xFlare | integer (int64) |
curl "https://api.hoshime.com/v1/swpc/activeRegions?limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swpc/activeRegions?limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swpc/activeRegions?limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }