API Documentation
Basic Horoscope PDF API
The PDF API generates PDF horoscope based on the birth details provided in the request data.
The request data also has number of other options such as border style, footer links, lord Ganesha picture style and other last page details. These options can be used to customise the PDF as per your company and brand requirement.
The PDF API in response provides you with a PDF URL from where either your user can download the PDF or you can directly send the PDF horoscope on your user's email address. The usage of PDF horoscope can be completely customised as per your requirements.
The request data also has number of other options such as border style, footer links, lord Ganesha picture style and other last page details. These options can be used to customise the PDF as per your company and brand requirement.
The PDF API in response provides you with a PDF URL from where either your user can download the PDF or you can directly send the PDF horoscope on your user's email address. The usage of PDF horoscope can be completely customised as per your requirements.
POST
https://pdf.astrologyapi.com/v1/basic_horoscope_pdfParameters
| Parameter | Type | Description |
|---|---|---|
| namerequired | Name of the user. | |
| genderrequired | Gender of the user. | |
| dayrequired | Birth day (1-31). | |
| monthrequired | Birth month (1-12). | |
| yearrequired | Birth year. | |
| hourrequired | Birth hour (0-23). | |
| minrequired | Birth minute (0-59). | |
| latrequired | Latitude of birth location. | |
| lonrequired | Longitude of birth location. | |
| languagerequired | PDF language. | |
| tzonerequired | Timezone offset from UTC in hours. | |
| placerequired | Birth place. | |
| chart_stylerequired | Chart style. | |
| footer_linkrequired | Footer/domain link. | |
| logo_urlrequired | Company logo URL. | |
| company_namerequired | Company name. | |
| company_inforequired | Company information. Should be less than 500 characters. | |
| domain_urlrequired | Full company domain URL. | |
| company_emailrequired | Company email. | |
| company_landlinerequired | Company landline number. | |
| company_mobilerequired | Company mobile number. |
Sample PDFs
PDF Horoscope Samples
Following are the PDF horoscope samples you can download. These generated PDFs are using Vedic Rishi Astro branding and everything can be customised to suit your company branding and style.
English PDF SampleDownload PDF
Hindi PDF SampleDownload PDF
Bengali PDF SampleDownload PDF
Marathi PDF SampleDownload PDF
Tamil PDF SampleDownload PDF
Telugu PDF SampleDownload PDF
Kannada PDF SampleDownload PDF
Malayalam PDF SampleDownload PDFSupported Languages
enhibnmrtateknml
Request
{
"name": "Ajeet",
"gender": "male",
"day": 15,
"month": 8,
"year": 1990,
"hour": 10,
"min": 30,
"lat": 39.9526,
"lon": -75.1652,
"language": "en",
"tzone": -5,
"place": "Mumbai,Maharashtra India",
"chart_style": "NORTH_INDIAN",
"footer_link": "https://www.astrologyapi.com",
"logo_url": "LOGO_URL",
"company_name": "company name",
"company_info": "company info",
"domain_url": "https://www.astrologyapi.com",
"company_email": "mail@astrologyapi.com",
"company_landline": "123456789",
"company_mobile": "123456789"
}Code samples
curl --location 'https://pdf.astrologyapi.com/v1/basic_horoscope_pdf' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic <YOUR_API_KEY>' \
--data 'name=Ajeet&gender=male&day=15&month=8&year=1990&hour=10&min=30&lat=39.9526&lon=-75.1652&language=en&tzone=-5&place=Mumbai%2CMaharashtra%20India&chart_style=NORTH_INDIAN&footer_link=https%3A%2F%2Fwww.astrologyapi.com&logo_url=LOGO_URL&company_name=company%20name&company_info=company%20info&domain_url=https%3A%2F%2Fwww.astrologyapi.com&company_email=mail%40astrologyapi.com&company_landline=123456789&company_mobile=123456789'
Response
{
"status": true,
"pdf_url": "https://s3.amazonaws.com/astrologyapi-pdfs/sample_horoscope.pdf"
}