SEARCH ASTROLOGY API DOCS

Home
Indian Astrology

Previous Day Horoscope/horoscope_prediction/daily/previous/:zodiacName

Previous Day Horoscope

API Endpoint : horoscope_prediction/daily/previous/:zodiacName
Method : POST
Full URL :
https://json.astrologyapi.com/v1/horoscope_prediction/daily/previous/:zodiacName

Request Data

ParamsData typeDescriptions

day required

month required

year required

hour required

min required

lat required

lon required

tzone required

int

int

int

int

int

float

float

float

date of birth, eg: 10

month of birth, eg: 5

year of birth, eg: 1990

hour, eg: 19

minute, eg: 55

latitude, eg: 19.2056

longitude, eg: 25.2056

timezone, eg: 5.5

Response Data

{
	"status": true,
	"sun_sign": "aries",
	"prediction_date": "17-9-2017",
	"prediction": "This is sample daily horoscope.Today is the day where you can impress anyone with your smart talks. Expression of thoughts comes easily today and help in your presentations and meetings go smooth. Boost your confidence with lots of health drinks and exercise. Feeling fresh is important; starting your day and healthy lifestyle will play a major role. Maintain your high stamina for social events you might attend in the evening. Impressing your partner is easier now, take out some time to spend with them and delight them with respect and care."
}
POST
var sdkClient = require("./sdk");

//Zodiac sign
var zodiacName = "aries";
var timezone = 5.5;

//Daily Horoscope APIs need to be called
var resource = "horoscope_prediction/daily/previous/" + zodiacName;

// call dailyHoroCall method for daily predictions
var dailyHoroData = sdkClient.dailyHoroCall(
  resource,
  zodiacName,
  timezone,
  function (error, result) {
    if (error) {
      console.log("Error returned!!");
    } else {
      console.log("Response has arrived from API server --");
      console.log(result);
    }
  }
);