Skip to content
BestAstroAPI

Panchang & timing

Sign changes

POST/v1/transits/dates

Exact moments planets change sidereal sign between two dates, including retrograde re-entries.

  • Up to 10 years at a time; up to 92 days for the Moon.
  • Rahu and Ketu are mean nodes.

Request

FieldTypeDescription
fromstringrequiredFirst date, YYYY-MM-DD
tostringrequiredLast date, YYYY-MM-DD
planetstringOne planet; default all except the Moon
tzstringIANA zone or offset for dates and times; default UTC
ayanamsastringlahiri (default) | raman | krishnamurti

Example

curl -X POST "https://api.bestastroapi.in/v1/transits/dates" \
  -H "x-api-key: $BESTASTRO_KEY" \
  -H "content-type: application/json" \
  -d '{"from":"2026-01-01","to":"2026-12-31","planet":"jupiter","tz":"Asia/Kolkata"}'

Try it live

Sends a real request from your browser.

Response

  • [] is a list. {key} is a key that varies.
  • Times carry the UTC offset of the place. A time after midnight has the next date.
FieldTypeMeaning
fromstringYYYY-MM-DDFirst date
tostringYYYY-MM-DDLast date
tzstringZone of the dates and times
ayanamsastringAyanamsa usedlahiri | raman | krishnamurti
nodestringAlways mean
planetsobject[]One row per planet
planets[].planetstringName
planets[].idstringStable id
planets[].sign_at_startSignSign at the start of from
planets[].changesobject[]Sign changes in time order. Can be empty
planets[].changes[].atstringISO 8601Moment of the change
planets[].changes[].from_signSignSign it leaves
planets[].changes[].to_signSignSign it enters
planets[].changes[].retrogradebooleanMoving backward at the change

Objects used above

Sign A zodiac sign (rashi).

FieldTypeMeaning
numberinteger1 = Aries to 12 = Pisces
namestringEnglish name
rashistringSanskrit name, for example Mesha
lordstringPlanet that rules the sign
Raw sample
200 application/json
{
  "ayanamsa": "lahiri",
  "from": "2026-01-01",
  "node": "mean",
  "planets": [
    {
      "changes": [
        {
          "at": "2026-06-02T01:50:02+05:30",
          "from_sign": {
            "lord": "Mercury",
            "name": "Gemini",
            "number": 3,
            "rashi": "Mithuna"
          },
          "retrograde": false,
          "to_sign": {
            "lord": "Moon",
            "name": "Cancer",
            "number": 4,
            "rashi": "Karka"
          }
        },
        {
          "at": "2026-10-31T12:02:17+05:30",
          "from_sign": {
            "lord": "Moon",
            "name": "Cancer",
            "number": 4,
            "rashi": "Karka"
          },
          "retrograde": false,
          "to_sign": {
            "lord": "Sun",
            "name": "Leo",
            "number": 5,
            "rashi": "Simha"
          }
        }
      ],
      "id": "jupiter",
      "planet": "Jupiter",
      "sign_at_start": {
        "lord": "Mercury",
        "name": "Gemini",
        "number": 3,
        "rashi": "Mithuna"
      }
    }
  ],
  "to": "2026-12-31",
  "tz": "Asia/Kolkata"
}

Real output for the example request above.

Errors use one format. See error codes. Also in openapi.json.

Welcome! How will you use it?

We'll show you what matters to you. You can switch any time at the top.