Match Making PDF API

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

The Match Making PDF API generates Match Making PDF based on the birth details of male and female 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/match_making_pdf
Copy
1curl --location 'https://pdf.astrologyapi.com/v1/match_making_pdf' \
2  --header 'Content-Type: application/json' \
3  --header 'x-astrologyapi-key: <YOUR_ACCESS_TOKEN>' \
4  --data '{
5    "m_first_name": "Sanjay",
6    "m_last_name": "Sharma",
7    "m_day": 15,
8    "m_month": 8,
9    "m_year": 1990,
10    "m_hour": 10,
11    "m_minute": 30,
12    "m_latitude": 39.9526,
13    "m_longitude": -75.1652,
14    "m_timezone": -5,
15    "m_place": "Mumbai,Maharashtra India",
16    "f_first_name": "Sanjay",
17    "f_last_name": "Sharma",
18    "f_day": 15,
19    "f_month": 8,
20    "f_year": 1990,
21    "f_hour": 10,
22    "f_minute": 30,
23    "f_latitude": 39.9526,
24    "f_longitude": -75.1652,
25    "f_timezone": -5,
26    "f_place": "Mumbai,Maharashtra India",
27    "language": "en",
28    "ashtakoot": false,
29    "dashakoot": false,
30    "papasamyam": false,
31    "chart_style": "NORTH_INDIAN",
32    "footer_link": "https://www.astrologyapi.com",
33    "logo_url": "LOGO_URL",
34    "company_name": "company name",
35    "company_info": "company info",
36    "domain_url": "https://www.astrologyapi.com",
37    "company_email": "mail@astrologyapi.com",
38    "company_landline": "123456789",
39    "company_mobile": "123456789"
40}'
41
200Response
Copy
1{
2  "status": true,
3  "pdf_url": "https://s3.amazonaws.com/astrologyapi-pdfs/match_making_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)

m_first_name

string

required

Male/native first name.

m_last_name

string

required

Male/native last name.

m_day

number

required

Male/native birth day.

m_month

number

required

Male/native birth month.

m_year

number

required

Male/native birth year.

m_hour

number

required

Male/native birth hour.

m_minute

number

required

Male/native birth minute.

m_latitude

number

required

Male/native birth latitude.

m_longitude

number

required

Male/native birth longitude.

m_timezone

number

required

Male/native timezone offset from UTC.

m_place

string

required

Male/native birth place.

f_first_name

string

required

Female/partner first name.

f_last_name

string

required

Female/partner last name.

f_day

number

required

Female/partner birth day.

f_month

number

required

Female/partner birth month.

f_year

number

required

Female/partner birth year.

f_hour

number

required

Female/partner birth hour.

f_minute

number

required

Female/partner birth minute.

f_latitude

number

required

Female/partner birth latitude.

f_longitude

number

required

Female/partner birth longitude.

f_timezone

number

required

Female/partner timezone offset from UTC.

f_place

string

required

Female/partner birth place.

language

string

required

PDF language.

Properties

enhi
ashtakoot

boolean

required

Include Ashtakoot analysis.

dashakoot

boolean

required

Include Dashakoot analysis.

papasamyam

boolean

required

Include Papasamyam analysis.

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 both partners' birth details, matching options, chart style, language, and white-label branding details to generate a match-making compatibility PDF.

Match Making 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.