vedicAPI

Getting started

One REST API for Vedic astrology: 30 endpoints for charts, dasha, panchang, matching, muhurta and more. Get a free key and make your first call in about two minutes.

Base URLhttps://api.vedicapi.co/v1
  1. Get a free API key

    Sign up with your mobile number, from any country, and a one-time code. No card. Your key shows straight away, on the Free plan: 1,000 API calls a month, every endpoint, and it never expires.

    Save the key as an environment variable so it stays out of your code:

    Terminal
    export VEDICAPI_KEY="sk_live_..."
  2. Make your first call

    Ask for the panchang on 19 November 2026 in New Delhi. The X-End-User header is optional; it tags the call with your own user id.

    curl -X POST \
      https://api.vedicapi.co/v1/panchang \
      -H "Authorization: Bearer $VEDICAPI_KEY" \
      -H "X-End-User: user_8f2c" \
      -H "Content-Type: application/json" \
      -d '{
        "date": "2026-11-19",
        "lat": 28.6139,
        "lon": 77.209,
        "tz": "Asia/Kolkata",
        "lang": "en"
      }'
  3. Read the response

    You get JSON. Times are local to the place you sent. Every answer has units (how many API calls it counts as) and request_id. This is the real answer, and this call counts as 1 API call.

    200 OK
    {
      "abhijit": {
        "end": "12:27:42",
        "start": "11:45:03"
      },
      "computed_at": "12:00",
      "date": "2026-11-19",
      "day_length_hours": 10.66,
      "durmuhurta": [
        {
          "end": "11:02:24",
          "start": "10:19:45"
        },
        {
          "end": "15:18:18",
          "start": "14:35:39"
        }
      ],
      "gulika": {
        "end": "10:46:24",
        "start": "09:26:26"
      },
      "karana": {
        "bhadra": false,
        "name": "Taitila",
        "number": 19
      },
      "lang": "en",
      "nakshatra": {
        "lord": "Jupiter",
        "name": "Purva Bhadrapada",
        "number": 25,
        "pada": 1
      },
      "place": {
        "lat": 28.6139,
        "lon": 77.209,
        "tz": "Asia/Kolkata",
        "utc_offset_hours": 5.5
      },
      "rahu_kaal": {
        "end": "14:46:19",
        "start": "13:26:21"
      },
      "sunrise": "06:46:29",
      "sunset": "17:26:16",
      "tithi": {
        "class": "Purna",
        "name": "Shukla Dashami",
        "number": 10,
        "paksha": "Shukla"
      },
      "vara": "Thursday",
      "varjyam": {
        "end": "14:25",
        "start": "12:46"
      },
      "yamaganda": {
        "end": "08:06:27",
        "start": "06:46:29"
      },
      "yoga": {
        "name": "Harshana",
        "number": 14
      },
      "units": 1,
      "request_id": "req_EzfcU78gEx"
    }
  4. See it in Request logs

    Open Request logs in your dashboard. The call shows with its endpoint, status, time, API calls counted and your end-user tag. You can also read logs from code with GET /logs, free to call.

Next steps