Mini Horoscope PDF API

POSThttps://pdf.astrologyapi.com/v1/mini_horoscope_pdf
Copy

The Mini 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.

POST/mini_horoscope_pdf
Copy
1curl --location 'https://pdf.astrologyapi.com/v1/mini_horoscope_pdf' \
2  --header 'Content-Type: application/json' \
3  --header 'x-astrologyapi-key: <YOUR_ACCESS_TOKEN>' \
4  --data '{
5    "name": "Ajeet",
6    "gender": "male",
7    "day": 15,
8    "month": 8,
9    "year": 1990,
10    "hour": 10,
11    "min": 30,
12    "lat": 39.9526,
13    "lon": -75.1652,
14    "language": "en",
15    "tzone": -5,
16    "place": "Mumbai,Maharashtra India",
17    "chart_style": "NORTH_INDIAN",
18    "footer_link": "https://www.astrologyapi.com",
19    "logo_url": "LOGO_URL",
20    "company_name": "company name",
21    "company_info": "company info",
22    "domain_url": "https://www.astrologyapi.com",
23    "company_email": "mail@astrologyapi.com",
24    "company_landline": "123456789",
25    "company_mobile": "123456789"
26}'
27
200Response
Copy
1{
2  "status": true,
3  "pdf_url": "https://s3.amazonaws.com/astrologyapi-pdfs/mini_horoscope_sample.pdf"
4}

Request Headers

x-astrologyapi-key

string

required

API Access Token to authenticate requests. Send your access token in this custom header.

Accept-Language

string

Preferred language for the response content

Properties

English - enHindi - hiBengali - bnMarathi - maTamil - taTelugu - teKannada - knMalayalam - ml

Request Body (JSON)

name

string

required

Name of the user.

gender

string

required

Gender of the user.

day

number

required

Birth day (1-31).

month

number

required

Birth month (1-12).

year

number

required

Birth year.

hour

number

required

Birth hour (0-23).

min

number

required

Birth minute (0-59).

lat

number

required

Latitude of birth location.

lon

number

required

Longitude of birth location.

language

string

required

PDF language.

Properties

enhibnmrtateknml
tzone

number

required

Timezone offset from UTC in hours.

place

string

required

Birth place.

chart_style

string

required

Chart style.

Properties

NORTH_INDIANSOUTH_INDIANEAST_INDIAN
footer_link

string

required

Footer/domain link.

logo_url

string

required

Company logo URL.

company_name

string

required

Company name.

company_info

string

required

Company information. Should be less than 500 characters.

domain_url

string

required

Full company domain URL.

company_email

string

required

Company email.

company_landline

string

required

Company landline number.

company_mobile

string

required

Company mobile number.

Request Description

Submit birth details, chart style, language, timezone, and white-label branding details to generate a compact Mini Horoscope PDF report.

Mini PDF Horoscope Samples

Following are the Mini 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 Sample Sample
View Sample

English PDF Sample

Hindi PDF Sample Sample
View Sample

Hindi PDF Sample

Marathi PDF Sample Sample
View Sample

Marathi PDF Sample

Bengali PDF Sample Sample
View Sample

Bengali PDF Sample

Tamil PDF Sample Sample
View Sample

Tamil PDF Sample

Telugu PDF Sample Sample
View Sample

Telugu PDF Sample

Kannada PDF Sample Sample
View Sample

Kannada PDF Sample

Malayalam PDF Sample Sample
View Sample

Malayalam PDF Sample

Errors

400
Bad Request

Something is wrong with your request format or parameters.

401
Unauthorized

Your API key is missing or invalid.

403
Forbidden

You don't have permission to access this specific resource.

404
Not Found

The API endpoint you're trying to reach doesn't exist.

500
Internal Server Error

Our server is having a temporary glitch.