AstrologyAPI

Match Making Report

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

The match_making_report API returns a report on the compatibility between two individuals based on several factors such as ashtakoota, manglik, rajju dosha, and vedha dosha. The response includes the status and details for each factor and concludes with a match report recommending the marriage.

POST/match_making_report
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_making_report"
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  "ashtakoota": {
3    "status": true,
4    "received_points": 21
5  },
6  "manglik": {
7    "status": true,
8    "male_percentage": 27.5,
9    "female_percentage": 28.25
10  },
11  "rajju_dosha": {
12    "status": false
13  },
14  "vedha_dosha": {
15    "status": false
16  },
17  "conclusion": {
18    "match_report": "Marriage between the prospective bride and groom is highly recommended. The couple would have a long-lasting relationship, which would be filled with happiness and affluence."
19  }
20}

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.