Copy page

Copy page as Markdown for LLMs

View as Markdown

View this page as plain text


Open in ChatGPT

Ask ChatGPT about this page

Open in Claude

Ask Claude about this page

Chinese Yearly Top Sign API

Introducing the Chinese Yearly Top Sign API, designed to provide yearly predictions and insights for a specific Chinese zodiac sign. 


API Endpoint for English

POST https://astroapi-5.divineapi.com/api/v3/chinese-yearly-top-signs

Guide: If you only need English, use this endpoint.


API Endpoint for other languages

POST https://astroapi-5-translator.divineapi.com/api/v3/chinese-yearly-top-signs

Guide: If you want the prediction in any other language use this translator endpoint.


Supported Language Codes

Use the lan parameter in the body to fetch responses in a specific language.

Supported Reference Article:
https://support.divineapi.com/general-api-support/translating-apis-into-a-different-language

CodeLanguage
enEnglish
hiHindi
zhChinese
jaJapanese
arArabic
ruRussian
ptPortuguese
esSpanish
frFrench
deGerman
itItalian
nlDutch
plPolish
trTurkish
ukUkrainian
huHungarian
grGreek
bnBengali
maMarathi
tmTamil
tlTelugu
mlMalayalam
knKannada
taFilipino/Tagalog
bahIndonesian
guGujarati
koKorean

Guide:
To use translations, ensure your translator is updated at DivineAPI Translator.


Headers

NameTypeDescription
Authorization*StringYour API Access Token. Example: Bearer {token}

Request Body

NameTypeDescription
api_key*StringYour DivineAPI key available on your dashboard.
sign*StringThe Chinese zodiac animal sign (e.g., Tiger, Dragon, Rat).
year*IntegerOne of current, prev, next.
tzone*FloatTimezone offset, e.g., 5.5. See the Timezone Guide.
lanStringLanguage code as per the table above. Default: en.

200: OK Successful

{
    "success": 1,
    "data": {
        "year": "2026",
        "areas": {
            "career": [
                {
                    "rank": 1,
                    "sign": "Goat",
                    "reason": "Tai Yang brings help from senior people when they see you at work, with the best windows from 5 March and 7 November, though the last months turn harder."
                },
                {
                    "rank": 2,
                    "sign": "Rooster",
                    "reason": "Allies in the April and May months, Tai Yin favouring patient effort and Tian Yi pointing to a helpful mentor, though the Fire year's pressure tests which ideas hold."
                },
                {
                    "rank": 3,
                    "sign": "Ox",
                    "reason": "Long De, the star of help from influential people, favours support from someone senior, most likely in the allied May and September months; small frustrations with colleagues may test patience."
                }
            ],
            "health": [
                {
                    "rank": 1,
                    "sign": "Goat",
                    "reason": "The Fire year feeds the Goat's Earth under the sun star Tai Yang, so energy is plentiful, though pacing it evenly matters, especially in the month from 7 July."
                },
                {
                    "rank": 2,
                    "sign": "Rooster",
                    "reason": "Tai Yin rewards patient, unshowy care like daily stretching; the hardest stretch is the clash month from 5 March, when rest matters more than anything new."
                },
                {
                    "rank": 3,
                    "sign": "Ox",
                    "reason": "The year feeds the Ox's Earth, giving extra staying power, though June's harm and October's punishment call for two weekly strength days and no new October commitments."
                }
            ],
            "love": [
                {
                    "rank": 1,
                    "sign": "Rabbit",
                    "reason": "One of the warmest years for meeting people, with the month from 7 November easiest for meeting someone who stays, though couples should watch the month from 5 June."
                },
                {
                    "rank": 2,
                    "sign": "Rooster",
                    "reason": "Hong Luan brings romance and joyful news, and Tai Yin's quiet help can come through someone close; April or May suits a first move better than the March clash."
                },
                {
                    "rank": 3,
                    "sign": "Goat",
                    "reason": "A secret-friend year with Tai Yang's visibility makes June, also a secret-friend month, a warm time for a special day together, though January 2027's clash calls for keeping things simple."
                }
            ],
            "wealth": [
                {
                    "rank": 1,
                    "sign": "Rooster",
                    "reason": "Quiet help from experienced people supports patient earning this year, though the months from 8 October and 7 December may bring small money frictions and an arrangement coming apart."
                },
                {
                    "rank": 2,
                    "sign": "Goat",
                    "reason": "The year feeds the Goat and Tai Yang brings visibility, with June the month a fair fee is likeliest heard; December may bring late payments or invoice quibbles."
                },
                {
                    "rank": 3,
                    "sign": "Rabbit",
                    "reason": "Fu De favours sensible gains this year, so a seasonal budget for gifts and celebrations helps, though April's harm and December's punishment can bring unreturned money and festive overspending."
                }
            ]
        }
    }
}

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-5.divineapi.com/api/v3/chinese-yearly-top-signs' \
--header 'Authorization: {YOUR_AUTH_TOKEN}' \
--form 'api_key="{YOUR_API_KEY}"' \
--form 'sign="dog"' \
--form 'tzone="5.5"' \
--form 'year="current"'
curl -X POST "https://astroapi-5.divineapi.com/api/v3/chinese-yearly-top-signs" \
  -H "Authorization: Bearer {Your Auth Token}" \
  --form 'api_key="{Your API Key}"' \
  --form 'sign="dog"' \
  --form 'tzone="5.5"' \
  --form 'year="current"' \
  --form 'lan="en"'
