---
title: "Ephemeris Range"
method: POST
path: "/ephemeris"
tags: ["Core"]
---

# Ephemeris Range

`POST /ephemeris`

Return planet positions for a date range with configurable step (min 0.01 days). Max range: 1 year for sub-day steps, 5 years otherwise. Optionally filter by planetIds.

## Request body

- Ephemeris
  - `startDate` string, required
  - `endDate` string, required
  - `stepDays` number, nullable
  - `planetIds` integer[]

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `ephemeris` object[], nullable
      - `jd` number, nullable
      - `date` string, nullable
      - `positions` object[], nullable
        - `planetId` number, nullable
        - `longitude` number, nullable
        - `isRetrograde` boolean, nullable

## Other responses

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

## Changes

- **2026-08-24** `8ab5a768b521` — 2 warning, 1 info
  - removed the optional property `data/ephemeris/items/positions/items/latitude` from the response with the `200` status
  - removed the optional property `data/ephemeris/items/positions/items/speed` from the response with the `200` status
  - added the optional property `data/ephemeris/items/positions/items/isRetrograde` to the response with the `200` status
- **2026-08-23** `6828e5609564` — 1 breaking, 1 warning
  - the `planetIds/items/` request property type/format changed from `number`/`` to `integer`/``
  - the `planetIds/items/` request property's min was set to `0.00`

[Change history](https://skmtc.dev/astroway/apis/astroway-calculation-api/changes/ephemeris/post.md)

---

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