Magnetometer
All endpoints are prefixed with /v1/magnetometer/. Data is refreshed every 6 minutes by cron.
Coverage: 28 stations in Finland, Norway, Estonia, the United States (incl. Alaska, Hawaii, Puerto Rico, Guam), New Zealand, Samoa and Antarctica (Scott Base). Best coverage in Scandinavia and Alaska. Canada and Australia are not currently covered.
Data sources: USGS Geomagnetism (public domain), FMI MIRACLE (CC BY 4.0), GeoNet NZ (CC BY 3.0 NZ). Geoscience Australia and IGF-PAS Poland stations are currently unavailable.
Update frequency: Every 6 minutes. Baselines recomputed daily at 03:00 UTC from 6-month archive.
Station Network
Section titled “Station Network”| Source | Stations | Coverage | License | Status |
|---|---|---|---|---|
| USGS Geomagnetism | 14 | United States (incl. Alaska, Hawaii, Puerto Rico, Guam) | Public domain | Live |
| FMI MIRACLE | 11 | Finland, Norway, Estonia | CC BY 4.0 | Live |
| GeoNet NZ | 3 | New Zealand, Scott Base, Samoa | CC BY 3.0 NZ | Live |
| Geoscience Australia | 9 | Australia + Antarctica | CC BY 4.0 | Disabled (new API needs a key) |
| IGF-PAS Poland | 3 | Poland + Hornsund (Arctic) | CC BY-NC 4.0 | Disabled (non-commercial licence) |
GET /nearest
Section titled “GET /nearest”Credits: 2 | Tier: Builder+
Find the N nearest magnetometer stations to a location, with current H-component readings.
| Param | Type | Required | Description |
|---|---|---|---|
lat |
float | yes | Latitude (-90 to 90) |
lon |
float | yes | Longitude (-180 to 180) |
n |
int | no | Number of stations (default: 3, max: 10) |
curl -H "X-API-Key: YOUR_KEY" \ "https://api.pxie.ai/v1/magnetometer/nearest?lat=45.5&lon=-75.5"{ "observer_lat": 45.5, "observer_lon": -75.5, "stations": [ { "code": "FRD", "name": "Fredericksburg", "glat": 38.20, "glon": -77.37, "mlat": 47.46, "mlon": -5.43, "band": "sub_auroral", "source": "usgs", "distance_km": 826.3, "reading": { "H": 20145.32, "D": -10.45, "Z": 48234.11, "F": 52345.67, "time_iso": "2026-03-12T14:30:00Z", "age_s": 240, "stale": false } } ]}A reading older than 30 minutes is returned with stale: true: that station has stopped reporting for now, and the values are its last good sample. If none of the returned stations has a current reading, the response is 503 with a Retry-After header and a message naming the data source, and no credits are charged.
Source: Pxie + station network
GET /local-kp
Section titled “GET /local-kp”Credits: 3 | Tier: Builder+
Pxie-computed local geomagnetic index based on the nearest stations.
| Param | Type | Required | Description |
|---|---|---|---|
lat |
float | yes | Latitude (-90 to 90) |
lon |
float | yes | Longitude (-180 to 180) |
curl -H "X-API-Key: YOUR_KEY" \ "https://api.pxie.ai/v1/magnetometer/local-kp?lat=62.0&lon=-75.5"{ "local_kp": 3.4, "weighted_delta_h_nt": -61.8, "weighted_range_nt": 212.5, "avg_station_mlat": 65.9, "k9_threshold_nt": 2167, "stations": [ { "code": "CMO", "name": "College", "distance_km": 412.7, "h_observed_nt": 12855.4, "h_baseline_nt": 12917.2, "h_deviation_nt": -61.8, "h_range_nt": 212.5, "window_minutes": 180, "k9_limit_nt": 2500, "local_k": 3.38, "weight": 0.52, "status": "ok" } ], "confidence": "medium", "baseline_days": 41, "timestamp_utc": "2026-10-19T18:05:00+00:00", "status": "success"}Like the K index, local_kp reflects how much the field has varied over the last 3 hours (h_range_nt per station, weighted_range_nt overall), not how far it currently sits from its quiet level (h_deviation_nt). A slow storm-time depression at low latitudes therefore doesn’t read as a high K, while a rapidly falling field does. Each station’s own K scale is used, so a disturbance of the same size reads as a lower K at an auroral station than at a mid-latitude one.
A station is left out when it has no current reading (status: "no_data"), when its latest reading is older than 30 minutes (status: "stale"), when it has no quiet-day baseline yet (status: "no_baseline"), or when it has less than an hour of recent readings (status: "insufficient_history"). If no nearest station qualifies, the response is 503 with a Retry-After header and a message saying why (no current readings, baselines still loading, or under an hour of history) — and no credits are charged.
Source: Pxie
GET /electrojet
Section titled “GET /electrojet”Credits: 3 | Tier: Builder+
Auroral electrojet indices — AU, AL, AE, AO — for both hemispheres, with magnetic local time (MLT) coverage so you can tell which electrojet the reporting stations can actually see.
curl -H "X-API-Key: YOUR_KEY" \ "https://api.pxie.ai/v1/magnetometer/electrojet"{ "northern": { "hemisphere": "north", "basis": "auroral_belt", "AU": 85.3, "AL": -120.7, "AE": 206.0, "AO": -17.7, "stations_used": 11, "stations": ["BRW", "CMO", "DED", "KEV", "KIL", "MAS", "MUO", "OUJ", "PEL", "RAN", "SIT"], "longitude_coverage": { "sectors_covered": 2, "sectors_total": 4, "sectors": { "0°–90°E": ["KEV", "KIL", "MAS", "MUO", "OUJ", "PEL", "RAN"], "90°–180°E": [], "180°–270°E": ["BRW", "CMO", "DED", "SIT"], "270°–360°E": [] }, "max_gap_degrees": 176.3 }, "mlt_coverage": { "stations": {"BRW": 0.1, "CMO": 1.1, "DED": 0.6, "KEV": 15.6, "KIL": 15.2, "MAS": 15.4, "MUO": 15.3, "OUJ": 15.3, "PEL": 15.3, "RAN": 15.3, "SIT": 2.3}, "quadrants": {"00-06": ["BRW", "CMO", "DED", "SIT"], "06-12": [], "12-18": ["KEV", "KIL", "MAS", "MUO", "OUJ", "PEL", "RAN"], "18-24": []}, "quadrants_covered": 2, "quadrants_total": 4, "max_gap_hours": 12.9, "au_window_mlt": [13, 19], "al_window_mlt": [21, 4], "au_observable": true, "al_observable": true }, "data_quality": 90, "status": "success", "caveats": [] }, "southern": { "hemisphere": "south", "basis": "polar_cap", "AU": 0.0, "AL": -38.2, "AE": 38.2, "AO": -38.2, "stations_used": 1, "stations": ["SBA"], "longitude_coverage": { "sectors_covered": 1, "sectors_total": 4, "sectors": {"0°–90°E": [], "90°–180°E": ["SBA"], "180°–270°E": [], "270°–360°E": []}, "max_gap_degrees": 360.0 }, "mlt_coverage": { "stations": {"SBA": 2.6}, "quadrants": {"00-06": ["SBA"], "06-12": [], "12-18": [], "18-24": []}, "quadrants_covered": 1, "quadrants_total": 4, "max_gap_hours": 24.0, "au_window_mlt": [13, 19], "al_window_mlt": [21, 4], "au_observable": false, "al_observable": true }, "data_quality": 40, "status": "single_station", "caveats": ["single_station", "au_not_observable", "polar_cap_basis"], "components": { "auroral_belt": {"hemisphere": "south", "basis": "auroral_belt", "AU": null, "AL": null, "AE": null, "AO": null, "stations_used": 0, "stations": [], "data_quality": 0, "status": "no_data", "caveats": []}, "polar_cap": {"hemisphere": "south", "basis": "polar_cap", "AU": 0.0, "AL": -38.2, "AE": 38.2, "AO": -38.2, "stations_used": 1, "stations": ["SBA"], "status": "single_station", "...": "..."} }, "note": "Southern index computed from 1 polar-cap station(s) at |MLAT| >= 75° (SBA): an AES-80-like index (Ballatore et al. 1998), not an auroral-belt AE. No southern auroral-belt station (|MLAT| 60-75°) is currently reporting. No official Southern AE exists; this is a Pxie-original product." }}Indices
Section titled “Indices”ΔH is each station’s horizontal-field deviation from its own quiet-day baseline.
| Index | Formula | Meaning |
|---|---|---|
| AU | max(0, ΔH) | Upper envelope — eastward electrojet (afternoon–dusk, ~13–19 MLT) |
| AL | min(0, ΔH) | Lower envelope — westward electrojet (midnight–dawn, ~21–04 MLT) |
| AE | AU − AL | Total electrojet activity |
| AO | mean(ΔH) | Average disturbance offset |
Status values
Section titled “Status values”status |
Stations | Meaning |
|---|---|---|
success |
≥ 3 | Normal envelope |
degraded |
2 | Thin envelope; treat as indicative |
single_station |
1 | AU or AL is zero by construction; AE is that station’s |ΔH| |
no_baseline |
0 | Stations reported but have no quiet-day baseline yet (stations_without_baseline lists them) |
no_data |
0 | No station in the set reported |
Each hemisphere object also has deviations_nt, the ΔH used for each station. Stations whose latest reading is older than 30 minutes are left out and listed in stations_stale. If neither hemisphere has an index, the response is 503 with Retry-After (not charged). If there are no magnetometer readings at all (for example, right after a restart), the 503 has no Retry-After header; retry after a minute.
MLT coverage
Section titled “MLT coverage”mlt_coverage gives each reporting station’s magnetic local time, the 6-hour MLT quadrants covered, and two flags: au_observable (some station sits in 13–19 MLT, where the eastward electrojet flows) and al_observable (some station sits in 21–04 MLT, the westward electrojet). When a flag is false the value is still returned, but the matching caveat (au_not_observable / al_not_observable) is added and data_quality drops by 15. null means no reporting station has a magnetic longitude on file. caveats collects every such flag plus single_station and, for the south, polar_cap_basis.
Northern vs. Southern
Section titled “Northern vs. Southern”Northern (basis: "auroral_belt") is computed by Pxie from auroral-belt stations (MLAT 60–75°N) in Scandinavia and Alaska.
Southern is a Pxie-original product — no official Southern AE index exists. It has two bases, indexed separately and never mixed into one envelope, because polar-cap H deviations are driven by cross-cap convection rather than the electrojets:
basis |
Stations | When it is the headline |
|---|---|---|
auroral_belt |
Mawson (MAW), Macquarie Island (MCQ) — |MLAT| 60–75° — currently offline | ≥ 2 belt stations report |
polar_cap |
Scott Base (SBA); Casey (CSY) currently offline — |MLAT| ≥ 75° | Otherwise. An AES-80-like index (Ballatore et al. 1998, Ann. Geophys. 16, 1589; cf. Weygand & Zesta 2008, JGR 113, A08202). Adds the polar_cap_basis caveat. |
Both results are always returned under components, so the belt result stays visible while the polar cap is the headline.
Current status: Mawson, Macquarie Island and Casey are Geoscience Australia stations, which are temporarily unavailable. Until they return, the southern index comes from Scott Base alone on the polar-cap basis (
status: "single_station", as in the example above), and theauroral_beltcomponent returnsno_data.
Source: Pxie
GET /station/{code}
Section titled “GET /station/{code}”Credits: 2 | Tier: Builder+
Raw H, D, Z, F components for a specific magnetometer station by IAGA code.
| Param | Type | Required | Description |
|---|---|---|---|
code |
string | yes | IAGA station code (e.g., BOU, KEV, SBA) |
curl -H "X-API-Key: YOUR_KEY" \ "https://api.pxie.ai/v1/magnetometer/station/BOU"{ "code": "BOU", "name": "Boulder", "glat": 40.14, "glon": -105.24, "mlat": 47.76, "mlon": -37.71, "band": "sub_auroral", "source": "usgs", "k9_limit_nt": 500, "reading": { "H": 21345.12, "D": 7.83, "Z": 47123.45, "F": 51678.90, "time_iso": "2026-03-12T14:30:00Z", "age_s": 240, "stale": false }, "status": "ok"}If the station has no reading, or its latest reading is older than 30 minutes, the response is 503 with a Retry-After header and a message giving the reading’s age and data source. No credits are charged. A 200 always carries current data (status: "ok").
Magnetic Field Components
Section titled “Magnetic Field Components”| Component | Unit | Description |
|---|---|---|
| H | nT | Horizontal intensity |
| D | degrees | Declination (may be null for XYZ-only stations) |
| Z | nT | Vertical intensity (positive downward) |
| F | nT | Total field intensity |
Source: Pxie + station network
