🌍 Astrocartography API, 🔷 Human Design API and ✋ Palmistry API are now live. Ship them in your app today.
API Documentation

Synastry Report PDF API

The Synastry Report 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.
POSThttps://pdf.astrologyapi.com/v1/synastry_couple_report/tropical

Parameters

ParameterTypeDescription
p_first_namerequiredstringPrimary person first name.
p_last_namerequiredstringPrimary person last name.
p_dayrequirednumberPrimary person birth day.
p_monthrequirednumberPrimary person birth month.
p_yearrequirednumberPrimary person birth year.
p_hourrequirednumberPrimary person birth hour.
p_minuterequirednumberPrimary person birth minute.
p_latituderequirednumberPrimary person birth latitude.
p_longituderequirednumberPrimary person birth longitude.
p_timezonerequirednumberPrimary person timezone offset from UTC.
p_placerequiredstringPrimary person birth place.
s_first_namerequiredstringSecondary person first name.
s_last_namerequiredstringSecondary person last name.
s_dayrequirednumberSecondary person birth day.
s_monthrequirednumberSecondary person birth month.
s_yearrequirednumberSecondary person birth year.
s_hourrequirednumberSecondary person birth hour.
s_minuterequirednumberSecondary person birth minute.
s_latituderequirednumberSecondary person birth latitude.
s_longituderequirednumberSecondary person birth longitude.
s_timezonerequirednumberSecondary person timezone offset from UTC.
s_placerequiredstringSecondary person birth place.
languagerequiredstringPDF language.
footer_linkrequiredstringFooter/domain link.
logo_urlrequiredstringCompany logo URL.
company_namerequiredstringCompany name.
company_inforequiredstringCompany information. Should be less than 500 characters.
domain_urlrequiredstringFull company domain URL.
company_emailrequiredstringCompany email.
company_landlinerequiredstringCompany landline number.
company_mobilerequiredstringCompany mobile number.

Supported Languages

enptdefresitru

Request

{
  "p_first_name": "Sanjay",
  "p_last_name": "Sharma",
  "p_day": 15,
  "p_month": 8,
  "p_year": 1990,
  "p_hour": 10,
  "p_minute": 30,
  "p_latitude": 39.9526,
  "p_longitude": -75.1652,
  "p_timezone": -5,
  "p_place": "Mumbai,Maharashtra India",
  "s_first_name": "Sanjay",
  "s_last_name": "Sharma",
  "s_day": 15,
  "s_month": 8,
  "s_year": 1990,
  "s_hour": 10,
  "s_minute": 30,
  "s_latitude": 39.9526,
  "s_longitude": -75.1652,
  "s_timezone": -5,
  "s_place": "Mumbai,Maharashtra India",
  "language": "en",
  "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": "[email protected]",
  "company_landline": "123456789",
  "company_mobile": "123456789"
}

Code samples

curl --location 'https://pdf.astrologyapi.com/v1/synastry_couple_report/tropical' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --header 'Authorization: Basic <YOUR_API_KEY>' \
  --data 'p_first_name=Sanjay&p_last_name=Sharma&p_day=15&p_month=8&p_year=1990&p_hour=10&p_minute=30&p_latitude=39.9526&p_longitude=-75.1652&p_timezone=-5&p_place=Mumbai%2CMaharashtra%20India&s_first_name=Sanjay&s_last_name=Sharma&s_day=15&s_month=8&s_year=1990&s_hour=10&s_minute=30&s_latitude=39.9526&s_longitude=-75.1652&s_timezone=-5&s_place=Mumbai%2CMaharashtra%20India&language=en&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/synastry_report_sample.pdf"
}