BASIC PDF API REFERENCE DOCUMENTATION

Basic PDF API DOCS

API Description

The Basic PDF 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. The usage of PDF horoscope can be completely customised as per your requirements.

PDF API Url

Following is the complete PDF API url -

https://pdf.apireports.com/v1/basic_horoscope_pdf

Please note that all Astrology Api Reports APIs use POST method for API call and so does PDF APIs.

PDF API Request Method
POST

PDF Horoscope Samples

Following are the PDF horoscope samples you can download -

Request Data

Following are the options you will need to pass in PDF API -

{
  /* PERSONAL DETAILS */
  "name": "Sanjay", /* Name */
  "gender": "male", /* Gender default male */
  "day": 15, /* Day of Birth* */
  "month": 9, /* Month of Birth* */
  "year": 1994, /* Year of Birth* */
  "hour": 12, /* Hour of Birth* */
  "min": 30, /* Minute of Birth* */
  "lat": 28.6139, /* Latitude of Birth Place* */
  "lon": 77, /* Longitude of Birth Place* */
  "tzone": 5.5, /* Timezone of Birth Place*  */
  "birth_place": "New Delhi, India", /* Birth Place */

  /* YOUR COMPANY DETAILS */
  "footer_link": "link", /* Your Company Domain Link */
  "logo_url": "logo_url", /* Your Company Logo URL */
  "company_name": "xyz", /* Your Company Name */
  "company_info": "xyz", /* Your Company Info NOTE-Should be less than 500 Characters */
  "domain_url": "link", /* Your Company Domain Link */
  "company_email": "email", /* Your Company Email */
  "company_landline": "0121-2222XXXX", /* Your Company Landline Number */
  "company_mobile": "+91-9999XXXXXX", /* Your Company Mobile Number */

  /* PDF CONFIGURATION */
  "language": "en", /* PDF Language Default en */
  "chart_style": "NORTH_INDIAN", /* Chart Style Default NORTH_INDIAN for South is SOUTH_INDIAN and for East is EAST_INDIAN */
  "basic_astro_details":"show", /* HIDE AND SHOW PDF Page Default is show */
  "planetary_positions":"show", /* HIDE AND SHOW PDF Page Default is show */
  "horoscope_charts":"show", /* HIDE AND SHOW PDF Page Default is show */
  "house_cusps":"show", /* HIDE AND SHOW PDF Page Default is show */
  "divisional_charts":"show", /* HIDE AND SHOW PDF Page Default is show */
  "vim_dasha":"show", /* HIDE AND SHOW PDF Page Default is show */
  "yogini_dasha":"show", /* HIDE AND SHOW PDF Page Default is show */
  "kaalsarpa_dosha":"show", /* HIDE AND SHOW PDF Page Default is show */
  "manglik_dosha":"show", /* HIDE AND SHOW PDF Page Default is show */
  "sadhesati":"show", /* HIDE AND SHOW PDF Page Default is show */
  "gemstone_suggestions":"show", /* HIDE AND SHOW PDF Page Default is show */
  "rudraksha_suggestions":"show", /* HIDE AND SHOW PDF Page Default is show */
  "numerology":"show", /* HIDE AND SHOW PDF Page Default is show */
  "ascendant_report":"show", /* HIDE AND SHOW PDF Page Default is show */
}
/*
  Note : Language Abbreviations
  en - english, hi - hindi
/*

Response Data

Following is the response you will get in PDF API -

{
    "status_code": 200,
    "status": true,
    "data": {
        "pdf_url": "https://pdf.apireports.com/v1/pdf/sanjay-sharma-5eefb13d4e3acce6113c8596bf9831b4.pdf",
        "msg": "PDF horoscope successfully generated."
    }
}

Astrology API Reports in News