Daily horoscope widgets for news publishers

Twelve fetches a day per edition, not one per pageview.

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.

5 endpoints across 3 stages. Updated .

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.

Worth knowing 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.

Stage 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.

Stage 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.

Stage 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.

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.

Start

One key covers all of it

Every endpoint above takes the same bearer token and returns the same envelope. Free tier covers 1,000 requests / month. Pick your language in the quickstarts, or run any of these without a key in the playground.