Synastry Report PDF API

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

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.

POST/synastry_couple_report/tropical
Copy
1curl --location 'https://pdf.astrologyapi.com/v1/synastry_couple_report/tropical' \
2  --header 'Content-Type: application/json' \
3  --header 'x-astrologyapi-key: <YOUR_ACCESS_TOKEN>' \
4  --data '{
5    "p_first_name": "Sanjay",
6    "p_last_name": "Sharma",
7    "p_day": 15,
8    "p_month": 8,
9    "p_year": 1990,
10    "p_hour": 10,
11    "p_minute": 30,
12    "p_latitude": 39.9526,
13    "p_longitude": -75.1652,
14    "p_timezone": -5,
15    "p_place": "Mumbai,Maharashtra India",
16    "s_first_name": "Sanjay",
17    "s_last_name": "Sharma",
18    "s_day": 15,
19    "s_month": 8,
20    "s_year": 1990,
21    "s_hour": 10,
22    "s_minute": 30,
23    "s_latitude": 39.9526,
24    "s_longitude": -75.1652,
25    "s_timezone": -5,
26    "s_place": "Mumbai,Maharashtra India",
27    "language": "en",
28    "footer_link": "https://www.astrologyapi.com",
29    "logo_url": "LOGO_URL",
30    "company_name": "company name",
31    "company_info": "company info",
32    "domain_url": "https://www.astrologyapi.com",
33    "company_email": "mail@astrologyapi.com",
34    "company_landline": "123456789",
35    "company_mobile": "123456789"
36}'
37
200Response
Copy
1{
2  "status": true,
3  "pdf_url": "https://s3.amazonaws.com/astrologyapi-pdfs/synastry_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 - enPortuguese - ptGerman - deFrench - frSpanish - esItalian - itRussian - ru

Request Body (JSON)

p_first_name

string

required

Primary person first name.

p_last_name

string

required

Primary person last name.

p_day

number

required

Primary person birth day.

p_month

number

required

Primary person birth month.

p_year

number

required

Primary person birth year.

p_hour

number

required

Primary person birth hour.

p_minute

number

required

Primary person birth minute.

p_latitude

number

required

Primary person birth latitude.

p_longitude

number

required

Primary person birth longitude.

p_timezone

number

required

Primary person timezone offset from UTC.

p_place

string

required

Primary person birth place.

s_first_name

string

required

Secondary person first name.

s_last_name

string

required

Secondary person last name.

s_day

number

required

Secondary person birth day.

s_month

number

required

Secondary person birth month.

s_year

number

required

Secondary person birth year.

s_hour

number

required

Secondary person birth hour.

s_minute

number

required

Secondary person birth minute.

s_latitude

number

required

Secondary person birth latitude.

s_longitude

number

required

Secondary person birth longitude.

s_timezone

number

required

Secondary person timezone offset from UTC.

s_place

string

required

Secondary person birth place.

language

string

required

PDF language.

Properties

enptdefresitru
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 both people's Western birth details, language, timezone, and white-label branding details to generate a tropical Synastry Report PDF.

Synastry 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

Portuguese PDF Sample Sample
View Sample

Portuguese PDF Sample

Spanish PDF Sample Sample
View Sample

Spanish PDF Sample

French PDF Sample Sample
View Sample

French PDF Sample

German PDF Sample Sample
View Sample

German PDF Sample

Italian PDF Sample Sample
View Sample

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