const FormData = require('form-data');
const axios = require('axios');

const form = new FormData();
form.append('api_key', '{Your API Key}');
form.append('sign', 'dog');
form.append('tzone', '5.5');
form.append('year', 'current');
form.append('lan', 'en');

const response = await axios.post('https://astroapi-5.divineapi.com/api/v3/chinese-yearly-top-signs', form, {
  headers: {
    ...form.getHeaders(),
    'Authorization': 'Bearer {Your Auth Token}',
  }
});

console.log(response.data);
import requests

url = "https://astroapi-5.divineapi.com/api/v3/chinese-yearly-top-signs"
headers = {
    "Authorization": "Bearer {Your Auth Token}",
}
payload = {
    "api_key": "{Your API Key}",
    "sign": "dog",
    "tzone": "5.5",
    "year": "current",
    "lan": "en",
}

response = requests.post(url, headers=headers, data=payload)

print(response.json())
const formData = new FormData();
formData.append('api_key', '{Your API Key}');
formData.append('sign', 'dog');
formData.append('tzone', '5.5');
formData.append('year', 'current');
formData.append('lan', 'en');

const response = await fetch('https://astroapi-5.divineapi.com/api/v3/chinese-yearly-top-signs', {
  method: 'POST',
  headers: {
      'Authorization': "Bearer {Your Auth Token}",
    },
  body: formData,
});

const data = await response.json();
console.log(data);
<?php

use GuzzleHttp\Client;

$client = new Client();

$response = $client->request('POST', 'https://astroapi-5.divineapi.com/api/v3/chinese-yearly-top-signs', [
    'headers' => [
        'Authorization' => 'Bearer {Your Auth Token}',
    ],
    'multipart' => [
        ['name' => 'api_key', 'contents' => '{Your API Key}'],
        ['name' => 'sign', 'contents' => 'dog'],
        ['name' => 'tzone', 'contents' => '5.5'],
        ['name' => 'year', 'contents' => 'current'],
        ['name' => 'lan', 'contents' => 'en'],
    ],
]);

echo $response->getBody();
package main

import (
    "bytes"
    "fmt"
    "mime/multipart"
    "net/http"
    "io"
)

func main() {
    body := &bytes.Buffer{}
    writer := multipart.NewWriter(body)
    writer.WriteField("api_key", "{Your API Key}")
    writer.WriteField("sign", "dog")
    writer.WriteField("tzone", "5.5")
    writer.WriteField("year", "current")
    writer.WriteField("lan", "en")
    writer.Close()

    req, _ := http.NewRequest("POST", "https://astroapi-5.divineapi.com/api/v3/chinese-yearly-top-signs", body)
    req.Header.Set("Content-Type", writer.FormDataContentType())
    req.Header.Set("Authorization", "Bearer {Your Auth Token}")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body2, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body2))
}
import okhttp3.*;
import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        OkHttpClient client = new OkHttpClient();

        RequestBody body = new MultipartBody.Builder()
            .setType(MultipartBody.FORM)
            .addFormDataPart("api_key", "{Your API Key}")
            .addFormDataPart("sign", "dog")
            .addFormDataPart("tzone", "5.5")
            .addFormDataPart("year", "current")
            .addFormDataPart("lan", "en")
            .build();

        Request request = new Request.Builder()
            .url("https://astroapi-5.divineapi.com/api/v3/chinese-yearly-top-signs")
            .post(body)
            .addHeader("Authorization", "Bearer {Your Auth Token}")
            .build();

        Response response = client.newCall(request).execute();
        System.out.println(response.body().string());
    }
}
import Foundation

let url = URL(string: "https://astroapi-5.divineapi.com/api/v3/chinese-yearly-top-signs")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer {Your Auth Token}", forHTTPHeaderField: "Authorization")

let boundary = "Boundary-\(UUID().uuidString)"
request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")

