search

Copy page

Copy page as Markdown for LLMs

View as Markdown

View this page as plain text


Open in ChatGPT

Ask ChatGPT about this page

Open in Claude

Ask Claude about this page

Pitra Dosha API

This documentation explains how to use the Pitra Dosha API to determine whether Pitra Dosha is present in a native’s horoscope and, if present, to fetch interpretive content and recommended remedies.


Step by Step Yogas API Postman Testing Integration

Step by Step Yogas API Postman Testing Integration


Supported Language Codes

Support Article URL
https://support.divineapi.com/general-api-support/translating-an-indian-vedic-apis-into-a-different-language

CodeLanguage
enEnglish
hiHindi
bnBengali
maMarathi
tmTamil
tlTelugu
mlMalayalam
knKannada

Guide
These languages are supported by this API. You can pass the lan parameter in the body with one of the above codes. If not passed, the API defaults to en.


API Endpoint

POST https://astroapi-3.divineapi.com/indian-api/v1/pitra-dosha

Description

This API evaluates the birth details and identifies whether Pitra Dosha is present.

If Pitra Dosha is not present, it returns a simple response with pitra_dosha: "false".

If Pitra Dosha is present, it returns descriptive text explaining the karmic basis and a list of standard Vedic/ritual remedies.


Headers

NameTypeDescription
Authorization*StringYour API access token, e.g. Bearer {token}

Request Body

NameTypeDescription
api_key*StringYour API key
full_name*StringFull name, e.g. Rahul kumar
day*IntegerDate of birth, e.g. 24
month*IntegerMonth of birth, e.g. 05
year*IntegerYear of birth, e.g. 2023
hour*IntegerHour of birth (24-hour), e.g. 14
min*IntegerMinute, e.g. 40
sec*IntegerSecond, e.g. 43
gender*StringGender, e.g. male
place*StringPlace of birth, e.g. New Delhi
lat*FloatLatitude, e.g. 28.7041
lon*FloatLongitude, e.g. 77.1025
tzone*FloatTimezone, e.g. 5.5 — see: Timezone List
lanStringOptional language code from the table above, default is en

200: OK Pitra Dosha Fetched Successfully

// If pitra dosha is false
{
    "success": 1,
    "data": {
        "pitra_dosha": "false",
        "content": {
            "detail": []
        },
        "remedies": []
    }
}

// If pitra dosha is true
{
    "success": 1,
    "data": {
        "pitra_dosha": "true",
        "content": {
            "detail": [
                "This is a dosha which occurs in your chart due to the effect of the curse in the life of your ancestors. It could be possible that one or more of your ancestors (pitras) carried some sinful or unapproved deeds in their life. The malice created by the virtue of their bad karma gets forwarded to their further generations. Thus pitradosh is an inheritence of the karmic debt of the family line and you have to accpet it. Some of the effects of this dosha is delayed marriage, chronic ailments in the family, financial misery, accidents and death."
            ]
        },
        "remedies": [
            "Perform Pitru Trapan and Shraddha Puja for the pacification of the souls of your ancestors.",
            "Feed Brahmins and donate red clothes to them.",
            "Perform Rudrabhishekam and offer water to the banyan tree.",
            "Feed cows, dogs and crows daily.",
            "Chant Mahamrityunjaya Mantra 1,25,000 times and wear a rudraksha mala.",
            "Organise a Narayan Bali Shraddha at the bank of a sacred river."
        ]
    }
}

Code Examples

cURL

curl --location 'https://astroapi-3.divineapi.com/indian-api/v1/pitra-dosha' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'full_name="Rahul kumar"' \
--form 'day="24"' \
--form 'month="05"' \
--form 'year="2023"' \
--form 'hour="14"' \
--form 'min="40"' \
--form 'sec="43"' \
--form 'gender="male"' \
--form 'place="New Delhi "' \
--form 'lat="28.7041"' \
--form 'lon="77.1025"' \
--form 'tzone="5.5"' \
--form 'lan="en"'

NodeJS

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://astroapi-3.divineapi.com/indian-api/v1/pitra-dosha',
  'headers': {
    'Authorization': 'Bearer {Your Auth Token}'
  },
  formData: {
    'api_key': '{Your API Key}',
    'full_name': 'Rahul kumar',
    'day': '24',
    'month': '05',
    'year': '2023',
    'hour': '14',
    'min': '40',
    'sec': '43',
    'gender': 'male',
    'place': 'New Delhi ',
    'lat': '28.7041',
    'lon': '77.1025',
    'tzone': '5.5',
    'lan': 'en'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

JavaScript jQuery AJAX

var form = new FormData();
form.append("api_key", "{Your API Key}");
form.append("full_name", "Rahul kumar");
form.append("day", "24");
form.append("month", "05");
form.append("year", "2023");
form.append("hour", "14");
form.append("min", "40");
form.append("sec", "43");
form.append("gender", "male");
form.append("place", "New Delhi ");
form.append("lat", "28.7041");
form.append("lon", "77.1025");
form.append("tzone", "5.5");
form.append("lan", "en");

var settings = {
  "url": "https://astroapi-3.divineapi.com/indian-api/v1/pitra-dosha",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer {Your Auth Token}"
  },
  "processData": false,
  "mimeType": "multipart/form-data",
  "contentType": false,
  "data": form
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

Python

import requests

url = "https://astroapi-3.divineapi.com/indian-api/v1/pitra-dosha"

payload = {'api_key': '{Your API Key}',
'full_name': 'Rahul kumar',
'day': '24',
'month': '05',
'year': '2023',
'hour': '14',
'min': '40',
'sec': '43',
'gender': 'male',
'place': 'New Delhi ',
'lat': '28.7041',
'lon': '77.1025',
'tzone': '5.5',
'lan': 'en'}

headers = {
  'Authorization': 'Bearer {Your Auth Token}'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)