# Daily horoscope widgets for news publishers

> Newspapers, portals and magazine apps run a horoscope box because readers come back for it every morning. The engineering is mostly caching and dates: the sun-sign text is pure content keyed by sign, date and language, so an edition needs twelve calls a day no matter how many millions of readers open the page.

Source: https://astronode.dev/use-cases/media-horoscope-widget · Updated: 2026-12-02

**Plan needed:** Plan: **Free** covers the daily sun-sign box, the Chinese-year feature and the panchang strip. The love variant and Rahu Kaal are **Hobby**. Only calls below 400 are billed, so a malformed request costs a debugging session, not quota.

## The mistake that bites first: Omit `date` and you get the UTC day, not your edition's

`GET /v1/horoscope/daily/:sign` defaults `date` to today's **UTC** date. An Indian edition that prefetches at 00:30 IST without a date publishes yesterday's reading until 05:30. Always pass `?date=` in your edition's own time zone. Two more first-day surprises: the sign is a case-sensitive path value (`/daily/aries` is a `400 VALIDATION_ERROR`; send `Aries`), and `language=hi` currently returns the English text with `language: "en"` - check the field rather than assuming you got Hindi.

## 1. The twelve-sign box

Prefetch all twelve signs on a schedule shortly after midnight in the edition's zone, store them, and render from your own cache or CDN. Each response carries `date` and `weekday`, so the page can show which day the text is for.

- [`GET /v1/horoscope/daily/:sign`](https://astronode.dev/capabilities/western/horoscope-daily-sign) - Summary, focus areas and cautions for one sign and date, plus the disclaimer to print.
- [`GET /v1/horoscope/love/:sign`](https://astronode.dev/capabilities/western/horoscope-love-sign) - A relationships variant with do / avoid lists - the one weekend supplements run.

## 2. Seasonal features

Lunar New Year coverage needs the animal and element for a year; it never changes for that year, so fetch once and hard-cache.

- [`GET /v1/western/chinese/zodiac/:year`](https://astronode.dev/capabilities/western/western-chinese-zodiac-year) - Animal, element and polarity for a year - 2027 is the Fire Goat.

## 3. The panchang strip for Indian editions

Regional editions want today's tithi and Rahu Kaal beside the horoscope. These depend on location, so fetch per edition city, not once nationally.

- [`POST /v1/panchang`](https://astronode.dev/capabilities/vedic/panchang) - Tithi, nakshatra, sunrise and sunset for the edition's city.
- [`POST /v1/muhurta/inauspicious`](https://astronode.dev/capabilities/vedic/muhurta-inauspicious) - Rahu Kaal, Yamaganda and Gulika for that city's day.

## Quick answers

**Which endpoints does a media horoscope widgets build use?**

5 endpoints across 3 stages: Daily Sun Sign Horoscope (`GET /v1/horoscope/daily/:sign`); Daily Sun Sign Love Horoscope (`GET /v1/horoscope/love/:sign`); Chinese Zodiac (`GET /v1/western/chinese/zodiac/:year`); Panchang (`POST /v1/panchang`); Rahu Kaal, Yamaganda and Gulika (`POST /v1/muhurta/inauspicious`).

**Which plan does it need?**

Plan: **Free** covers the daily sun-sign box, the Chinese-year feature and the panchang strip. The love variant and Rahu Kaal are **Hobby**. Only calls below 400 are billed, so a malformed request costs a debugging session, not quota.

**What goes wrong first?**

Omit `date` and you get the UTC day, not your edition's. `GET /v1/horoscope/daily/:sign` defaults `date` to today's **UTC** date. An Indian edition that prefetches at 00:30 IST without a date publishes yesterday's reading until 05:30. Always pass `?date=` in your edition's own time zone. Two more first-day surprises: the sign is a case-sensitive path value (`/daily/aries` is a `400 VALIDATION_ERROR`; send `Aries`), and `language=hi` currently returns the English text with `language: "en"` - check the field rather than assuming you got Hindi.

## Go deeper

- [Recipe: a daily horoscope newsletter](https://astronode.dev/recipes/daily-horoscope-newsletter)
- [Recipe: multi-language output](https://astronode.dev/recipes/multi-language-output)
- [Integration: WordPress](https://astronode.dev/integrations/wordpress)
- [Error: 429 RATE_LIMITED and Retry-After](https://astronode.dev/docs/errors/rate-limited)
- [Tool: API cost estimator](https://astronode.dev/tools/api-cost-estimator)
