Basic Panchang/planet_panchang/sunrise
Provides panchang planetary degrees and retrograde positions of panchang day sunrise
API Endpoint
planet_panchang/sunrise
Method & URL
| Method | Full URL | 
|---|---|
| POST | https://json.astrologyapi.com/v1/planet_panchang/sunrise | 
We have two types of Panchang APIs
 1. Panchang at specified date and time
 Here, following APIs are used and date and time along with latitude, longitude and timezone are expected -
 2. Panchang at Sunsrise for given day
 Following APIs should be used for getting the panchang data points at the time of sunrise which are used by traditional calendars-
- 1. basic_panchang/sunrise
- 2. planet_panchang/sunrise
- 2. advanced_panchang/sunrise
- 4. chaughadiya_muhurta
- 5. hora_muhurta
" Here only date along with latitude, longitude and timezone are expected to be passed. No time is required. "
Response Data
			
				[{
	"id": 0,
	"name": "Sun",
	"fullDegree": 312.30400347269256,
	"normDegree": 12.304003472692557,
	"isRetro": "false",
	"sign": "Aquarius",
	"sign_lord": "Saturn",
	"nakshatra": "Shatbhisha",
	"nakshatra_lord": "Rahu"
}, {
	"id": 1,
	"name": "Moon",
	"fullDegree": 37.45112477913563,
	"normDegree": 7.4511247791356325,
	"isRetro": "false",
	"sign": "Taurus",
	"sign_lord": "Venus",
	"nakshatra": "Krittika",
	"nakshatra_lord": "Sun"
}, {
	"id": 2,
	"name": "Mars",
	"fullDegree": 340.0086052768496,
	"normDegree": 10.008605276849607,
	"isRetro": "false",
	"sign": "Pisces",
	"sign_lord": "Jupiter",
	"nakshatra": "Uttra Bhadrapad",
	"nakshatra_lord": "Saturn"
}, {
	"id": 3,
	"name": "Mercury",
	"fullDegree": 285.56691716258143,
	"normDegree": 15.566917162581433,
	"isRetro": "false",
	"sign": "Capricorn",
	"sign_lord": "Saturn",
	"nakshatra": "Shravan",
	"nakshatra_lord": "Moon"
}, {
	"id": 4,
	"name": "Jupiter",
	"fullDegree": 111.19916911928078,
	"normDegree": 21.199169119280782,
	"isRetro": "true",
	"sign": "Cancer",
	"sign_lord": "Moon",
	"nakshatra": "Ashlesha",
	"nakshatra_lord": "Mercury"
}, {
	"id": 5,
	"name": "Venus",
	"fullDegree": 341.4409638339589,
	"normDegree": 11.440963833958904,
	"isRetro": "false",
	"sign": "Pisces",
	"sign_lord": "Jupiter",
	"nakshatra": "Uttra Bhadrapad",
	"nakshatra_lord": "Saturn"
}, {
	"id": 6,
	"name": "Saturn",
	"fullDegree": 220.60759834888617,
	"normDegree": 10.607598348886171,
	"isRetro": "false",
	"sign": "Scorpio",
	"sign_lord": "Mars",
	"nakshatra": "Anuradha",
	"nakshatra_lord": "Saturn"
}, {
	"id": 7,
	"name": "Rahu",
	"fullDegree": 167.93931821066,
	"normDegree": 17.93931821065999,
	"isRetro": "true",
	"sign": "Virgo",
	"sign_lord": "Mercury",
	"nakshatra": "Hast",
	"nakshatra_lord": "Moon"
}, {
	"id": 8,
	"name": "Ketu",
	"fullDegree": 347.93931821065996,
	"normDegree": 17.939318210659962,
	"isRetro": "true",
	"sign": "Pisces",
	"sign_lord": "Jupiter",
	"nakshatra": "Revati",
	"nakshatra_lord": "Mercury"
}, {
	"id": 9,
	"name": "Asc",
	"fullDegree": 57.565378655311946,
	"normDegree": 27.565378655311946,
	"isRetro": false,
	"sign": "Taurus",
	"sign_lord": "Venus",
	"nakshatra": "Mrigshira",
	"nakshatra_lord": "Mars"
}]			
		
			| Params | Data type | Descriptions | 
| day month year lat lon tzone | int int int float float float | panchang day, eg: 10 panchang month, eg: 7 panchang year, eg: 2014 panchang place latitude, eg: 18.7250 panchang place longitude, eg: 72.250 panchang place timezone, eg: 5.5 | 
            
                var api = 'API_ENDPOINT_HERE';
var userId = 'YOUR_USER_ID';
var apiKey = 'YOUR_API_KEY';
var data = {
        day:12,
        month:3,
        year:1992,
        hour:2,
        min:23,
        lat:19.132,
        lon:72.342,
        tzone:5.5
    };
var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
method: "POST",
dataType:'json',
headers: {
    "authorization": "Basic " + btoa(userId+":"+apiKey),
    "Content-Type":'application/json'
},
    data:JSON.stringify(data)
});
request.then( function(resp){
    console.log(resp);
}, function(err){
    console.log(err);
});
                   
		
        
                
                    require_once 'VedicRishiClient.php';
$userId = "";
$apiKey = "";
$data = array(
    'date' => 25,
    'month' => 12,
    'year' => 1988,
    'hour' => 4,
    'minute' => 0,
    'latitude' => 25.123,
    'longitude' => 82.34,
    'timezone' => 5.5
);
$resourceName = 'API_ENDPOINT_HERE';
$vedicRishi = new VedicRishiClient($userId, $apiKey);
$responseData = $vedicRishi->call($resourceName, $data['date'], $data['month'], $data['year'], $data['hour'], $data['minute'], $data['latitude'], $data['longitude'], $data['timezone']);
echo $responseData;
                
             
            Download PHP Client
        