API reference
Kundli Report API
A complete Vedic kundli for one person, with your company branding. Returns the report as JSON in English and Hindi, and delivers it as a ready-made PDF.
https://astrologyapis.ratnoveda.com/pdf/v1/kundli_reportOverview
The report has ten parts:
Your company details from Dashboard → Company are printed on every PDF page.
Parameters
Send a JSON body with your API key in the X-API-Key header.
Birth details
| Parameter | Type | Description |
|---|---|---|
dayrequired | int | Day of birth, 1–31. |
monthrequired | int | Month of birth, 1–12. |
yearrequired | int | Year of birth, for example 1990. |
houroptional | int | Hour of birth, 0–23 (24-hour clock). Defaults to 0. |
minoptional | int | Minute of birth, 0–59. Defaults to 0. |
latituderequired | float | Latitude of the birth place in decimal degrees; north is positive. |
longituderequired | float | Longitude of the birth place in decimal degrees; east is positive. |
timezonerequired | float | string | The birth place's timezone: a name such as Asia/Kolkata (from the Geo Location API's place search), and we apply the UTC offset in force on the birth date; or the offset itself in hours, e.g. 5.5. |
nameoptional | string | Name of the person, printed on the cover. |
genderoptional | string | male or female. |
placeoptional | string | Birth place as text, for example New Delhi, India. |
Report options
| Parameter | Type | Description |
|---|---|---|
languageoptional | string | Main language: en (default) or hi. The other language is always included. |
chart_styleoptional | string | NORTH_INDIAN (default), SOUTH_INDIAN or EAST_INDIAN. |
formatoptional | string | json (default) returns the report and a PDF link. pdf returns the PDF files directly. |
current_latitudeoptional | float | Current place of the person, for the KP ruling planets. Defaults to the birth place. |
current_longitudeoptional | float | Longitude of the current place. |
current_timezoneoptional | float | string | Timezone of the current place: a name such as Asia/Kolkata, or the UTC offset in hours. |
Branding (optional)
Saved company details are used automatically. These fields only fill in what is not saved.
| Parameter | Type | Description |
|---|---|---|
company_nameoptional | string | Company name at the top of every page. |
company_infooptional | string | One-line tagline under the company name, up to 300 characters. |
logo_urloptional | string | Public https link to your logo on your own storage (JPEG, PNG or WebP). |
company_emailoptional | string | Contact email in the page footer. |
company_mobileoptional | string | Contact mobile number. |
company_landlineoptional | string | Contact landline number. |
domain_urloptional | string | Your website, for example https://yourcompany.com. |
footer_linkoptional | string | Link printed at the bottom of every page. |
Example request
# 1. Generate the report (JSON). Keep "download_url" from the answer. curl -X POST 'https://astrologyapis.ratnoveda.com/pdf/v1/kundli_report' \ -H 'X-API-Key: YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{"name":"Asha Sharma","gender":"female","day":10,"month":5,"year":1990,"hour":19,"min":55,"latitude":28.6139,"longitude":77.209,"timezone":5.5,"place":"New Delhi, India","language":"en","chart_style":"NORTH_INDIAN"}' # 2. When the PDF is wanted: POST to that download_url, exactly as given. # No API key needed. Add &language=hi for the Hindi PDF. curl -X POST '<download_url>'
Response
{
"status": 1,
"success": true,
"message": "PDF report generated successfully.",
"response": {
"language": "en",
"languages": ["en", "hi"],
"reports": {
"en": {
"title": "Kundli Report",
"subtitle": "Complete Vedic birth-chart analysis",
"cover_rows": [["Name", "Asha Sharma"], …],
"sections": [
{
"title": "…",
"part": [1, "Basic"],
"blocks": [
{ "type": "keyvalue", "rows": [["Ascendant", "…"], …] },
{ "type": "table", "columns": ["Planet", "Sign", "Degree", …], "rows": [ … ] }
]
},
…
]
},
"hi": { … }
},
"branding": { "company_name": "…", "logo_data_url": "data:image/png;base64,…", … },
"company_required": false,
"download_url": "https://astrologyapis.ratnoveda.com/pdf/reports/<draft_id>/download?exp=…&sig=…",
"pdf_price": { "rupees": 5.0, "credits": 25.0 }
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
reportsrequired | object | The report per language (en, hi): title, cover rows and numbered sections. Each section is a list of blocks (heading, text, keyvalue, keygrid, table, chart) you can draw in your own design. |
download_urlrequired | string | Signed link that delivers the report as PDF files. See PDF delivery below. |
pdf_pricerequired | object | Price of the first PDF download, in rupees and credits. |
company_requiredrequired | boolean | true when your company details are not saved yet; the PDF download needs them. |
brandingrequired | object | Company details that will be printed, with the logo as a data URL. |
PDF delivery
Send a POST to the download_url exactly as returned, with no API key and no body. You receive one PDF per language. Add &language=hi to make Hindi the main file. The first download is charged at the PDF price; repeat downloads are free. The link is valid for 7 days.
{
"status": true,
"pdf_url": "https://astrologyapis.ratnoveda.com/pdf/files/<file_id>.pdf?…",
"pdf_urls": { "en": "…", "hi": "…" },
"credits_charged": 25
}To get the PDF in a single call instead, send "format": "pdf"; the response then holds pdf_url and pdf_urls.
Errors
| Status | Code | Meaning |
|---|---|---|
| 401 | INVALID_API_KEY | Missing, wrong or revoked API key |
| 402 | INSUFFICIENT_CREDITS | Not enough credits; top up and retry |
| 422 | VALIDATION_ERROR | A missing or invalid field, such as a latitude out of range |
| 422 | COMPANY_DETAILS_REQUIRED | PDF requested before your company details are saved |
| 403 | Invalid or expired report link | The PDF link was changed or is older than 7 days; generate the report again |