The ravi_yoga API provides the timing of Ravi Yoga, a Panchang combination traditionally associated with overcoming obstacles and carrying out important work. It is often considered when planning activities such as travel, official work, property-related matters, purchases, and other tasks where a favourable period is preferred. The API calculates when Ravi Yoga is active for the requested location and returns the corresponding start, end, and Panchang details.
Accept-Language: enGuide:These languages are supported by this API. You can use them by passing Accept-Language header with a value of the language code.
{
"yoga_name": "ravi_yoga",
"count": 7,
"yogas": [
{
"date": "03-08-2026",
"yoga": "ravi_yoga",
"name": "Ravi Yoga",
"start": "03-08-2026 22:00",
"spans_days": true,
"end": "04-08-2026 09:26",
"duration_hours": 11.4
},
{
"date": "04-08-2026",
"yoga": "ravi_yoga",
"name": "Ravi Yoga",
"start": "04-08-2026 21:54",
"spans_days": true,
"end": "05-08-2026 21:18",
"duration_hours": 23.4
},
{
"date": "15-08-2026",
"yoga": "ravi_yoga",
"name": "Ravi Yoga",
"start": "15-08-2026 03:42",
"spans_days": true,
"end": "16-08-2026 03:25",
"duration_hours": 23.7
},
{
"date": "17-08-2026",
"yoga": "ravi_yoga",
"name": "Ravi Yoga",
"start": "17-08-2026 03:50",
"spans_days": false,
"end": "17-08-2026 09:30",
"duration_hours": 5.7
},
{
"date": "18-08-2026",
"yoga": "ravi_yoga",
"name": "Ravi Yoga",
"start": "18-08-2026 04:58",
"spans_days": true,
"end": "19-08-2026 06:46",
"duration_hours": 25.8
},
{
"date": "21-08-2026",
"yoga": "ravi_yoga",
"name": "Ravi Yoga",
"start": "21-08-2026 11:52",
"spans_days": true,
"end": "23-08-2026 17:44",
"duration_hours": 53.9
},
{
"date": "25-08-2026",
"yoga": "ravi_yoga",
"name": "Ravi Yoga",
"start": "25-08-2026 22:51",
"spans_days": true,
"end": "27-08-2026 00:47",
"duration_hours": 25.9
}
]
}var api = 'monthly-panchang-yogas/ravi_yoga';
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);
});