APIHub
Back to Explore

Geomag API

The Geomag API computes geomagnetic field parameters—declination, inclination, total field intensity, and grid variation—based on a given geodetic latitude, longitude, altitude (0‑600 km) and year (2015‑2025).

Geocoding
none
HTTPS
CORS: Unknown
Description enriched
Visit official documentation

Latency

722ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/magnetic_field

Calculate magnetic declination, inclination, total field intensity, and grid variation

  • altitude (query, required) — Geodetic Altitude 0 km to 600 km.
  • latitude (query, required) — Geodetic Latitude. -90 deg (S) to 90 deg (N).
  • longitude (query, required) — Geodetic Longitude. -180 deg (W) to 180 deg (E).
  • year (query, required) — Year as a decimal in the range 2015-2025 (2017.5 would be half way through 2017).

1 endpoint auto-detected

curl -X GET \
  "https://amentum.space/wmm/magnetic_field"

amentum.space · HTTPS only