Discover/spaceweather.com API
live

spaceweather.com APIspaceweather.com

Access real-time solar wind, X-ray flares, sunspot counts, K-index, and near-Earth asteroid encounters from spaceweather.com via a structured API.

Endpoints
4
Updated
3mo ago
Try it

No input parameters required.

api.parse.bot/scraper/78067577-55c2-473b-98ef-f00e6cde97e7/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/78067577-55c2-473b-98ef-f00e6cde97e7/get_current_conditions' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalclick to expand

Get current space weather conditions sidebar data including solar wind speed and density, X-ray flare classifications, sunspot number, planetary K-index, interplanetary magnetic field strength, and thermosphere climate index.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "imf": "object containing btotal_nT (number), bz_nT (number), bz_direction (string), updated (string)",
    "kp_index": "object containing current (object with value, status) and max_24hr (object with value, status)",
    "solar_wind": "object containing speed_km_sec (number), density_protons_cm3 (number), updated (string)",
    "xray_flares": "object containing max_6hr (object with class, time), max_24hr (object with class, time or null), updated (string)",
    "sunspot_number": "integer - current sunspot count",
    "sunspot_number_updated": "string - timestamp of last sunspot update",
    "thermosphere_climate_index": "object containing value_x10_10_W (number), status (string or null), updated (string)"
  },
  "sample": {
    "data": {
      "imf": {
        "bz_nT": 3.23,
        "updated": "Updated: Today at 0600 UT",
        "btotal_nT": 4.83,
        "bz_direction": "north"
      },
      "kp_index": {
        "current": {
          "value": 1.33,
          "status": "quiet"
        },
        "max_24hr": {
          "value": 3,
          "status": "0"
        }
      },
      "solar_wind": {
        "updated": "Updated: Today at 0600 UT",
        "speed_km_sec": 404.3,
        "density_protons_cm3": 4.46
      },
      "xray_flares": {
        "max_6hr": {
          "time": "",
          "class": "C4"
        },
        "updated": "1739 UT May14",
        "max_24hr": null
      },
      "sunspot_number": 56,
      "sunspot_number_updated": "Updated 14 May 2026",
      "thermosphere_climate_index": {
        "status": null,
        "updated": "Updated 14 May 2026",
        "value_x10_10_W": 16.48
      }
    },
    "status": "success"
  }
}

About the spaceweather.com API

The spaceweather.com API exposes 4 endpoints covering live space weather conditions, daily editorial reports, historical archives, and near-Earth asteroid encounter tables. The get_current_conditions endpoint alone returns 7 distinct data objects including solar wind speed and density, interplanetary magnetic field strength, X-ray flare classifications, planetary K-index, sunspot count, and the thermosphere climate index — all in a single structured response.

Real-Time Space Weather Conditions

The get_current_conditions endpoint returns a snapshot of the current solar environment. Key fields include solar_wind.speed_km_sec, solar_wind.density_protons_cm3, imf.btotal_nT, imf.bz_nT, and imf.bz_direction (which indicates whether the interplanetary magnetic field is northward or southward — relevant to geomagnetic storm risk). The kp_index object includes both the current value and a 24-hour maximum, each paired with a status label. The thermosphere_climate_index returns a watt value and status string indicating atmospheric heating conditions.

Daily and Archived Reports

The get_daily_report endpoint returns the current date and an array of stories, where each story includes a headline, content text, images array, and links. This mirrors the editorial content published on the spaceweather.com homepage. The get_archive_report endpoint accepts three required parameters — year (four-digit), month (two-digit with leading zero), and day (two-digit with leading zero) — and returns the same stories structure for that historical date plus a conditions object with the same fields as get_current_conditions. This makes it straightforward to correlate past news coverage with recorded solar metrics.

Near-Earth Asteroid Encounters

The get_near_earth_asteroids endpoint returns pha_count (the number of currently tracked potentially hazardous asteroids) and a recent_encounters array. Each entry includes the asteroid's designation, date_ut, miss_distance_ld (in lunar distances), velocity_km_s, and estimated diameter. This data reflects the close-approach table shown on the spaceweather.com homepage, covering both recent passes and near-term upcoming encounters.

