Copy page
Copy page as Markdown for LLMs
Align celestial destinies for meaningful partnerships with the Matching Horoscope Chart API, which compares the intricate astrological charts of two individuals to reveal compatibility insights within the framework of Indian Astrology's Kundali Matching.
Step by Step Matching Horoscope Chart API Postman Testing Integration
| Chart ID | Description |
|---|---|
| chalit | Chalit Chart |
| SUN | Sun Chart |
| MOON | Moon Chart |
| D1 | Birth Chart |
| D2 | Hora Chart |
| D3 | Dreshkan Chart |
| D4 | Chathurthamasha Chart |
| D7 | Saptamansha Chart |
| D10 | Dashamansha Chart |
| D12 | Dwadashamsha Chart |
| D16 | Shodashamsha Chart |
| D20 | Vishamansha Chart |
| D24 | Chaturvimshamsha Chart |
| D27 | Bhamsha Chart |
| D30 | Trishamansha Chart |
| D40 | Khavedamsha Chart |
| D45 | Akshvedansha Chart |
| D60 | Shashtymsha Chart |
| cuspal | Cuspal Chart |
Support Article URL
https://support.divineapi.com/general-api-support/translating-an-indian-vedic-apis-into-a-different-language
| Code | Language |
|---|---|
| en | English |
| hi | Hindi |
| bn | Bengali |
| ma | Marathi |
| tm | Tamil |
| tl | Telugu |
| ml | Malayalam |
| kn | Kannada |
Guide: These languages are supported by this API. You can pass lan in the request body with a value corresponding to the desired language. Default is en.
POST https://astroapi-3.divineapi.com/indian-api/v1/matching/horoscope-chart/:chart_id
Returns the Matching Horoscope Chart for both individuals (P1 and P2) as SVG and base64 image formats.
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Your API Access Token (e.g., Bearer {token}) |
| Name | Type | Description |
|---|---|---|
| api_key* | String | Your API key |
| p1_full_name* | String | Person 1 Full Name, e.g. Rahul Kumar |
| p1_day* | Integer | Person 1 Date of Birth, e.g. 24 |
| p1_month* | Integer | Person 1 Month of Birth, e.g. 05 |
| p1_year* | Integer | Person 1 Year of Birth, e.g. 1998 |
| p1_hour* | Integer | Person 1 Hour, e.g. 14 |
| p1_min* | Integer | Person 1 Minute, e.g. 40 |
| p1_sec* | Integer | Person 1 Second, e.g. 43 |
| p1_gender* | String | Person 1 Gender, e.g. male |
| p1_place* | String | Person 1 Birth Place, e.g. New Delhi |
| p1_lat* | Float | Person 1 Latitude, e.g. 28.7041 |
| p1_lon* | Float | Person 1 Longitude, e.g. 77.1025 |
| p1_tzone* | Float | Person 1 Timezone, e.g. 5.5 |
| p2_full_name* | String | Person 2 Full Name, e.g. Simran Kumari |
| p2_day* | Integer | Person 2 Date of Birth |
| p2_month* | Integer | Person 2 Month of Birth |
| p2_year* | Integer | Person 2 Year of Birth |
| p2_hour* | Integer | Person 2 Hour |
| p2_min* | Integer | Person 2 Minute |
| p2_sec* | Integer | Person 2 Second |
| p2_gender* | String | Person 2 Gender, e.g. female |
| p2_place* | String | Person 2 Birth Place |
| p2_lat* | Float | Person 2 Latitude |
| p2_lon* | Float | Person 2 Longitude |
| p2_tzone* | Float | Person 2 Timezone |
| lan | String | Language code as per the table above (default: en) |
{
"success": 1,
"data": {
"data": {
"p1": {
"svg": "SVG CODE",
"data": "raw_data",
"base64_image": "base64_svg_image",
},
"p2": {
"svg": "SVG CODE",
"data": "raw_data",
"base64_image": "base64_svg_image",
}
}
}
}Each person’s horoscope data includes:
svg: The horoscope chart in SVG format
base64_image: The same chart as a Base64-encoded image
data: Raw astrological data for internal or analytical use
Below are examples of how you might call this API using different programming languages and environments.
curl --location 'https://astroapi-3.divineapi.com/indian-api/v1/matching/horoscope-chart/:chart_id' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'p1_full_name="Rahul Kumar"' \
--form 'p1_day="24"' \
--form 'p1_month="05"' \
--form 'p1_year="1998"' \
--form 'p1_hour="14"' \
--form 'p1_min="40"' \
--form 'p1_sec="43"' \
--form 'p1_gender="male"' \
--form 'p1_place="New Delhi"' \
--form 'p1_lat="28.7041"' \
--form 'p1_lon="77.1025"' \
--form 'p1_tzone="5.5"' \
--form 'p2_full_name="Simran Kumari"' \
--form 'p2_day="24"' \
--form 'p2_month="05"' \
--form 'p2_year="1998"' \
--form 'p2_hour="14"' \
--form 'p2_min="40"' \
--form 'p2_sec="43"' \
--form 'p2_gender="female"' \
--form 'p2_place="New Delhi"' \
--form 'p2_lat="28.7041"' \
--form 'p2_lon="77.1025"' \
--form 'p2_tzone="5.5"' \
--form 'lan="en"'var request = require("request");
var options = { method: 'POST',
url: 'https://astroapi-3.divineapi.com/indian-api/v1/matching/horoscope-chart/:chart_id',
headers:
{ 'cache-control': 'no-cache',
authorization: 'Bearer {Your API Access Token}',
'content-type': 'application/json' },
formData:
{
api_key: '{Your API Key}',
p1_full_name: 'Rahul Kumar',
p1_place: 'New Delhi, India',
p1_gender: 'male',
p1_day: '24',
p1_month: '05',
p1_year: '2023',
p1_hour: '14',
p1_min: '40',
p1_sec: '43',
p1_lon: '77.1025',
p1_lat: '28.7041',
p1_tzone: '5.5',
p2_full_name: 'Simran Kumari',
p2_place: 'New Delhi, India',
p2_gender: 'female',
p2_day: '24',
p2_month: '05',
p2_year: '2023',
p2_hour: '14',
p2_min: '40',
p2_sec: '43',
p2_lon: '77.1025',
p2_lat: '28.7041',
p2_tzone: '5.5',
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
var form = new FormData();
form.append("api_key", "{Your API Key}");
form.append("p1_full_name", "Rahul Kumar");
form.append("p1_gender", "male");
form.append("p1_place", "New Delhi, India");
form.append("p1_day", "24");
form.append("p1_month", "05");
form.append("p1_year", "2023");
form.append("p1_hour", "14");
form.append("p1_min", "40");
form.append("p1_sec", "43");
form.append("p1_lon", "77.1025");
form.append("p1_lat", "28.7041");
form.append("p1_tzone", "5.5");
form.append("p2_full_name", "Simran Kumari");
form.append("p2_gender", "female");
form.append("p2_place", "New Delhi, India");
form.append("p2_day", "24");
form.append("p2_month", "05");
form.append("p2_year", "2023");
form.append("p2_hour", "14");
form.append("p2_min", "40");
form.append("p2_sec", "43");
form.append("p2_lon", "77.1025");
form.append("p2_lat", "28.7041");
form.append("p2_tzone", "5.5");
var settings = {
"async": true,
"crossDomain": true,
"url": "https://astroapi-3.divineapi.com/indian-api/v1/matching/horoscope-chart/:chart_id",
"method": "POST",
"headers": {
"authorization": "Bearer {Your API Access Token}",
"cache-control": "no-cache"
},
"processData": false,
"contentType": false,
"mimeType": "application/json",
"data": form
}
$.ajax(settings).done(function (response) {
console.log(response);
});import requests
url = "https://astroapi-3.divineapi.com/indian-api/v1/matching/horoscope-chart/:chart_id"
payload = {'api_key': '{Your API Key}',
'p1_full_name': 'Rahul Kumar',
'p1_day': '24',
'p1_month': '05',
'p1_year': '1998',
'p1_hour': '14',
'p1_min': '40',
'p1_sec': '43',
'p1_gender': 'male',
'p1_place': 'New Delhi',
'p1_lat': '28.7041',
'p1_lon': '77.1025',
'p1_tzone': '5.5',
'p2_full_name': 'Simran Kumari',
'p2_day': '24',
'p2_month': '05',
'p2_year': '1998',
'p2_hour': '14',
'p2_min': '40',
'p2_sec': '43',
'p2_gender': 'female',
'p2_place': 'New Delhi',
'p2_lat': '28.7041',
'p2_lon': '77.1025',
'p2_tzone': '5.5',
'lan': 'en'}
headers = {
'Authorization': 'Bearer {Your Auth Token}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)