var bodyData = Data()
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"api_key\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("{Your API Key}\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"sign\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("dog\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"tzone\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("5.5\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"year\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("current\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"lan\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("en\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)--\r\n".data(using: .utf8)!)
request.httpBody = bodyData

let task = URLSession.shared.dataTask(with: request) { data, response, error in
    if let data = data {
        print(String(data: data, encoding: .utf8) ?? "")
    }
}
task.resume()
import okhttp3.*

fun main() {
    val client = OkHttpClient()

    val body = MultipartBody.Builder()
        .setType(MultipartBody.FORM)
        .addFormDataPart("api_key", "{Your API Key}")
        .addFormDataPart("sign", "dog")
        .addFormDataPart("tzone", "5.5")
        .addFormDataPart("year", "current")
        .addFormDataPart("lan", "en")
        .build()

    val request = Request.Builder()
        .url("https://astroapi-5.divineapi.com/api/v3/chinese-yearly-top-signs")
        .post(body!!)
        .addHeader("Authorization", "Bearer {Your Auth Token}")
        .build()

    client.newCall(request).execute().use { response ->
        println(response.body?.string())
    }
}
using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program {
    static async Task Main() {
        using var client = new HttpClient();
        client.DefaultRequestHeaders.Add("Authorization", "Bearer {Your Auth Token}");

        var content = new MultipartFormDataContent();
        content.Add(new StringContent("{Your API Key}"), "api_key");
        content.Add(new StringContent("dog"), "sign");
        content.Add(new StringContent("5.5"), "tzone");
        content.Add(new StringContent("current"), "year");
        content.Add(new StringContent("en"), "lan");

        var response = await client.PostAsync("https://astroapi-5.divineapi.com/api/v3/chinese-yearly-top-signs", content);
        var result = await response.Content.ReadAsStringAsync();
        Console.WriteLine(result);
    }
}
Response 200
{
    "success": 1,
    "data": {
        "year": "2026",
        "areas": {
            "career": [
                {
                    "rank": 1,
                    "sign": "Goat",
                    "reason": "Tai Yang brings help from senior people when they see you at work, with the best windows from 5 March and 7 November, though the last months turn harder."
                },
                {
                    "rank": 2,
                    "sign": "Rooster",
                    "reason": "Allies in the April and May months, Tai Yin favouring patient effort and Tian Yi pointing to a helpful mentor, though the Fire year's pressure tests which ideas hold."
                },
                {
                    "rank": 3,
                    "sign": "Ox",
                    "reason": "Long De, the star of help from influential people, favours support from someone senior, most likely in the allied May and September months; small frustrations with colleagues may test patience."
                }
            ],
            "health": [
                {
                    "rank": 1,
                    "sign": "Goat",
                    "reason": "The Fire year feeds the Goat's Earth under the sun star Tai Yang, so energy is plentiful, though pacing it evenly matters, especially in the month from 7 July."
                },
                {
                    "rank": 2,
                    "sign": "Rooster",
                    "reason": "Tai Yin rewards patient, unshowy care like daily stretching; the hardest stretch is the clash month from 5 March, when rest matters more than anything new."
                },
                {
                    "rank": 3,
                    "sign": "Ox",
                    "reason": "The year feeds the Ox's Earth, giving extra staying power, though June's harm and October's punishment call for two weekly strength days and no new October commitments."
                }
            ],
            "love": [
                {
                    "rank": 1,
                    "sign": "Rabbit",
                    "reason": "One of the warmest years for meeting people, with the month from 7 November easiest for meeting someone who stays, though couples should watch the month from 5 June."
                },
                {
                    "rank": 2,
                    "sign": "Rooster",
                    "reason": "Hong Luan brings romance and joyful news, and Tai Yin's quiet help can come through someone close; April or May suits a first move better than the March clash."
                },
                {
                    "rank": 3,
                    "sign": "Goat",
                    "reason": "A secret-friend year with Tai Yang's visibility makes June, also a secret-friend month, a warm time for a special day together, though January 2027's clash calls for keeping things simple."
                }
            ],
            "wealth": [
                {
                    "rank": 1,
                    "sign": "Rooster",
                    "reason": "Quiet help from experienced people supports patient earning this year, though the months from 8 October and 7 December may bring small money frictions and an arrangement coming apart."
                },
                {
                    "rank": 2,
                    "sign": "Goat",
                    "reason": "The year feeds the Goat and Tai Yang brings visibility, with June the month a fair fee is likeliest heard; December may bring late payments or invoice quibbles."
                },
                {
                    "rank": 3,
                    "sign": "Rabbit",
                    "reason": "Fu De favours sensible gains this year, so a seasonal budget for gifts and celebrations helps, though April's harm and December's punishment can bring unreturned money and festive overspending."
                }
            ]
        }
    }
}