AstrologyAPI

Lalkitab Debts

POSThttps://json.astrologyapi.com/v1/lalkitab_debts
Copy

The lalkitab_debts API provides information about various types of karmic debts or "debts" according to Lalkitab astrology. The response includes the debt name, indications of the debt in a person's horoscope, and the events or consequences that may arise from not addressing the debt.

POST/lalkitab_debts
Copy
1import requests
2import json
3
4# Your API key
5api_key = "<YOUR_API_KEY>"
6
7# API endpoint URL
8api_url = "https://json.astrologyapi.com/v1/lalkitab_debts"
9
10# Request data
11data = {
12        "day": 10,
13        "month": 5,
14        "year": 1990,
15        "hour": 19,
16        "min": 55,
17        "lat": 19.2056,
18        "lon": 25.2056,
19        "tzone": 5.5
20    }
21
22headers = {
23    'x-astrologyapi-key': api_key,
24    'Content-Type': 'application/json'
25    # Add 'Accept-Language': '<language_code>' if needed
26}
27
28try:
29    response = requests.post(api_url, headers=headers, json=data)
30    response.raise_for_status()  # Raise an exception for bad status codes (4xx or 5xx)
31
32    # Process the response
33    response_data = response.json()
34    print(json.dumps(response_data, indent=4))
35
36except requests.exceptions.RequestException as e:
37    print(f"Error making API request: {e}")
38    if hasattr(e, 'response') and e.response is not None:
39        try:
40            print(f"Error response: {e.response.json()}")
41        except json.JSONDecodeError:
42             print(f"Error response (non-JSON): {e.response.text}")
43
44
200Response
Copy
1[
2  {
3    "debt_name": "Self Debts",
4    "indications": "Fear from King, punishment or payment of penalty in legal suitseven though you are faultless; heart diseases, pain inshoulders, physical weakness, difficulty in eyes, spoiling life.",
5    "events": "The native will become an atheist, do not care dharma/religion,Health will not be favourable; the native will not follow the customs of ancestors."
6  },
7  {
8    "debt_name": "Debts to Relatives",
9    "indications": "killing or getting killed a she buffalo which is going to deliver a calf, performing black magic at the time of construction of a house or laying foundation stone by others, hating those people who mingle with the relatives of the native, keeping away in the functions like birth days of children or family festivals.",
10    "events": "The native cheats his friends, spoils the work done by others or burns the ripe crops in the agricultural fields of others."
11  },
12  {
13    "debt_name": "Father Debts",
14    "indications": "Changing or defaming of family priest, districting the shrine constructed along with residence, cutting or having holy long pepper tree.",
15    "events": "The hair of the any one of the elder’s persons in the family will become white. After turning to white,the hair colour starts becoming pale. Complaining of cough, or events like keeping the stigma of the bad actions of all other people on his head, etc., will happen."
16  }
17]

Request Headers

Authorization

string

required

Basic Authorization via header

Accept-Language

string

Preferred language for the response content

Properties

English - enHindi - hi

Request Parameters

day

int

required

Date of birth, eg: 10

month

int

required

Month of birth, eg: 5

year

int

required

Year of birth, eg: 1990

hour

int

required

Hour of birth, eg: 19

min

int

required

Minute of birth, eg: 55

lat

float

required

Latitude, eg: 19.2056

lon

float

required

Longitude, eg: 25.2056

tzone

float

required

Timezone, eg: 5.5

Errors

400
Bad Request

Something is wrong with your request format or parameters.

401
Unauthorized

Your API key is missing or invalid.

403
Forbidden

You don't have permission to access this specific resource.

404
Not Found

The API endpoint you're trying to reach doesn't exist.

500
Internal Server Error

Our server is having a temporary glitch.