POST/v1/astro/chart
Generate Kundali chart SVG
Generate Vedic astrological chart SVGs. Always returns North Indian and South Indian charts for Lagna (D1) and Navamsa (D9), as SVG strings. Each planet shows abbreviation, degree°minutes', and its marks. North Indian charts number each house with its sign (Mesha = 1), as tradition does; South Indian charts show house numbers counted from the Lagna, and East Indian charts show sign names only. Send vargas (any of D1, D2, D3, D4, D7, D9, D10, D12, D16, D20, D24, D27, D30, D40, D45, D60) and styles (north, south, east) to also get those divisional charts in vargas. Marks: R (Vakri) and ↑/↓ (exalted/debilitated in that chart's sign, BPHS Ch. 3) on every drawing; C (Asta) and V (Vargottama) on D1 and D9 only. Options: show_degrees, theme (light/dark), colors, transparent, show_details (name, date, time, place). The response contains SVG strings for each chart style. To render them: 1. In browser: create an HTML file, paste the SVG string directly into the body tag. 2. In React/Vue/Angular: use dangerouslySetInnerHTML or v-html to render the SVG string. 3. To preview instantly: copy the lagna_north value and paste into https://svgviewer.dev Chart styles returned: - lagna_north: North Indian style (diamond layout) - lagna_south: South Indian style (square grid layout) - navamsa_north: D9 Navamsa chart North Indian style - navamsa_south: D9 Navamsa chart South Indian style - vargas: the divisional charts you asked for, in each style you asked for - legend: R=Vakri(Retrograde) ↑=Exalted ↓=Debilitated C=Asta(Combust) V=Vargottama
Request parameters
locationoptional
string | null
City name to resolve to lat/lon/tz automatically. Example: 'Mumbai' or 'New Delhi, India'. If provided, latitude, longitude and timezone are not required.
Person name associated with the birth record
Birth date in YYYY-MM-DD format
timeoptional
string | null
Birth time in HH:MM 24-hour format. If omitted, sunrise chart is used as fallback.
latitudeoptional
number | null
Latitude. Required if location not provided.
longitudeoptional
number | null
Longitude. Required if location not provided.
timezoneoptional
string | null
IANA timezone. Required if location not provided (unless utc_offset is given). For dates before the zone adopted a standard time, the birthplace's local mean time (longitude / 15 hours) is used.
utc_offsetoptional
string | null
Optional explicit UTC offset of the birth time, as ±HH:MM or ±HH:MM:SS (e.g. '+04:51:31' for Bombay mean time). Overrides the offset timezone would give. Use it when the birth record states the offset, or for historical local times the IANA database cannot represent.
Sidereal ayanamsa mode used in calculations
vargasoptional
array[string] | null
Divisional charts to draw, any of the 16 (D1 to D60). Returned in vargas. Leave out for the classic response (D1 and D9 only).
stylesoptional
array[string]
Chart styles for vargas: north (diamond), south (fixed-sign grid), east (Bengali, fixed signs with Aries at the top middle). Applies to vargas only: the classic lagna_/navamsa_ fields are always north and south.
show_degreesoptional
boolean
Show each graha's degree and minutes in its sign (and the Lagna degree).
colorsoptional
ChartColors | null
Override any colour of the chosen theme (hex #RRGGBB).
transparentoptional
boolean
No background fill, so the chart sits on your own page colour.
show_detailsoptional
boolean
Print the name (when sent), birth date, time and place under the title; cut to 80 characters.
Response fields
True if the request succeeded
Human-readable status message
data.birth_time_provided
boolean
True when a birth time was supplied. False when it was not: house, Ascendant and Moon-dependent results then carry the accuracy limits of an unknown birth time.
North Indian Lagna chart SVG string
South Indian Lagna chart SVG string
North Indian Navamsa (D9) chart SVG string
South Indian Navamsa (D9) chart SVG string
Requested divisional charts, keyed D1..D60, each with the requested styles. Planets sit in their varga sign; houses count from the varga lagna; degrees are varga degrees. Present only when vargas was sent.
Superscript legend explaining chart markers
Labels of the names and ids this answer uses as map keys (
{"Sun": ...} ->
{"Sun": "सूर्य"},
{"varna": ...} ->
{"varna": "वर्ण"}), in the answer's language (see
https://docs.asterwise.com/reference/names-and-ids/). Only in answers asked for in a language other than English; the keys themselves never change.
Errors
API key is missing. Include it in the Authorization header as 'Bearer YOUR_KEY'.
The provided API key was not found. Verify the key in your Asterwise dashboard.
This API key has been revoked.
Too many requests per minute. Please slow down.
Confirm your email first. Open the link we emailed you, or sign in at asterwise.com/dashboard to send a new one.
Something went wrong on our end. Please try again, or contact
[email protected] if the problem persists. Include your request_id when contacting support.
Too many requests from this IP address. Please slow down.
Monthly API call limit reached. Upgrade your plan to continue.
Request body exceeds maximum allowed size of 64KB.
Your subscription has expired. Please renew at asterwise.com/dashboard to continue.
The request couldn't be processed. See the 'details' field for specific field-level issues.