Western weekly horoscope
Returns this week's pre-generated Western weekly horoscope for the given Sun sign.
Endpoint
GET /v1/western/horoscope/weekly/{sun_sign}
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
| sun_sign | string | Yes |
Example request
- curl
- Python
- TypeScript
curl -X GET "https://api.asterwise.com/v1/western/horoscope/weekly/aries" \
-H "Authorization: Bearer YOUR_API_KEY"
import asterwise
from asterwise.api.western_api import WesternApi
configuration = asterwise.Configuration(
host="https://api.asterwise.com",
access_token="YOUR_API_KEY",
)
with asterwise.ApiClient(configuration) as client:
api = WesternApi(client)
result = api.western_horoscope_weekly(sun_sign="aries")
print(result)
import { createClient, createConfig, westernHoroscopeWeekly } from 'asterwise';
const client = createClient(createConfig({
baseUrl: 'https://api.asterwise.com',
headers: { Authorization: 'Bearer YOUR_API_KEY' },
}));
const result = await westernHoroscopeWeekly({
client,
path: {
"sun_sign": "aries"
},
});
console.log(result.data);
Example response
Response fields
| Field | Type | Description |
|---|---|---|
| success | boolean | True if the request succeeded |
| message | string | Human-readable status message |
| data | object | Payload returned by Western horoscope GET endpoints. |
| data.content | object | Stored Western tropical horoscope prose; no remedy field. |
| data.content.headline | string | |
| data.content.narrative | string | |
| data.content.career | string | |
| data.content.money | string | |
| data.content.love | string | |
| data.content.body | string | |
| data.content.power_window | string | null | Favorable action window with tropical transit context |
| data.content.caution_window | string | null | Cautious or low-energy window with tropical transit context |
| data.content.closing_message | string | null | Shareable closing line for the period |
| data.content.phases | array[HoroscopePhase] | null | Monthly: phased breakdown |
| data.content.year_theme | string | null | Yearly: tropical theme for the year |
| data.content.chapters | array[WesternHoroscopeChapter] | null | Yearly: chapter breakdown |
| data.content.auspicious_months | array[string] | null | Yearly: auspicious month names |
| data.content.landmark_dates | array[WesternHoroscopeLandmarkDate] | null | Yearly: key dates |
| data.generated_at | string | null | ISO timestamp when the horoscope was generated (UTC) |
| data.period_key | string | Period identifier (date, week, month, or year key) |
| data.horizon | string | Horizon: daily, weekly, monthly, or yearly |
| data.sun_sign | string | Normalised English tropical Sun sign slug |
| data.zodiac_type | string | Always western for these endpoints |
Errors
| Code | Description | Reference |
|---|---|---|
| authentication_failed | Missing or invalid API key. | authentication_failed |
| ephemeris_unavailable | Upstream ephemeris service error. | ephemeris_unavailable |
| insufficient_tier | API key tier does not include this endpoint. | insufficient_tier |
| internal_error | Unexpected server error. | internal_error |
| ip_rate_limit_exceeded | Too many requests in a short window. | ip_rate_limit_exceeded |
| payload_too_large | Request body exceeds the size limit. | payload_too_large |
| resource_not_found | Referenced resource was not found. | resource_not_found |
| validation_error | Request body failed schema validation. | validation_error |