Copy page
Copy page as Markdown for LLMs
Visualize the complete astrological snapshot of a birth moment with the Natal Wheel Chart API. This endpoint generates an astrology wheel (SVG/base64) showing planetary placements, houses, and zodiac positions based on birth data. You can also customize colors, symbols, and house systems for seamless integration into web or mobile apps.
Step by Step Natal Wheel Chart API Postman Testing Integration
Support Article URL: https://support.divineapi.com/general-api-support/translating-a-natal-apis-into-a-different-language
You can return the response in different languages by passing lan in the request body.
| Code | Language |
|---|---|
| en | English |
| hi | Hindi |
| pt | Portuguese |
| fr | French |
| de | German |
| ja | Japanese |
| tr | Turkish |
| ru | Russian |
| it | Italian |
| es | Spanish |
| nl | Dutch |
| pl | Polish |
Guide: These languages are supported by this API. Use "lan": "<code>" in the body to switch.
House System Codes Support Article URL: https://support.divineapi.com/western-astrology-apis/how-to-change-the-house-system-code-in-natal-astrology
| Code | House System Description |
|---|---|
| P | Placidus (default) |
| K | Koch |
| R | Regiomontanus |
| C | Campanus |
| A | Equal |
| W | Equal, whole sign |
| N | Whole sign, Aries = 1st house |
| X | Axial rotation system / Meridian houses |
| T | Polich/Page (topocentric) |
| M | Morinus |
| O | Porphyry |
| B | Alcabitius |
| D | Equal / MC |
| E | Equal = A |
| F | Carter poli-equatorial |
| G | 36 Gauquelin sectors |
| H | Horizon / azimuth |
| I | Sunshine |
| i | Sunshine alternative |
| L | Pullen |
| Q | Pullen S-ratio |
| S | Sripati |
| U | Krusinski-Pisa-Goelzer |
| V | Equal Vehlow |
| Y | APC houses |
Note: If house_system is not sent, the API uses P (Placidus).
POST https://astroapi-4.divineapi.com/western-api/v1/natal-wheel-chart
Returns the natal wheel chart in SVG and base64 formats.
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Your API access token. Example: Bearer {token} |
| Name | Type | Description |
|---|---|---|
| api_key* | String | Your API key |
| full_name* | String | Full name, e.g. Rahul Kumar |
| day* | Integer | Date of birth, e.g. 24 |
| month* | Integer | Month of birth, e.g. 05 |
| year* | Integer | Year of birth, e.g. 2023 |
| hour* | Integer | Hour (24h), e.g. 14 |
| min* | Integer | Minute, e.g. 40 |
| sec* | Integer | Second, e.g. 43 |
| gender* | String | e.g. male |
| place* | String | e.g. New Delhi, India |
| lat* | Float | Latitude, e.g. 28.7041 |
| lon* | Float | Longitude, e.g. 77.1025 |
| tzone* | Float | Timezone, e.g. 5.5 (see timezone guide) |
| lan | String | Language code, default en |
| show_symbol | Integer | 1 to show symbols on chart, 0 to hide, default 0 |
| house_system | String | House system code, default P |
| wheel_lines | String | Hex color for lines, e.g. #7c7c7c |
| wheel_color | String | Hex color for main wheel strokes, e.g. #000 |
| text_color | String | Hex color for text, e.g. #000 |
| outter_background | String | Outer background color, e.g. #fff |
| wheel_background | String | Inner wheel background color, e.g. #fff |
Fields marked with * are mandatory.
{
"success": 1,
"data": {
"svg": "SVG CODE",
"base64_image": "base64_svg_image"
}
}The svg can be rendered directly in web apps. The base64_image can be saved or displayed as an image.
Below are example implementations in various programming environments.
curl --location 'https://astroapi-4.divineapi.com/western-api/v1/natal-wheel-chart' \
--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, India"' \
--form 'lat="28.7041"' \
--form 'lon="77.1025"' \
--form 'tzone="5.5"' \
--form 'lan="en"' \
--form 'house_system="P"' \
--form 'show_symbol="1"' \
--form 'wheel_color="#000"' \
--form 'text_color="#000"'
var request = require('request');
var options = {
method: 'POST',
url: 'https://astroapi-4.divineapi.com/western-api/v1/natal-wheel-chart',
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, India',
'lat': '28.7041',
'lon': '77.1025',
'tzone': '5.5',
'lan': 'en',
'house_system': 'P',
'show_symbol': '1'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
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, India");
form.append("lat", "28.7041");
form.append("lon", "77.1025");
form.append("tzone", "5.5");
form.append("lan", "en");
form.append("house_system", "P");
form.append("show_symbol", "1");
var settings = {
url: "https://astroapi-4.divineapi.com/western-api/v1/natal-wheel-chart",
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);
});
import requests
url = "https://astroapi-4.divineapi.com/western-api/v1/natal-wheel-chart"
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, India',
'lat': '28.7041',
'lon': '77.1025',
'tzone': '5.5',
'lan': 'en',
'house_system': 'P',
'show_symbol': '1'
}
headers = {
'Authorization': 'Bearer {Your Auth Token}'
}
response = requests.post(url, headers=headers, data=payload)
print(response.text)
Always send accurate birth time, latitude, longitude, and timezone to avoid incorrect house cusps.
Use house_system only if you want to override the default Placidus.
To embed in frontend, prefer the svg field; to download/store, use base64_image.
Keep color values in valid hex format (#000, #ffffff) when customizing the chart.