API & MCP

Everything a person can do on Skyfold Local Eclipse Circumstances, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Skyfold Local Eclipse Circumstances

For a place, lists every solar and lunar eclipse from 2020 to 2040 with what you will see: partial, annular or total, contact times C1–C4, magnitude, obscuration, duration and the Sun or Moon altitude, computed from NASA Besselian elements.

Inputs of Skyfold Local Eclipse Circumstances
FieldTypeDefaultDescription
locationtext"42.3439, -3.6969"Location (latitude, longitude). Decimal degrees such as 52.09, 5.12 (north and east positive), or DMS, UTM, MGRS, Maidenhead or a plus code.
elevationnumber0Elevation above sea level
timeZonetext"Europe/Madrid"Time zone. IANA name such as Europe/Berlin or America/New_York, or a fixed offset such as UTC+2.
fromYearinteger2026From year
toYearinteger2028To year
kindselect (both, solar, lunar)"both"Eclipses
visibleOnlybooleantrueOnly eclipses visible from this place

Example request

Burgos, Spain: the 2026–2028 eclipses

curl -X POST https://skyfoldeclipselocal.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"location":"42.3439, -3.6969","elevation":860,"timeZone":"Europe/Madrid","fromYear":2026,"toYear":2028,"kind":"both","visibleOnly":true}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "skyfold-eclipse-local": { "type": "http", "url": "https://skyfoldeclipselocal.usefulweb.app/mcp" }
  }
}