---
title: "Eclipses"
method: POST
path: "/eclipses"
tags: ["Calendar & Cycles"]
---

# Eclipses

`POST /eclipses`

Find solar and lunar eclipses within a given year or multi-year range. Returns type, date, and geographic visibility data.

## Request body

- Eclipses
  - `year` number, nullable, required
  - `yearsRange` number, nullable

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `eclipses` object[], nullable
      - `type` string, nullable
      - `subtype` string, nullable
      - `date` string, nullable
      - `jd` number, nullable
      - `saros` number, nullable
      - `longitude` number, nullable

## Other responses

- `400` — Validation error
- `401` — Missing or invalid API key

---

[API](https://skmtc.net/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.net/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astroway/astroway-calculation-api/revisions/529d7d36d7d6/schema)
