AstrologyAPI

Matching Ashtakoot Points

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

The response provides the Ashtakoota matching score between a male and a female, based on eight different parameters such as Varna, Vashya, Tara, Yoni, Maitri, Gan, Bhakut, and Nadi. It also provides a conclusion stating whether the matching is favorable or not.

POST/match_ashtakoot_points
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/match_ashtakoot_points"
9
10# Request data
11data = {
12        "m_day": 10,
13        "m_month": 5,
14        "m_year": 1990,
15        "m_hour": 11,
16        "m_min": 55,
17        "m_lat": 19.2056,
18        "m_lon": 25.2056,
19        "m_tzone": 5.5,
20        "f_day": 10,
21        "f_month": 5,
22        "f_year": 1990,
23        "f_hour": 11,
24        "f_min": 55,
25        "f_lat": 19.2056,
26        "f_lon": 25.2056,
27        "f_tzone": 5.5
28    }
29
30headers = {
31    'x-astrologyapi-key': api_key,
32    'Content-Type': 'application/json'
33    # Add 'Accept-Language': '<language_code>' if needed
34}
35
36try:
37    response = requests.post(api_url, headers=headers, json=data)
38    response.raise_for_status()  # Raise an exception for bad status codes (4xx or 5xx)
39
40    # Process the response
41    response_data = response.json()
42    print(json.dumps(response_data, indent=4))
43
44except requests.exceptions.RequestException as e:
45    print(f"Error making API request: {e}")
46    if hasattr(e, 'response') and e.response is not None:
47        try:
48            print(f"Error response: {e.response.json()}")
49        except json.JSONDecodeError:
50             print(f"Error response (non-JSON): {e.response.text}")
51
52
200Response
Copy
1{
2  "varna": {
3    "description": "Natural Refinement / Work",
4    "male_koot_attribute": "Kshatriya",
5    "female_koot_attribute": "Kshatriya",
6    "total_points": 1,
7    "received_points": 1
8  },
9  "vashya": {
10    "description": "Innate Giving / Attraction towards each other",
11    "male_koot_attribute": "Chatuspad",
12    "female_koot_attribute": "Chatuspad",
13    "total_points": 2,
14    "received_points": 2
15  },
16  "tara": {
17    "description": "Comfort - Prosperity - Health",
18    "total_points": 3,
19    "received_points": 0
20  },
21  "yoni": {
22    "description": "Intimate Physical",
23    "total_points": 4,
24    "received_points": 0
25  },
26  "maitri": {
27    "description": "Friendship",
28    "male_koot_attribute": "Mars",
29    "female_koot_attribute": "Mars",
30    "total_points": 5,
31    "received_points": 5
32  },
33  "gan": {
34    "description": "Temperament",
35    "male_koot_attribute": "",
36    "female_koot_attribute": "",
37    "total_points": 6,
38    "received_points": 6
39  },
40  "bhakut": {
41    "description": "Constructive Ability / Constructivism / Society and Couple",
42    "male_koot_attribute": "Aries",
43    "female_koot_attribute": "Aries",
44    "total_points": 7,
45    "received_points": 7
46  },
47  "nadi": {
48    "description": "Progeny / Excess",
49    "male_koot_attribute": "",
50    "female_koot_attribute": "",
51    "total_points": 8,
52    "received_points": 0
53  },
54  "total": {
55    "total_points": 36,
56    "received_points": 21,
57    "minimum_required": 18
58  },
59  "conclusion": {
60    "status": true,
61    "report": "Ashtakoota Matching between male and female is 21 points out of 36 points. This is a reasonably good score. Moreover, your rashi lords are friendly with each other thereby signifying mental compatibility and mutual affection between the two. Hence, this is a favourable Ashtakoota match."
62  }
63}

Request Headers

Authorization

string

required

Basic Authorization via header

Accept-Language

string

Preferred language for the response content

Properties

English - enHindi - hiMarathi - maBengali - bnTamil - taTelugu - teMalayalam - mlKannada - kn

Request Parameters

m_day

int

required

Day of birth, eg: 10

m_month

int

required

Month of birth, eg: 5

m_year

int

required

Year of birth, eg: 1990

m_hour

int

required

Hour of birth, eg: 11

m_min

int

required

Minute of birth, eg: 55

m_lat

float

required

Latitude, eg: 19.2056

m_lon

float

required

Longitude, eg: 25.2056

m_tzone

float

required

Timezone, eg: 5.5

f_day

int

required

Day of birth, eg: 10

f_month

int

required

Month of birth, eg: 5

f_year

int

required

Year of birth, eg: 1990

f_hour

int

required

Hour of birth, eg: 11

f_min

int

required

Minute of birth, eg: 55

f_lat

float

required

Latitude, eg: 19.2056

f_lon

float

required

Longitude, eg: 25.2056

f_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.