Documentation

Introduction

The Panchangam API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

The API key you use to authenticate the request determines whether the request is live mode or test mode.

The Panchangam API is currently in Alpha testing mode. We are continously Improving the api experience and the documentation.

We would like to warn developers to excersie caution as frequesnt changes might break your applications. Developers are requested to review all the documentation and changelog frequently to know of the changes as we release new versions and tailor functionality.

We also encourage developers and user to provide feedback so as to improve api experience.



Authentication

Subscribe to Portal's API announce mailing list for updates.

endpoints should always be prepended by https://api.astroapi.dev/kundali/v1


request Type Post

As of now we do not permit unauthenticated requests to our api.

So we request the developers to create an account with us and visit their profile page for the auth token.

Get your token Here it's Free

As an auth token is a secret please do not share your token with others. and use ssl while contacting our api.

All request must contain their auth token in the request header



Errors

Our API uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicates that a request failed with the information provided (e.g., a required parameter was omitted, etc.). Codes in the 5xx range indicate an error with our servers.

HTTP STATUS CODE

CODE STATUS Description
200 OK Everything worked as expected
400 Bad Request The request couldn't be completed
401 Unauthorized No valid API key was provided
404 Not Found The requested resource could not be found
422 Unprocessable Entity Values provided are incorrect (e.g. invalid format) or a required parameter is missing
500, 502, 503, 504 Server Errors Server Error . Try after some time or contact support


Endpoints


Transit vedic/v0/gochar/
Endpoint vedic/v0/gochar/
method
Auth Required True
ParametersNone
Code Example:
EXAMPLE JSON API RESPONSE
{
    "ayanamsha": [24, 8, 28],
    "sun": [11, 17, 9, 13],
    "moon": [ 2, 6, 46, 40],
    "mars": [9, 6, 22, 20],
    "mercury": [10, 20, 34, 36],
    "jupiter": [9, 0, 12, 2],
    "venus": [1, 2, 57, 51],
    "saturn": [9, 6, 30, 21],
    "rahu": [2, 9, 18, 40],
    "ketu": [8, 9, 18, 40],
    "uranus": [0, 10, 59, 55],
    "neptune": [10, 25, 6, 43],
    "pluto": [9, 0, 41, 44]
}


Horary vedic/v0/prashna
Endpoint vedic/v0/prashna
method
Auth Required True
Parameterslatitude
longitude
Place Name (Optional)
Code Example:
EXAMPLE JSON API RESPONSE
{
    "ayanamsha": [24, 8, 28],
    "sun": [11, 17, 9, 13],
    "moon": [ 2, 6, 46, 40],
    "mars": [9, 6, 22, 20],
    "mercury": [10, 20, 34, 36],
    "jupiter": [9, 0, 12, 2],
    "venus": [1, 2, 57, 51],
    "saturn": [9, 6, 30, 21],
    "rahu": [2, 9, 18, 40],
    "ketu": [8, 9, 18, 40],
    "uranus": [0, 10, 59, 55],
    "neptune": [10, 25, 6, 43],
    "pluto": [9, 0, 41, 44]
    "house1": [11, 17, 12, 29],
    "house2": [11, 17, 12, 29],
    "house3": [11, 17, 12, 29],
    "house4": [11, 17, 12, 29],
    "house5": [11, 17, 12, 29],
    "house6": [11, 17, 12, 29],
    "house7": [11, 17, 12, 29],
    "house8": [11, 17, 12, 29],
    "house9": [11, 17, 12, 29],
    "house10": [11, 17, 12, 29],
    "house11": [11, 17, 12, 29],
    "house12": [11, 17, 12, 29]
}


Panchang Now vedic/v0/now/
Endpoint vedic/v0/now/
method
Auth Required True
Parameterslatitude
longitude
Place Name (Optional)
Code Example:
EXAMPLE JSON API RESPONSE
{
    "date": "2020-03-31T15:19:31Z",
    "place": "UKN",
    "tithi": 7,
    "paksha": "ShuklaPaksha",
    "varH": "Tuesday",
    "varE": "Tuesday",
    "nakshatraName": "Ardra",
    "nakshatraCharan": 2,
    "yog": "sobhana",
    "karan": "Vanij",
    "sunrise": "2020-03-31T00:44:13Z",
    "sunset": "2020-03-31T13:06:29Z",
    "moonrise": "2020-03-31T10:52:45Z",
    "moonset": "2020-04-01T00:38:41Z",
    "latitude": 23.415499999999998,
    "longitude": 77.23240000000001,
    "maahSolar": "Meen",
    "maahPurnimant": "chaitra",
    "maahAmant": "phalguna",
    "ritu": "Vasant",
    "ayan": "UttarAyan",
    "gol": "DakshinGol"
}


Horoscope vedic/v0/kundali/
Endpoint vedic/v0/kundali/
method
Auth Required True
Parametersyear (integer)
month (integer)
day (integer)
hour (integer)
minute (integer)
second (integer)
timezone (string Valid Timezone string)
dst ( Day Light Savings boolean)
place name (String)
lat (latitude Floating point number)
lon (longitude floating point Number)
Code Example:
EXAMPLE JSON API RESPONSE

{
    "ayanamsha": "24°8'28\"",
    "house1": "03:09:04:16",
    "house2": "04:07:35:48",
    "house3": "05:06:07:20",
    "house4": "06:04:38:53",
    "house5": "07:06:07:21",
    "house6": "08:07:35:49",
    "house7": "09:09:04:16",
    "house8": "10:07:35:48",
    "house9": "11:06:07:20",
    "house10": "00:04:38:53",
    "house11": "01:06:07:21",
    "house12": "02:07:35:49",
    "sun": "11:12°59'06\"",
    "moon": "00:15°06'59\"",
    "mars": "09:03°26'29\"",
    "mercury": "10:15°28'43\"",
    "jupiter": "08:29°39'06\"",
    "venus": "00:28°57'13\"",
    "saturn": "09:06°13'47\"",
    "rahu": "02:09°32'04\" ↺",
    "ketu": "08:09°32'04\" ↺",
    "uranus": "00:10°46'29\"",
    "neptune": "10:24°57'34\"",
    "pluto": "09:00°38'23\"",
    "tithi": 3,
    "nakshatraName": "Bharani",
    "nakshatraCharan": 2,
    "vaarH": "Friday",
    "vaarE": "Friday",
    "yog": "vaidhriti",
    "karan": "Gar",
    "paksha": "ShuklaPaksha",
    "maahSolar": "Meen",
    "maahLunarPurnimant": "chaitra",
    "maahLunarAmant": "phalguna",
    "ritu": "Vasant",
    "ayan": "UttarAyan",
    "gol": "DakshinGol",
    "sunrise": "2020-03-27T00:45:57Z",
    "sunset": "2020-03-27T13:02:44Z",
    "moonrise": "2020-03-27T08:08:04Z",
    "moonset": "2020-03-27T21:00:17Z"
}