Varshaphal Report PDF API

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

The Varshaphal Report PDF API generates an annual Varshaphal horoscope PDF from birth details and a requested Varshaphal year. It accepts birth date, time, place, coordinates, timezone, gender, chart style, white-label branding fields, and report year, then returns a PDF URL for the generated annual report.

POST/varshphal_horoscope_pdf
Copy
1curl --location 'https://pdf.astrologyapi.com/v1/varshphal_horoscope_pdf' \
2  --header 'Content-Type: application/json' \
3  --header 'x-astrologyapi-key: <YOUR_ACCESS_TOKEN>' \
4  --data '{
5    "name": "Neethu",
6    "day": 28,
7    "month": 7,
8    "year": 1992,
9    "hour": 0,
10    "min": 5,
11    "latitude": 9.2666,
12    "longitude": 76.78,
13    "tzone": 5.5,
14    "gender": "female",
15    "place": "Kerala, INDIA",
16    "logo_url": "",
17    "chart_style": "SOUTH_INDIAN",
18    "footer_link": "",
19    "company_name": "",
20    "company_info": "",
21    "domain_url": "",
22    "company_email": "",
23    "company_landline": "",
24    "company_mobile": "+919999999",
25    "varshaphal_year": 2027
26}'
27
200Response
Copy
1{
2  "status": true,
3  "pdf_url": "https://s3.amazonaws.com/astrologyapi-pdfs/varshphal_horoscope_pdf_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 - en

Request Body (JSON)

name

string

required

Name 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).

latitude

number

required

Latitude of birth location.

longitude

number

required

Longitude of birth location.

tzone

number

required

Timezone offset from UTC in hours.

gender

string

required

Gender of the user.

place

string

required

Birth place.

logo_url

string

required

Company logo URL.

chart_style

string

required

Chart style.

Properties

NORTH_INDIANSOUTH_INDIANEAST_INDIAN
footer_link

string

required

Footer/domain link.

company_name

string

required

Company name.

company_info

string

required

Company information.

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.

varshaphal_year

number

required

Varshaphal report year.

Request Description

Submit birth details, coordinates, timezone, gender, place, chart style, white-label branding details, and varshaphal_year to generate a Varshaphal annual horoscope PDF report.

Varshaphal Report PDF Samples

Following are the PDF report samples you can download. These generated PDFs are using AstrologyAPI branding and everything can be customised to suit your company branding and style.

English PDF Sample Sample
View Sample

English 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.