ホロスコープ
全星座の毎日・毎週・毎年のホロスコープを含む、AIが生成したホロスコープコンテンツにアクセスします。
AI生成コンテンツ
ホロスコープはCloudflare AI(LLaMA 3.3-70B)を使用して生成され、スケジュールに従って自動的に更新されます。
星座
すべてのホロスコープエンドポイントは以下の星座識別子を受け入れます:
aries、taurus、gemini、cancer、leo、virgo、libra、scorpio、sagittarius、capricorn、aquarius、pisces
毎日のホロスコープ
全12星座のAI生成毎日ホロスコープを取得する。
必要なモジュール
module:daily-report モジュールが必要です。
bash
curl "https://api.astroapi.cloud/api/horoscope/daily/2024-06-15" \
-H "X-Api-Key: your-api-key"特定の言語で:
bash
curl "https://api.astroapi.cloud/api/horoscope/daily/2024-06-15?language=nl" \
-H "X-Api-Key: your-api-key"パスパラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
date | string | はい | YYYY-MM-DD 形式の日付 |
クエリパラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
language | string | いいえ | ホロスコープテキストの言語コード(デフォルト:"en") |
レスポンス
毎日のエンドポイントは全12星座のホロスコープを返します:
json
{
"data": {
"date": "2024-06-15",
"language": "en",
"horoscopes": {
"aries": {
"sign": "aries",
"text": "Today brings a surge of energy and motivation. Mars, your ruling planet, aligns favorably with Jupiter, opening doors for bold action and new beginnings..."
},
"taurus": {
"sign": "taurus",
"text": "Venus highlights your financial sector today, making this an excellent time to review your long-term plans..."
}
}
}
}コンテンツの利用可能性
毎日のホロスコープはスケジュールに従って生成されるため、4ヶ月以上前の日付では利用できない場合があります。
週間ホロスコープ
特定の星座の週間ホロスコープを取得する。
必要なモジュール
module:weekly-report モジュールが必要です。
bash
curl "https://api.astroapi.cloud/api/horoscope/weekly/2024/24/aries" \
-H "X-Api-Key: your-api-key"パスパラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
year | number | はい | 年(例:2024) |
week | string | はい | ISOの週番号、ゼロパディング(01〜53) |
zodiacSign | string | はい | 星座識別子(上記リストを参照) |
クエリパラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
language | string | いいえ | ホロスコープテキストの言語コード(デフォルト:"en") |
レスポンス
json
{
"data": {
"year": 2024,
"week": 24,
"zodiacSign": "aries",
"language": "en",
"text": "This week marks an important turning point for Aries. The Sun's position in Gemini activates your communication house, making this the ideal time to speak your truth and connect with others..."
}
}コンテンツの利用可能性
週間ホロスコープは現在の週と約4ヶ月前までの期間で利用可能です。
年間ホロスコープ
特定の星座の年間ホロスコープを取得する。
必要なモジュール
module:yearly-report モジュールが必要です。
bash
curl "https://api.astroapi.cloud/api/horoscope/yearly/2024/aries" \
-H "X-Api-Key: your-api-key"パスパラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
year | number | はい | 年(現在の年のみサポート) |
zodiacSign | string | はい | 星座識別子 |
クエリパラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
language | string | いいえ | ホロスコープテキストの言語コード(デフォルト:"en") |
レスポンス
json
{
"data": {
"year": 2024,
"zodiacSign": "aries",
"language": "en",
"text": "2024 is a year of transformation and expansion for Aries. Saturn's continued presence in Pisces asks you to confront hidden patterns, while Jupiter in Taurus brings tangible rewards for past efforts..."
}
}コンテンツの利用可能性
年間ホロスコープは現在の暦年のみ利用可能です。
年間アセンダントホロスコープ
アセンダント(ライジングサイン)の視点に焦点を当てた年間ホロスコープを取得する。
必要なモジュール
module:yearly-ascendant-report モジュールが必要です。
bash
curl "https://api.astroapi.cloud/api/horoscope/yearly-ascendant/2024/aries" \
-H "X-Api-Key: your-api-key"パスパラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
year | number | はい | 年(現在の年のみサポート) |
zodiacSign | string | はい | アセンダントサイン識別子 |
クエリパラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
language | string | いいえ | ホロスコープテキストの言語コード(デフォルト:"en") |
レスポンス
json
{
"data": {
"year": 2024,
"zodiacSign": "aries",
"language": "en",
"text": "For those with Aries rising, 2024 activates your chart in powerful ways. Pluto's move into your 11th house reshapes your social circle and long-term goals..."
}
}コンテンツの利用可能性
年間アセンダントホロスコープは現在の暦年のみ利用可能です。
利用可能期間まとめ
| エンドポイント | 必要なモジュール | 利用可能期間 |
|---|---|---|
| 毎日 | module:daily-report | 最大約4ヶ月前まで |
| 週間 | module:weekly-report | 最大約4ヶ月前まで |
| 年間 | module:yearly-report | 現在の年のみ |
| 年間アセンダント | module:yearly-ascendant-report | 現在の年のみ |