Astrology API Reference Documentation

Advanced Panchang/find_nakshatra/:nakshatraName

Get nakshatra details by nakshatra name

API Endpoint

find_nakshatra/:nakshatraName

Method & URL
Method Full URL
POST https://json.astrologyapi.com/v1/find_nakshatra/:nakshatraName

Response Data

			
				{
    "nakshatra_to_find": "ashwini",
    "find_date": "17-6-2017",
    "past_matches": [
        {
            "nakshatra": "Ashwini",
            "start_time": "2-2-2017  15:41",
            "end_time": "3-2-2017  14:32"
        },
        {
            "nakshatra": "Ashwini",
            "start_time": "1-3-2017  21:46",
            "end_time": "2-3-2017  20:12"
        },
        {
            "nakshatra": "Ashwini",
            "start_time": "29-3-2017  6:7",
            "end_time": "30-3-2017  3:54"
        },
        {
            "nakshatra": "Ashwini",
            "start_time": "25-4-2017  16:22",
            "end_time": "26-4-2017  13:50"
        },
        {
            "nakshatra": "Ashwini",
            "start_time": "23-5-2017  2:50",
            "end_time": "24-5-2017  0:33"
        }
    ],
    "future_matches": [
        {
            "nakshatra": "Ashwini",
            "start_time": "19-6-2017  11:54",
            "end_time": "20-6-2017  10:14"
        },
        {
            "nakshatra": "Ashwini",
            "start_time": "16-7-2017  18:46",
            "end_time": "17-7-2017  17:49"
        },
        {
            "nakshatra": "Ashwini",
            "start_time": "13-8-2017  0:18",
            "end_time": "13-8-2017  23:34"
        },
        {
            "nakshatra": "Ashwini",
            "start_time": "9-9-2017  6:13",
            "end_time": "10-9-2017  5:8"
        },
        {
            "nakshatra": "Ashwini",
            "start_time": "6-10-2017  13:59",
            "end_time": "7-10-2017  12:21"
        }
    ]
}			
		
Params Data type Descriptions

day

month

year

hour

min

lat

lon

tzone

int

int

int

int

int

float

float

float

panchang day, eg: 10

panchang month, eg: 7

panchang year, eg: 2014

panchang hour, eg: 10

panchang minute, eg: 12

panchang place latitude, eg: 18.7250

panchang place longitude, eg: 72.250

panchang place timezone, eg: 5.5

            
                var userId = '';
var apiKey = '';
var data = 'JSON Request Data';
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)
});
// Returns A promiss
return( request.then( function(resp){
    return resp;
}, function(err){
    return 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 = "astro_details";
$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