apyhub
GEOLOCATION · SMART GENERATION

Generate Janmpatri/Kundli PDF API

What it does

Kundli PDF Generator creates a Janmpatri/Kundli PDF from birth details. Send a name, birth date, birth time, latitude, longitude, timezone, and optional language, and get a binary PDF back.

Use it when your app needs to generate an astrology report for a user’s birth record. The service is built for workflows where you already collect birth details in a form and need a downloadable document instead of raw data.

The request body is straightforward: name, birth_date, birth_time, latitude, longitude, and timezone are required, and language can be set to en or hi. The response is a PDF file, so you can store it, stream it to the browser, or attach it to an email flow.

If you are building a kundli generator, astrological onboarding flow, or a report-download feature, this endpoint gives you a document output from structured birth inputs without extra transformation steps.

POST
Generate a Janmpatri/Kundli PDF from birth details
http://localhost:8080/dosvak/generate-kundli-pdf

QUICKSTART

GUIDE

Quickstart

Generate a Kundli PDF by sending the required birth details in a JSON request body.

curl -X POST "http://localhost:8080/dosvak/generate-kundli-pdf" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Priya Sharma",
    "birth_date": "1994-08-12",
    "birth_time": "14:35",
    "latitude": 28.6139,
    "longitude": 77.209,
    "timezone": "Asia/Kolkata"
  }'

What you'll get back

Returns a binary file (string with format: binary) containing the generated PDF.

TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*

About this endpoint

What it does

Generates a Janmpatri/Kundli PDF from the provided birth details. The request body includes the person’s name, birth date, birth time, latitude, longitude, and timezone, and the endpoint returns the PDF as a binary response.

Request Body

ParameterTypeMandatoryDescription
nameStringYesPerson’s name.
languageENUMNoLanguage of the generated PDF. Allowed values: en, hi. Default: en.
latitudeNumberYesBirth location latitude.
timezoneStringYesTimezone for the birth details.
longitudeNumberYesBirth location longitude.
birth_dateStringYesBirth date in date format (YYYY-MM-DD).
birth_timeStringYesBirth time.

Response

Returns a binary file response containing the generated PDF.

ParameterTypeMandatoryDescription
binaryStringYesPDF file content returned as binary data.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.