---
title: "Hindu calendar: vrats (Ekadashi with parana, Pradosh, Sankashti, Purnima, Amavasya, Masik Shivaratri)"
method: POST
path: "/vedic/calendar/vrats"
tags: ["Vedic"]
---

# Hindu calendar: vrats (Ekadashi with parana, Pradosh, Sankashti, Purnima, Amavasya, Masik Shivaratri)

`POST /vedic/calendar/vrats`

## Request

- Base URL: `https://api.astroway.info/v1`
- URL: `https://api.astroway.info/v1/vedic/calendar/vrats`
- Auth: API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/astroway/apis/astroway-calculation-api/docs/vedic/calendar/vrats/post.ts> (a function with typed inputs; its response is checked against the schema)

Every vrat of the year for the place. Ekadashi: the Smarta day (Ekadashi at sunrise; two sunrises: the first, unless Dashami touches it at arunodaya; Dwadashi with no sunrise: the day before) and the Vaishnava day where it differs (Dashami-viddha at arunodaya refused, Gauna day, Vanjuli mahadwadashi), each with its parana window outside Hari Vasara and within Dwadashi. Pradosh (Trayodashi at pradosha, named by weekday), Sankashti Chaturthi (Krishna Chaturthi at moonrise, with the moonrise), Masik Shivaratri (Krishna Chaturdashi at nishita), Purnima vrat and bath day, Darsha Amavasya and the Amavasya bath day. `types` narrows the list. Every New Delhi 2025 and 2026 date matches drikpanchang; parana windows within a minute.

## Query parameters

- `fields` string
- `precision` integer

## Headers

- `Idempotency-Key` string

## Request body

- CalendarVratsInput: A Gregorian year and a place for the vrat calendar.
  - `year` integer, required: Gregorian year, 1900 to 2100. Entries are those whose date falls in this year.
  - `latitude` number, nullable, required: Latitude in decimal degrees, north positive. Between -66 and 66: further out the Sun does not rise on some days and a Hindu day has no start.
  - `longitude` number, nullable, required: Longitude in decimal degrees, east positive.
  - `timezone` string: IANA zone name such as Asia/Kolkata, America/New_York or Europe/Kyiv, or auto (default) to look it up from the coordinates. Resolved day by day: each day is read on the offset that zone kept that day, so summer time is followed.
  - `timezoneOffset` number, nullable: A fixed offset in hours instead of a zone, for the whole year. Ignored when timezone is sent.
  - `ayanamsaId` number, nullable
  - `ayanamsa` 'fagan-bradley' | 'lahiri' | 'de-luce' | 'raman' | 'krishnamurti' | 'kp' | 'yukteshwar' | 'jn-bhasin' | 'true-citra' | 'djwhal-khul': Sidereal school by name. Lahiri when omitted. Equivalent to ayanamsaId; send either.
  - `types` string[]: Only these vrat types: ekadashi, pradosh, sankashti, purnima, amavasya, masik-shivaratri. All when omitted.

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `year` number, nullable
    - `place` object, nullable
      - `latitude` number, nullable
      - `longitude` number, nullable
      - `timezone` string, nullable
      - `timezoneOffset` unknown
      - `ayanamsaId` number, nullable
    - `types` string[], nullable
    - `count` number, nullable
    - `vrats` object[], nullable
      - `type` string, nullable
      - `name` string, nullable
      - `date` string, nullable
      - `observance` unknown
      - `rule` string, nullable
      - `source` string, nullable
      - `kala` string, nullable
      - `observedWindow` unknown
      - `tithi` object, nullable
        - `number` number, nullable
        - `name` string, nullable
        - `paksha` string, nullable
        - `start` string, nullable
        - `end` string, nullable
      - `month` object, nullable
        - `amanta` string, nullable
        - `purnimanta` string, nullable
      - `moonrise` string, nullable

## Other responses

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

## Changes

- **2026-11-07** `69a55e116a5e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/astroway/apis/astroway-calculation-api/changes/vedic/calendar/vrats/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.dev/astroway/apis/astroway-calculation-api/revisions/bf266b2e6703?raw)
