SEARCH ASTROLOGY API DOCS

Home
Indian Astrology

Planet Panchang for sunrise/planet_panchang/sunrise

The planet_panchang/sunrise API returns the current location and astrological information of the sun, moon, and other planets such as Mars, Mercury, Jupiter, Venus, Saturn, Rahu, and Ketu. The response includes the name of the planet, its degree, retrograde status, sign, sign lord, nakshatra, and nakshatra lord.

API Endpoint : planet_panchang/sunrise
Method : POST
Full URL :
https://json.astrologyapi.com/v1/planet_panchang/sunrise

1. Panchang at specified date and time
Here, following APIs are used and date and time along with latitude, longitude and timezone are expected -

Request Data

ParamsData typeDescriptions

day required

month required

year required

hour required

min required

lat required

lon required

tzone required

int

int

int

int

int

float

float

float

date of birth, eg: 10

month of birth, eg: 5

year of birth, eg: 1990

hour, eg: 19

minute, eg: 55

latitude, eg: 19.2056

longitude, eg: 25.2056

timezone, eg: 5.5

Response Data

[
	{
		"id": 0,
		"name": "Sun",
		"fullDegree": 71.77888666545658,
		"normDegree": 11.778886665456582,
		"speed": 0.9537760063015251,
		"isRetro": "false",
		"sign": "Gemini",
		"sign_lord": "Mercury",
		"nakshatra": "Ardra",
		"nakshatra_lord": "Rahu",
		"nakshatra_pad": 2,
		"house": 1
	},
	{
		"id": 1,
		"name": "Moon",
		"fullDegree": 5.772492183288483,
		"normDegree": 5.772492183288483,
		"speed": 13.723199197888567,
		"isRetro": "false",
		"sign": "Aries",
		"sign_lord": "Mars",
		"nakshatra": "Ashwini",
		"nakshatra_lord": "Ketu",
		"nakshatra_pad": 2,
		"house": 11
	},
	{
		"id": 2,
		"name": "Mars",
		"fullDegree": 73.13356346586944,
		"normDegree": 13.133563465869443,
		"speed": 0.6652114715776548,
		"isRetro": "false",
		"sign": "Gemini",
		"sign_lord": "Mercury",
		"nakshatra": "Ardra",
		"nakshatra_lord": "Rahu",
		"nakshatra_pad": 2,
		"house": 1
	},
	{
		"id": 3,
		"name": "Mercury",
		"fullDegree": 85.61233222576432,
		"normDegree": 25.61233222576432,
		"speed": -0.26550052294800686,
		"isRetro": "true",
		"sign": "Gemini",
		"sign_lord": "Mercury",
		"nakshatra": "Punarvasu",
		"nakshatra_lord": "Jupiter",
		"nakshatra_pad": 2,
		"house": 1
	},
	{
		"id": 4,
		"name": "Jupiter",
		"fullDegree": 35.4387277189646,
		"normDegree": 5.4387277189646,
		"speed": 0.21242948526338745,
		"isRetro": "false",
		"sign": "Taurus",
		"sign_lord": "Venus",
		"nakshatra": "Krittika",
		"nakshatra_lord": "Sun",
		"nakshatra_pad": 3,
		"house": 12
	},
	{
		"id": 5,
		"name": "Venus",
		"fullDegree": 76.04268457565463,
		"normDegree": 16.042684575654633,
		"speed": 1.2289417860718146,
		"isRetro": "false",
		"sign": "Gemini",
		"sign_lord": "Mercury",
		"nakshatra": "Ardra",
		"nakshatra_lord": "Rahu",
		"nakshatra_pad": 3,
		"house": 1
	},
	{
		"id": 6,
		"name": "Saturn",
		"fullDegree": 32.350023938414004,
		"normDegree": 2.3500239384140045,
		"speed": 0.10945194691552036,
		"isRetro": "false",
		"sign": "Taurus",
		"sign_lord": "Venus",
		"nakshatra": "Krittika",
		"nakshatra_lord": "Sun",
		"nakshatra_pad": 2,
		"house": 12
	},
	{
		"id": 7,
		"name": "Rahu",
		"fullDegree": 91.78207756744874,
		"normDegree": 1.782077567448738,
		"speed": -0.05299201912835434,
		"isRetro": "true",
		"sign": "Cancer",
		"sign_lord": "Moon",
		"nakshatra": "Punarvasu",
		"nakshatra_lord": "Jupiter",
		"nakshatra_pad": 4,
		"house": 2
	},
	{
		"id": 8,
		"name": "Ketu",
		"fullDegree": 271.7820775674487,
		"normDegree": 1.7820775674487095,
		"speed": -0.05299201912835434,
		"isRetro": "true",
		"sign": "Capricorn",
		"sign_lord": "Saturn",
		"nakshatra": "Uttra Shadha",
		"nakshatra_lord": "Sun",
		"nakshatra_pad": 2,
		"house": 8
	},
	{
		"id": 9,
		"name": "Ascendant",
		"fullDegree": 70.81609396397643,
		"normDegree": 10.816093963976428,
		"speed": 0,
		"isRetro": false,
		"sign": "Gemini",
		"sign_lord": "Mercury",
		"nakshatra": "Ardra",
		"nakshatra_lord": "Rahu",
		"nakshatra_pad": 2,
		"house": 1
	}
]
POST
var api = 'planet_panchang/sunrise';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var language = '<Your Language>' // By default it is set to en
var data = {
  day: 6,
  month: 1,
  year: 2000,
  hour: 7,
  min: 45,
  lat: 19.132,
  lon: 72.342,
  tzone: 5.5,
};

var auth = "Basic " + new Buffer(userId + ":" + apiKey).toString("base64");

var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
method: "POST",
dataType:'json',
headers: {
    "authorization": auth,
    "Content-Type":'application/json',
    "Accept-Language": language 
},
    data:JSON.stringify(data)
});

request.then( function(resp){
    console.log(resp);
}, function(err){
    console.log(err);
});