Skip to content
BestAstroAPI

Charts

Chart image (SVG)

POST/v1/chart/image/{chart}?style=north|south

North or South Indian drawing of any varga chart, as image/svg+xml ready to embed.

Request

FieldTypeDescription
datetimestringrequiredLocal birth time, YYYY-MM-DDTHH:MM[:SS]
latnumberLatitude, -90 to 90 (north positive). Send lat, lon and tz, or place, or place_id
lonnumberLongitude, -180 to 180 (east positive)
tzstringIANA zone (Asia/Kolkata) or offset (+05:30). Needed with lat and lon; filled in with a place
placestringPlace name instead of lat, lon and tz, for example Gorakhpur, Uttar Pradesh. If the name is not unique: ambiguous_place with choices
place_idintegerThe id of a place from place search, instead of lat, lon and tz
ayanamsastringlahiri (default) | raman | krishnamurti
nodestringmean (default) | true
house_systemstringwhole_sign (default) | equal | placidus | porphyry
outer_planetsbooleanAlso return Uranus, Neptune, Pluto (default false)

Example

curl -X POST "https://api.bestastroapi.in/v1/chart/image/d1?style=north" \
  -H "x-api-key: $BESTASTRO_KEY" \
  -H "content-type: application/json" \
  -d '{"datetime":"2004-05-18T10:30","lat":28.6139,"lon":77.209,"tz":"Asia/Kolkata"}'

Try it live

Sends a real request from your browser.

The response is an SVG image. It will be drawn here.

Response

Sample North Indian chart

image/svg+xml. North style. Use style=south for the South Indian grid.

Errors use one format. See error codes. Also in openapi.json.

Welcome! How will you use it?

We'll show you what matters to you. You can switch any time at the top.