Natal Horoscope PDF API

POSThttps://pdf.astrologyapi.com/v1/natal_horoscope_report/tropical
Copy

The Natal Horoscope 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/natal_horoscope_report/tropical
Copy
1curl --location 'https://pdf.astrologyapi.com/v1/natal_horoscope_report/tropical' \
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    "minute": 30,
12    "latitude": 39.9526,
13    "longitude": -75.1652,
14    "language": "en",
15    "timezone": -5,
16    "place": "Mumbai,Maharashtra India",
17    "footer_link": "https://www.astrologyapi.com",
18    "logo_url": "LOGO_URL",
19    "company_name": "company name",
20    "company_info": "company info",
21    "domain_url": "https://www.astrologyapi.com",
22    "company_email": "mail@astrologyapi.com",
23    "company_landline": "123456789",
24    "company_mobile": "123456789"
25}'
26
200Response
Copy
1{
2  "status": true,
3  "pdf_url": "https://s3.amazonaws.com/astrologyapi-pdfs/western_natal_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 - enPortuguese - ptGerman - deFrench - frSpanish - esItalian - itRussian - ru

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

minute

number

required

Birth minute (0-59).

latitude

number

required

Latitude of birth location.

longitude

number

required

Longitude of birth location.

language

string

required

PDF language.

Properties

enptdefresitru
timezone

number

required

Timezone offset from UTC in hours.

place

string

required

Birth place.

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 Western birth details, language, timezone, and white-label branding details to generate a tropical Natal Horoscope PDF report.

Natal Horoscope 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

German PDF Sample Sample
View Sample

German PDF Sample

French PDF Sample Sample
View Sample

French PDF Sample

Spanish PDF Sample Sample
View Sample

Spanish PDF Sample

Italian PDF Sample Sample
View Sample

Italian PDF Sample

Brazilian Portuguese PDF Sample Sample
View Sample

Brazilian Portuguese PDF Sample

Russian PDF Sample Sample
View Sample

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