Free JSON API documentation for solar activity and space weather, including the latest report, 30-day and 90-day hourly series, Kp, solar wind and IMF.
Hourly aggregated solar wind, interplanetary magnetic field, geomagnetic indices, solar radio flux, X-ray and energetic particle series. The rolling window contains up to 720 hourly slots per variable.
Rolling hourly series for 11 selectable space weather parameters. Each parameter is requested separately, with up to 2,160 hourly slots, a time origin and a one-hour step when data are available.
import requests
r = requests.get("https://spaceweather.ir/ParamData.ashx",
params={"key": "wind"}, timeout=30)
r.raise_for_status()
data = r.json()
if data.get("error") or data.get("nodata"):
raise ValueError("Data unavailable")
print(data["values"])
Illustrative response (shortened; not observed data)
Series are hourly averages of available values; both series APIs may carry the previous value forward for up to four hours. These are not necessarily new observations.
ChartData uses the database clock and has no explicit timestamps. ParamData converts server-local times to Unix milliseconds. Verify the UTC basis with the site operator before research use.
Nulls and empty responses may occur. updated denotes the last non-null slot and may include a carried-forward value. Hourly Kp and F10.7 slots do not imply independent hourly measurements.
Verify X-ray and particle encodings, including the legacy logarithmic proton series, before conversion or use as calibrated raw measurements.
Free access is not an unrestricted redistribution license. Contact the center for reuse permissions and original-source attribution. The API source does not establish upstream provenance for every variable.
Cache responses and avoid unnecessary polling. Cross-origin browser requests may be restricted by CORS.