Common use cases
  • Alert users when the planetary K-index exceeds a threshold indicating geomagnetic storm conditions, using the kp_index.current.value field.
  • Log solar wind speed and density over time from get_current_conditions to build time-series charts for space weather research.
  • Pull archived reports via get_archive_report to correlate historical X-ray flare classifications with satellite anomaly records.
  • Build an aurora forecast tool using the imf.bz_direction and kp_index fields from the current conditions endpoint.
  • Track upcoming near-Earth asteroid close approaches by parsing recent_encounters from get_near_earth_asteroids, filtered by miss_distance_ld.
  • Aggregate daily sunspot_number values across archived reports to study solar cycle progression.
  • Display the thermosphere climate index alongside other solar metrics in a space environment dashboard using the thermosphere_climate_index.value_x10_10_W field.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does spaceweather.com offer an official developer API?+
No. Spaceweather.com does not publish an official developer API or documented data feed for programmatic access to its content.
What does the `get_archive_report` endpoint return, and how far back does the archive go?+
The endpoint returns a stories array and a conditions object for any historical date you specify using the year, month, and day parameters. Spaceweather.com has published daily reports since the late 1990s, so the archive spans decades. However, the completeness of structured conditions data for very old dates depends on what the source recorded at the time — some older entries may have partial fields.
Does the API return solar flare forecasts or only observed flare data?+
The API returns observed data only. The xray_flares field in get_current_conditions provides the maximum flare class over the past 6 and 24 hours, with timestamps. Forward-looking forecasts (probability of M- or X-class flares, for example) are not currently exposed. You can fork this API on Parse and revise it to add a forecast endpoint if that data becomes a priority.
Is there a way to filter the near-Earth asteroid encounters by size or miss distance within the API?+
The get_near_earth_asteroids endpoint returns the full encounter table as a list; it does not accept filter parameters. All filtering by miss_distance_ld, velocity_km_s, or estimated diameter must be done client-side after fetching the response. You can fork this API on Parse and revise it to add query parameters that filter the returned list.
How current is the data returned by `get_current_conditions`?+
Each data object in the response includes its own updated timestamp field — for example, solar_wind.updated and imf.updated — so you can see exactly when each measurement was last refreshed. Spaceweather.com updates different instruments on different cadences; solar wind data typically refreshes more frequently than sunspot numbers.
Page content last updated . Spec covers 4 endpoints from spaceweather.com.
Related APIs in WeatherSee all →
sentinel-hub.com API
Access satellite imagery from around the world and retrieve spectral band data, timestamps, and geographic coverage information to analyze Earth observation data. Process and generate statistics from satellite images for your specific areas of interest using powerful image processing tools.
openweathermap.org API
Search for cities and retrieve live weather conditions and forecasts (current, minutely precipitation, hourly and daily) by coordinates or by city name.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
weatherspark.com API
Get historical weather data, current METAR reports, and monthly climate summaries for any location by searching WeatherSpark's comprehensive weather database. Access detailed weather insights including temperature trends, precipitation patterns, and atmospheric conditions to power weather-dependent applications and analysis.
breckenridge.com API
Check real-time snow conditions, weather forecasts, lift operations, and trail status at Breckenridge Ski Resort to plan your day on the mountain. View live mountain cameras and get up-to-the-minute updates on slopes, lifts, and weather before you head out.
surfline.com API
Check real-time surf conditions, forecasts for waves and wind, tide predictions, and live camera feeds from thousands of surf spots around the world. Browse spots by geographic region and access detailed weather data to plan your perfect surfing session.
ingres.iith.ac.in API
Access groundwater resource estimation data across India at multiple geographic levels—from national summaries down to block-level details—and search specific locations to track groundwater availability and assessment trends. View historical assessment years and generate reports to analyze groundwater resources by state, district, or region.
zoom.earth API
Search Zoom Earth for places and get live environmental data including weather forecasts by coordinates, satellite imagery timestamps, active tropical storm tracks, active fires, and current platform status.
Spaceweather.com API – Solar & Asteroid Data · Parse