Gemstone Report PDF API

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

The Gemstone Report PDF API generates a gemstone recommendation PDF based on the birth details provided in the request data.

The request data includes branding options such as footer links, logo URL, company name, company information, domain URL, email, landline and mobile number.

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 report on your user's email address.

POST/basic_gemstone_report_pdf
Copy
1curl --location 'https://pdf.astrologyapi.com/v1/basic_gemstone_report_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/basic_gemstone_report_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 - hi

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

enhi
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 gemstone recommendation PDF.

Gemstone 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

Hindi PDF Sample Sample
View Sample

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