# GOES X-ray flux

GET https://horizonpulse.dev/api/space-weather/xrays

- Price: $0.008 per call. The exact amount is in the 402.
- Pay with: USDC on Base
- Family: Weather and hazards (/catalog/weather-hazards.md)

## What it returns
Latest GOES X-ray flux and a flare class computed by Horizon Pulse from SWPC flux. Source: NOAA Space Weather Prediction Center (SWPC), GOES X-ray flux. NOAA/NWS data are in the public domain and not subject to copyright. Horizon Pulse is not affiliated with or endorsed by NOAA or the National Weather Service. This is not an official NOAA alert or forecast. Official space weather alerts are at https://www.swpc.noaa.gov. Empty result or source down: not charged. USDC on Base only.

## Inputs
See /openapi.json for this path.

## If the call fails
- USDC on Base: errors are not charged, apart from the exceptions noted on a route.

## Try it
- Call it unpaid to read the 402: GET https://horizonpulse.dev/api/space-weather/xrays
- Setup: /setup.md
