New Numerology API

Panchang and calendar

Panchang yoga in Vedic astrology

The panchang yoga is one of the five parts of the Hindu calendar day. It comes from adding the longitudes of the Sun and the Moon: each 13 degrees 20 minutes of the sum is one of 27 yogas, from Vishkambha to Vaidhriti. It is a different thing from a yoga in a birth chart.

Updated

More terms in Panchang and calendar

© API for Astrology (apiforastrology.com). "Glossary day arc". All rights reserved. Not to be copied or reused.12345678SunriseNoonSunsetOne day, from sunrise to sunset

Panchang yoga: how the API computes it

The panchang yoga is one of the five parts of the daily panchang (the Hindu almanac). It is not the same thing as a yoga in a birth chart. The API adds the sidereal longitudes of the Sun and the Moon, their places measured against the stars. Then it divides the sum into steps of 13 degrees 20 minutes.

Each step is one of 27 yogas, from Vishkambha to Vaidhriti (PA-02). The Sun and the Moon both move, so the yoga changes about once a day, but not at a fixed hour. That is why the API gives the yoga with its end time.

The response for a full day lists each change from one sunrise to the next. Some yogas, such as Vyatipata and Vaidhriti, are seen as difficult for new starts. Others are seen as gentle.

Do not mix this term up with the 97 chart yogas that POST /v1/yogas returns. POST /v1/panchang returns the yoga for a birth moment. GET /v1/panchang/daily and GET /v1/panchang/month return the yoga running at sunrise and when it ends.

Get it from the API

Panchang at the birth moment. Here is the call to API for Astrology (apiforastrology.com) for our sample, John Doe, born Aug 15, 1990, 10:30 AM, New York.

POST /v1/panchang

# John Doe, born Aug 15, 1990, 10:30 AM, New York
curl -X POST "https://apiforastrology.com/api/astrology/v1/panchang" \
  -H "Authorization: Bearer $ASTROLOGY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"year":1990,"month":8,"day":15,"hour":10,"minute":30,"second":0,"latitude":40.7128,"longitude":-74.006,"timezone":"America/New_York"}'
Answer (long lists shortened)200 OK
{
  "tithi": {
    "index": 25,
    "name": "Dashami",
    "paksha": "krishna",
    "completion_percent": 64.9975
  },
  "yoga": {
    "index": 14,
    "name": "Harshana",
    "completion_percent": 0.1278
  },
  "karana": {
    "index": 50,
    "name": "Vishti",
    "completion_percent": 29.9949
  },
  "vara": {
    "index": 4,
    "name": "Wednesday",
    "lord": "Mercury"
  },
  "vedic_vara": {
    "index": 4,
    "name": "Wednesday",
    "lord": "Mercury",
    "before_sunrise": false
  },
  "note": "`vara` is the civil weekday; `vedic_vara` runs sunrise to sunrise and is what the vara lord is read from",
  "nakshatra": {
    "name": "Mrigashira",
    "lord": "Mars",
    "pada": 1
  },
  "meta": {
    "ayanamsa": "lahiri",
    "ayanamsa_value": 23.7260727,
    "julian_day": 2448119.10483,
    "ephemeris": "JPL DE440s",
    "node": "true",
    "timezone": {
      "source": "zone",
      "offset_hours": -4,
      "zone": "America/New_York",
      "abbreviation": "EDT",
      "dst": true,
      "dst_hours": 1,
      "ambiguous_resolved_by_fold": null,
      "note": "read from the IANA tz database at this instant, so daylight saving and historical offset changes are included"
    }
  }
}

Where the API returns it

POST/v1/panchangPanchang at the birth moment
GET/v1/panchang/dailyDaily panchang for a date and place, no birth data
GET/v1/panchang/monthPanchang calendar for a month, with festivals and fasts

What the API reference says

Each line is quoted from the reference page of the endpoint named above it.

  • GET /v1/panchang/month · Panchang calendar for a month, with festivals and fastsEach row has the tithi (lunar day), nakshatra (lunar mansion), yoga and karana running at sunrise, and when each one ends.

The 27 panchang yogas

  • Vishkambha
  • Priti
  • Ayushman
  • Saubhagya
  • Shobhana
  • Atiganda
  • Sukarma
  • Dhriti
  • Shula
  • Ganda
  • Vriddhi
  • Dhruva
  • Vyaghata
  • Harshana
  • Vajra
  • Siddhi
  • Vyatipata
  • Variyana
  • Parigha
  • Shiva
  • Siddha
  • Sadhya
  • Shubha
  • Shukla
  • Brahma
  • Indra
  • Vaidhriti

Feature page: Panchang and muhurat. Who uses it: Publishers and media. The classical rules the API follows are in the rulebook.

How we check the numbers

Every value here starts from planet positions worked out from NASA JPL planet data (DE440). We test them against NASA JPL Horizons, NASA's planet position service. On 25,571 positions from 1850 to 2149, the Sun and planets agree within 0.001 arc seconds. The Moon agrees within 0.011. On 2,000 random birth charts, the rising sign agrees with Swiss Ephemeris within 0.004 arc seconds. An arc second is 1/3,600 of a degree. A practicing astrologer reviews the rules behind these answers. See how we test.

Related terms

Free tools

See it with your own details

Runs on the same API call. Enter your details and see the answer in your browser.

  • Today's panchang

    Tithi (lunar day), nakshatra, sunrise, rahu kaal and the choghadiya (good and bad parts of the day) for your own city.

    See today's panchang

From the blog

Astrology API

Get these values from the API

Create a free test key and call any endpoint on this page. Or try a request in the API reference first.

Your first answer

John Doe, New York

POST /v1/planets200 OK
  • RisingVirgoHast
  • SunCancerAshlesha
  • MoonTaurusMrigashira
  • MarsAriesKrittika

Real API output. A free test key gets the same answer.

  1. 01

    Test key: 1,000 test calls a month to build with

  2. 02

    Free plan: 2,000 live calls a month, no card needed

  3. 03

    Open rules: every rule is published, so you can check any answer