Skip to content
96Astro API

Calendar Export (ICS)

POSTAvailable

POSThttps://api.96astroapi.com/v1/festivals-muhurta/calendar-ics

An iCalendar (.ics) file for the year's festivals, one month of daily tithi and nakshatra, one vrat observance for the year, or the twelve sankrantis with their Punya Kaal windows, ready for Google Calendar, Apple Calendar or Outlook.

Credits
1 credit
Input
Specific input
Output
JSON
Delivery
Direct response
Languages
26 languages; translated term names with labels
Headers
HeaderValue and description
AuthorizationRequiredBearer YOUR_API_KEY

Your sandbox (sk_test_...) or live (sk_live_...) key. X-API-Key: <key> is accepted instead.

Content-TypeRequiredapplication/json

The body is JSON.

Idempotency-KeyOptional<unique string>

Makes retries safe: a repeated key with the same body replays the stored response and is never charged twice. (1 to 200 characters)

Body · application/json
FieldDescription
yearintegerRequired

Limits: minimum 1900, maximum 2200

Example: 2026

timezonestring | nullOptional

IANA time zone, e.g. Asia/Kolkata

Default: null

Example: Asia/Kolkata

utc_offsetstring | nullOptional

Fixed offset such as +05:30, if no IANA zone is known

Default: null

latitudenumberRequired

Within 66 degrees of the equator (the Sun must rise and set daily).

Limits: minimum -66, maximum 66

Example: 28.6139

longitudenumberRequired

Limits: minimum -180, maximum 180

Example: 77.209

time_formatstringOptional

Default: iso

Allowed value: iso

kindstringRequired

festivals (the year's festival days), panchang (one month: daily tithi and nakshatra with sunrise), vrat (one observance for the year) or sankranti (the twelve sankrantis with their Punya Kaal).

Allowed values: festivalspanchangvratsankranti

Example: festivals

monthinteger | nullOptional

Required for `panchang`.

Default: null

Limits: minimum 1, maximum 12

observancestring | nullOptional

Required for `vrat`, e.g. ekadashi, pradosham, purnima.

Default: null

from_datestring | nullOptional

First date for `festivals` (default 1 January).

Default: null

Limits: format date

to_datestring | nullOptional

Last date for `festivals` (default 31 December).

Default: null

Limits: format date

labelsstringOptional

Optional. Adds `meta.labels`: translated display names for the identifiers in the answer. `data` is unchanged. Free. Any other code is refused with 422 unsupported_language.

Allowed values: asbndeesfrguhiitjaknkomlmrnenlorpaplptrusitatetrur

Response · fields in data

Inferred from the example response: a guide to the shape, not a contract.

  • filename · string
  • content_type · string
  • events · number
  • ics · string
  • note · string

Try in Playground →Capability overview

Example request

Example response

200application/json
{
  "data": {
    "filename": "96astro-festivals-2026.ics",
    "content_type": "text/calendar; charset=utf-8",
    "events": 208,
    "ics": "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//96astro API//Panchang//EN\r\nCALSCALE:GREGORIAN\r\nX-WR-CALNAME:96astro festivals 2026\r\nBEGIN:VEVENT\r\nUID:fest-2026-01-01-356044@96astroapi.com\r\nDTSTAMP:20260101T000000Z\r\nDTSTART;VALUE=DATE:20260101\r\nDTEND;VALUE=DATE:20260102\r\nSUMMARY:Pradosha Vrat\r\nDESCRIPTION:Lunar month Pausha\r\nEND:VEVENT\r\nBEGIN:VEVENT\r\nUID:fest-2026-01-03-722337@96astroapi.com\r\nDTSTAMP:20260101T000000Z\r\nDTSTART;VALUE=DATE:20260103\r\nDTEND;VALUE=DATE:20260104\r\nSUMMARY:Purnima (Full Moon)\r\nDESCRIPTION:Lunar month Pausha\r\nEND:VEVENT\r\nBEGIN:VEVENT\r\nUID:fest-2026-01-03-288738@96astroapi.com\r\nDTSTAMP:20260101T000000Z\r\nDTSTART;VALUE=DATE:20260103\r\nDTEND;VALUE=DATE:20260104\r\nSUMMARY:Pausha Purnima / Shakambhari Purnima\r\nDESCRIPTION:Lunar month Pausha\r\nEND:VEVENT\r\nBEGIN:VEVENT\r\nUID:fest-2026-01-13-32169@96astroapi.com\r\nDTSTAMP:20260101T000000Z\r\nDTSTART;VALUE=DATE:20260113\r\nDTEND;VALUE=DATE:20260114\r\nSUMMARY:Lohri\r\nEND:VEVENT\r\nBEGIN:VEVENT\r\nUID:fest-2026-01-13-847314@96astroapi.com\r\nDTSTAMP:20260101T000000Z\r\nDTSTART;VALUE=DATE:20260113\r\nDTEND;VALUE=DATE:20260114\r\nSUMMARY:Bhogi\r\nEND:VEVENT\r\nBEGIN:VEVENT\r\nUID:fest-2026-01-14-225364@96astroapi.com\r\nDTSTAMP:20260101T000000Z\r\nDTSTART;VALUE=DATE:20260114\r\nDTEND;VALUE=DATE:20260115\r\nSUMMARY:Ekadashi Vrat\r\nDESCRIPTION:Lunar month Pausha\r\nEND:VEVENT\r\nBEGIN:VEVENT\r\nUID:fest-2026-01-14-713125@96astroapi.com\r\nDTSTAMP:20260101T000000Z\r\nDTSTART;VALUE=DATE:20260114\r\nDTEND;VALUE=DATE:20260115\r\nSUMMARY:Makar Sankranti\r\nDESCRIPTION:Lunar month Paus [... 42576 more characters]",
    "note": "Dates are local to the place; timed events are floating local times (no zone)."
  },
  "meta": {
    "request_id": "req_00000000000000000000",
    "api_version": "v1",
    "credits_used": 0,
    "warnings": [],
    "language": "en"
  }
}

Captured from the live engine with a sandbox key (so credits_used is 0) and trimmed: long arrays keep their first items.

Error responses

  • 400invalid_request
  • 401invalid_key, expired_key
  • 402payment_required
  • 403account_suspended, plan_upgrade_required, plan_family_not_included, key_scope_denied, ip_not_allowed, origin_not_allowed, publishable_key_not_allowed
  • 404not_found
  • 409idempotency_conflict
  • 413payload_too_large
  • 422invalid_request, unsupported_language
  • 429rate_limited, quota_exhausted, spend_cap_reached, project_budget_exceeded
  • 500computation_failed
  • 502unavailable
  • 503unavailable, maintenance, temporarily_unavailable
  • 504deadline_exceeded

Errors are never charged. What each status means and what to do: errors.

Was this page helpful?

Send us feedback

What is it about?