{"uid":"cap_FUvsqNBcywueXMmEtU9iX","slug":"2s-space-weather-api-62d6b049","name":"2s Space Weather API","description":"The (most) everything API: 575+ pay-per-call endpoints for AI agents — ground-truth data, a full AI gateway, and agent infrastructure (storage, queues, watchers). USDC via x402, no signup, no API keys, and upto billing: pay actual usage, not the quote.","url":"https://2s.io/api/space/weather","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":null,"example":{"request":{"properties":"kp,gscale,xrayFlux,flareClass"},"response":{"data":{"ok":true,"items":[{"kp":{"latest":{"kp":1.67,"time":"2026-06-18T03:00:00Z","gLabel":"none","gScale":0},"recent":[{"kp":2,"time":"2026-06-17T06:00:00Z","gLabel":"none","gScale":0},{"kp":2.33,"time":"2026-06-17T09:00:00Z","gLabel":"none","gScale":0},{"kp":2.33,"time":"2026-06-17T12:00:00Z","gLabel":"none","gScale":0},{"kp":1.33,"time":"2026-06-17T15:00:00Z","gLabel":"none","gScale":0},{"kp":0.33,"time":"2026-06-17T18:00:00Z","gLabel":"none","gScale":0},{"kp":1,"time":"2026-06-17T21:00:00Z","gLabel":"none","gScale":0},{"kp":2,"time":"2026-06-18T00:00:00Z","gLabel":"none","gScale":0},{"kp":1.67,"time":"2026-06-18T03:00:00Z","gLabel":"none","gScale":0}]},"xray":{"time":"2026-06-18T06:21:00Z","satellite":18,"flareClass":"B4.2","fluxLongWm2":4.1637105141489883e-7},"scales":{"current":{"rRadio":{"label":"none","scale":0},"observedAt":"2026-06-18T06:22:00Z","sRadiation":{"label":"none","scale":0},"gGeomagnetic":{"label":"none","scale":0}},"forecast":[{"gLabel":"none","gScale":0,"sPercent":1,"startsAt":"2026-06-18T06:22:00Z","rMajorPercent":1,"rMinorPercent":10},{"gLabel":"none","gScale":0,"sPercent":1,"startsAt":"2026-06-19T00:00:00Z","rMajorPercent":1,"rMinorPercent":15},{"gLabel":"none","gScale":0,"sPercent":1,"startsAt":"2026-06-20T00:00:00Z","rMajorPercent":1,"rMinorPercent":15}]},"solarWind":{"time":"2026-06-18T06:20:00Z","temperatureK":76807,"densityPerCm3":5.8,"speedKmPerSec":418.3}}],"total":1,"source":{"url":"https://services.swpc.noaa.gov","license":"Public domain (US government work, 17 USC § 105)","provider":"NOAA Space Weather Prediction Center (SWPC)"}},"meta":{"cost":{"usd":0.001,"tier":0},"caller":"x402","version":null,"endpoint":"space.weather","settlement":{"txHash":"0x8d17e489d4b4650989d643c46fc36c6eebf1c3b7f879de2952aa3258241ba9cd","network":"eip155:8453","success":true}}}},"exampleRequest":{"properties":"kp,gscale,xrayFlux,flareClass"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SDrLrST8Nr4knnswkUm_r","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current space weather data including geomagnetic storm indices (Kp/G-scale), solar X-ray flux, solar flare class, and NOAA space weather scales","exampleAgentPrompt":"What's the current space weather situation — is there a geomagnetic storm going on, and what's the latest Kp index and solar flare class?","exampleUseCases":null,"resultDescription":"A JSON object with 'ok: true', 'source', 'total', and an 'items' array containing: the latest Kp index value with its NOAA G-scale integer (0-5) and plain-English severity label (none/minor/moderate/strong/severe/extreme), up to 8 historical Kp samples from the last ~24 hours, current GOES X-ray flux in W/m² with derived flare class (e.g. C2.4, M1.0, X9.3) and satellite number, plus current and forecasted NOAA R (radio blackout), S (solar radiation), and G (geomagnetic) scale readings with labels.","failureModes":["Payment required (HTTP 402) if x402 USDC payment not included","NOAA upstream data unavailable or delayed — may return stale or null fields for xray/flare data","fluxLongWm2 and flareClass fields can be null if satellite data is temporarily unavailable","satellite field may be null if reporting source is unspecified"],"whenToPreferThis":"Use this endpoint when you need a single unified JSON response covering all major space weather indicators (Kp, G-scale, X-ray flux, flare class, NOAA scales) with no API key or signup required. Prefer over direct NOAA API calls when you want a clean normalized schema at very low cost. Ideal for agents monitoring aurora visibility, satellite operators, radio operators, or any workflow that needs real-time solar/geomagnetic conditions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:51:53.443Z","isFirstParty":false}