Copy page
Copy page as Markdown for LLMs
Introducing the Chinese Horoscope Prediction API, your gateway to delivering personalized insights from the Chinese zodiac. With this API, you can access daily horoscope predictions for all twelve Chinese zodiac animal signs. Integrate it into your astrology applications, websites, or content systems to provide users with meaningful, culturally enriched astrological guidance.
Step by Step Chinese Horoscope API Postman Testing Integration
Use the lan parameter in the body to fetch responses in a specific language.
| Code | Language |
|---|---|
| en | English |
| hi | Hindi |
| pt | Portuguese |
| fr | French |
| es | Spanish |
| ru | Russian |
| de | German |
| nl | Dutch |
| it | Italian |
| pl | Polish |
| ar | Arabic |
| ja | Japanese |
| zh | Chinese |
| tm | Tamil |
| tl | Telugu |
| tr | Turkish |
| ta | Filipino/Tagalog |
| bn | Bengali |
| ma | Marathi |
| ml | Malayalam |
| kn | Kannada |
Guide:
To use translations, ensure your translator is updated at DivineAPI Translator.
POST https://astroapi-5.divineapi.com/api/v3/chinese-horoscope
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Your API Access Token. Example: Bearer {token} |
| Name | Type | Description |
|---|---|---|
| api_key* | String | Your DivineAPI key available on your dashboard. |
| sign* | String | The Chinese zodiac animal sign (e.g., Tiger, Dragon, Rat). |
| h_day* | String | Choose from yesterday, today, or tomorrow. |
| tzone* | Float | Timezone offset, e.g., 5.5. See the Timezone Guide. |
| lan | String | Language code as per the table above. Default: en. |
{
"success": 1,
"data": {
"sign": "Tiger",
"date": "10 Oct 2024",
"prediction": {
"growth": "Embrace the Yin of the Ding Fire to illuminate your inner world. This is a day for quiet reflection on personal goals and values. Explore activities that nurture your creative spirit, like painting or journaling, which align with your Tiger's strong zest and innovative nature. Allow the harmonious Mao branch energies to guide you towards practices in meditation, setting the stage for profound personal growth.",
"health": "Today's Yin Fire element recommends a warming approach to wellness. Engage in moderate exercises like Tai Chi to maintain balance and tranquility, harmonizing with the Tiger's dynamic spirit. Consider incorporating warming foods such as ginger tea or cinnamon-infused dishes, keeping the vitality of your immune system in check. Listen to your body’s signals, ensuring your fiery energy doesn’t lead to burnout.",
"wealth": "Let the Ding energies light your way to financial clarity today. The Yin nature advises caution with spending, urging careful budgeting and strategic investments. Integrate Tiger's boldness with thoughtful actions to explore new income avenues while safeguarding existing resources. Trust instincts but verify details, as the balance between risk and security guides you toward steady financial growth.",
"career": "Today, harness the Ding Fire's spark to ignite your professional aspirations. The Tiger's assertive nature pairs seamlessly with this energy, driving bold leadership and innovative ideas. Use Yin's softness to navigate work dynamics gracefully, balancing passion with patience. Stay open to collaboration, tapping into the team's strength and fostering a harmonious work environment that fosters collective success.",
"love": "Mao's earthly branch infuses your relationships with gentle strength. Communicate with warmth and authenticity, using the day's Yin energy to nurture emotional bonds. For Tigers, who value their independence, today offers chances to deepen connections through shared insights and experiences. Whether with a partner or family, let the warm Fire element encourage genuine expressions of care and affection.",
"family": "Infuse your home with the warmth of the Ding Fire, fostering a nurturing environment. The Tiger’s protective instincts should guide you in creating open channels of communication. Engage in family activities that embrace laughter and joy, allowing members to connect deeply under the Yin influence. Today, small gestures of kindness will resonate, strengthening bonds and fortifying family harmony.",
"fortune": [
"Lucky Numbers of the day : 3,6,9",
"Lucky Alphabets you will be in sync with : D,F",
"Cosmic Tip : Embrace today’s gentle energy; allow intuition to guide plans.",
"Tips for Singles : Open your heart to new adventures; love finds you soon.",
"Tips for Couples : Cherish quiet moments together; they're today's canvas for love."
]
},
"h_date": "2024-10-10"
}
}Below are example implementations in various programming environments.
curl --location 'https://astroapi-5.divineapi.com/api/v3/chinese-horoscope' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'sign="TIGER"' \
--form 'h_day="today"' \
--form 'tzone="5.5"' \
--form 'lan="en"'var request = require('request');
var options = {
'method': 'POST',
'url': 'https://astroapi-5.divineapi.com/api/v3/chinese-horoscope',
'headers': {
'Authorization': 'Bearer {Your Auth Token}'
},
formData: {
'api_key': '{Your API Key}',
'sign': 'TIGER',
'h_day': 'today',
'tzone': '5.5',
'lan': 'en'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var form = new FormData();
form.append("api_key", "{Your API Key}");
form.append("sign", "TIGER");
form.append("h_day", "today");
form.append("tzone", "5.5");
form.append("lan", "en");
var settings = {
"url": "https://astroapi-5.divineapi.com/api/v3/chinese-horoscope",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer {Your Auth Token}"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});import requests
url = "https://astroapi-5.divineapi.com/api/v3/chinese-horoscope"
payload = {'api_key': '{Your API Key}',
'sign': 'TIGER',
'h_day': 'today',
'tzone': '5.5',
'lan': 'en'}
headers = {
'Authorization': 'Bearer {Your Auth Token}'
}
response = requests.request("POST", url, headers=headers, data=payload,)
print(response.text)