SEARCH ASTROLOGY API DOCS

Home
Indian Astrology

Chinese Horoscope/chinese_zodiac

API Endpoint : chinese_zodiac
Method : POST
Full URL :
https://json.astrologyapi.com/v1/chinese_zodiac

Request Data

ParamsData typeDescriptions

day

month

year

int

int

int

day , eg: 12

month, eg: 5

year, eg: 1994

Response Data

{
    "name": "Rabbit",
    "force": "Yin",
    "element": "Wood",
    "hours_ruled": "5 AM - 7 AM",
    "best_compatibility": "Sheep, Pig",
    "worst_compatibility": "Rat, Dragon, Ox, Rooster",
    "color": "White",
    "positive_traits": "Affectionate, Ambitious, Artistic, Considerate, Cultured",
    "negative_traits": "Complicated, Conformist, Conservative, Gossipy, Hesitant",
    "report": [
        "You have a very good judgement and refined creativity. You are a kind and helpful friend. The virtuous you possesses a highly developed sense of justice and fairness. Peace at all costs is essential for your creative flow. All the life the lesson to be learned is "detachment" . A Rabbit's home is always beautiful because you are famous for your artistic sense and good taste. You are also well dressed. You like to throw lavish parties. You definitely possess the most expensive closet full of beautiful and branded clothes. You prefer your own company or the company of a select handful of close friends.",
        "Even though you are popular and loved by your friends and family, Rabbit people are pessimistic under the surface. You are sympathetic and truly soft at heart which makes you a famous socially. You are polite and gracious, and no one has such impeccable manners. Incapable of harsh words, you always try hard to keep the peace and make everyone happy. You don't like to argue, and you'd rather enjoy a quiet, peaceful life. You can be very affectionate and obliging, but only to the ones you love. You great sense of humor and is good at giving practical advice. You can be a wonderful hostess, and whenever you are a guest at a party, you make yourself at home.",
        "Having an exceptional insight for detailed work, you prefer to keep your own counsel, listen to your intuition and rarely acts on unsolicited advice. You have a remarkable ability to heal from psychological as well as physical wounds. Privacy is important to you, and you're reluctant to reveal things about yourself. You can be very unpredictable, with occasional mood swings that make you hard to understand. But you want to be in a controlled situation more than anything else. Vacation and routines are very important to you, too. You have a sense of timing and know the right time to throw the punch to win the battle without anyone knowing a battle has been fought. As a business partner, you are an intelligent and able person. They have a conservative outlook on life, but your partner will have to convince your to take on risky business. Nevertheless, Rabbits are pros when it comes to negotiation on risky business. With your great negotiation skills and organizing mind, you will do well in business."
    ]
}
POST
var api = 'chinese_zodiac';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var data = {
  day: 6,
  month: 1,
  year: 2000,
  hour: 7,
  min: 45,
  lat: 19.132,
  lon: 72.342,
  tzone: 5.5,
};

var auth = "Basic " + new Buffer(userId + ":" + apiKey).toString("base64");

var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
method: "POST",
dataType:'json',
headers: {
    "authorization": auth,
    "Content-Type":'application/json'
},
    data:JSON.stringify(data)
});

request.then( function(resp){
    console.log(resp);
}, function(err){
    console.log(err);
});