🌍 Astrocartography API and ✋ Palmistry API are now live. Ship them in your app today.Get Started
API Documentation

Gemstone Report PDF API

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.
POSThttps://pdf.astrologyapi.com/v1/basic_gemstone_report_pdf

Parameters

ParameterTypeDescription
namerequiredName of the user.
genderrequiredGender of the user.
dayrequiredBirth day (1-31).
monthrequiredBirth month (1-12).
yearrequiredBirth year.
hourrequiredBirth hour (0-23).
minrequiredBirth minute (0-59).
latrequiredLatitude of birth location.
lonrequiredLongitude of birth location.
languagerequiredPDF language.
tzonerequiredTimezone offset from UTC in hours.
placerequiredBirth place.
chart_stylerequiredChart style.
footer_linkrequiredFooter/domain link.
logo_urlrequiredCompany logo URL.
company_namerequiredCompany name.
company_inforequiredCompany information. Should be less than 500 characters.
domain_urlrequiredFull company domain URL.
company_emailrequiredCompany email.
company_landlinerequiredCompany landline number.
company_mobilerequiredCompany mobile number.

Sample PDFs

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.

Supported Languages

enhi

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_gemstone_report_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/basic_gemstone_report_sample.pdf"
}