Logo

SEARCH ASTRO INSIGHT API DOCS

Home Vedic Astrology

Horoscope Chart Image API

Horoscope Chart Image

The Horoscope Chart Image API renders a fully customisable Vedic astrology horoscope chart as an image for a given birth profile and chart type. Unlike the standard Horoscope Chart and Horoscope Chart Extended endpoints — which return structured data — this endpoint is purpose-built for visual output, accepting a rich set of styling parameters that control every aspect of the chart's appearance. It supports the same comprehensive range of divisional charts (Vargas) and special charts as the rest of the chart family.

What This API Does

This endpoint accepts a person's birth date, time, and geographic coordinates alongside a chartId path parameter specifying which chart to render. It computes the planetary positions and house placements for the requested chart type, then renders the result as a chart image using the visual configuration provided in the request body.

The caller has full control over the chart's visual presentation: chart style (North Indian, South Indian, or East Indian layout), background colour, inner and outer line colours and widths, sign and planet colours, chart size, font sizes for signs and planets, and whether signs and planets are displayed as symbols or text labels. This makes the endpoint suitable for embedding directly into web pages, mobile apps, PDF reports, or any interface that requires a ready-to-display chart image.

The chart type is controlled by the chartId path parameter, supporting the full range of divisional charts from D1 through D150, as well as the Moon chart, Sun chart, and Chalit chart. The Ayanamsha system is configurable via the X-Ayanamsha header, and multi-language output is supported via the Accept-Language header.

What Data It Returns

The response delivers a rendered chart image for the requested chart type and birth profile, with the visual appearance determined by the styling parameters supplied in the request body. The output may include:

  • Rendered chart image — a pixel-perfect visual representation of the horoscope chart in the requested style (North, South, or East Indian layout), ready for direct display or embedding
  • Chart layout — the correct placement of zodiac signs and planets within the chart grid, computed from the birth details and selected chart type
  • Planetary symbols or names — planets displayed as astrological symbols or abbreviated text labels, depending on the planetSymbol parameter
  • Sign symbols or numbers — zodiac signs displayed as symbols or numeric identifiers, depending on the signSymbol parameter
  • Applied styling — the chart rendered with the exact colours, line widths, font sizes, and chart dimensions specified in the request

Main Use Cases

  • Horoscope chart display in apps: Embedding a rendered chart image directly into a web or mobile application without requiring any client-side chart rendering logic — the image is returned ready to display
  • Branded chart generation: Customising chart colours, line styles, and fonts to match an application's visual identity or a user's personal preferences
  • PDF and print report generation: Producing high-quality chart images for inclusion in downloadable horoscope reports, printed birth chart documents, or astrological PDFs
  • Multi-style chart rendering: Generating the same chart in North Indian, South Indian, and East Indian styles to cater to users from different regional astrological traditions
  • Divisional chart visualisation: Rendering specific Varga charts (D9 Navamsa, D10 Dashamsa, D60 Shashtiamsa, etc.) as images for display alongside textual analysis
  • Dynamic chart previews: Powering real-time chart preview features where users can adjust visual settings (colours, size, style) and see the chart update instantly

Key Functionality

  • Returns a rendered chart image rather than structured data, making it the go-to endpoint for any use case requiring a visual chart output
  • Supports three regional chart styles — North Indian, South Indian, and East Indian — via the chartStyle parameter, covering the major Jyotish layout traditions
  • Offers comprehensive visual customisation through body parameters: background colour, inner/outer line colours and widths, sign colour, planet colour, chart size, sign font size, planet font size, sign symbol/number toggle, and planet symbol/name toggle
  • Supports 25+ chart types via the chartId path parameter, covering all major Varga divisional charts (D1 through D150), the Chalit chart, Moon chart, and Sun chart
  • Accepts birth date, time, and geographic coordinates (latitude, longitude, timezone) for precise astronomical calculations
  • Configurable Ayanamsha system via the X-Ayanamsha header, supporting multiple Vedic traditions (e.g., Lahiri, Krishnamurti, Raman)
  • Supports multi-language responses via the Accept-Language header for localised planet and sign labels within the image
  • Complements the Horoscope Chart and Horoscope Chart Extended endpoints: use those for structured data, and this endpoint when a ready-to-render image is required
Credit Cost
1 Credits/Per API Call
Avg Response
~80msTypical Latency

API Explorer

POST https://json.astroinsightapi.com/api/v1/chart/horoscope/:chartId/image

Request Example:

HTTP Status Codes

API Categories