Cosmic Roast: Daily Zodiac Horoscopes API

Start your day with a brutally honest laugh from the stars ✨ This widget delivers a daily horoscope based on your zodiac sign — but with a twist: each message

Input

Send these Fields as input. A Field not listed here is refused.

zodiac_sign

Select your zodiac sign

  • Type: string
  • Required: yes
  • Allowed values: Aries, Taurus, Gemini, Cancer, Leo, Virgo, Libra, Scorpio, Sagittarius, Capricorn, Aquarius, Pisces

Run it

One call presses the Widget and answers the run once its status is succeeded or failed, however long it takes. The key is read from ABYSS_API_KEY. Install the library with npm install abysshub or pip install abysshub; cURL sends the Fields as a form.

JavaScript

// index.mjs
import Abyss from "abysshub";

const abyss = new Abyss();

const run = await abyss.run("widget_112", {
  zodiac_sign: "Gemini",
});

for (const path of await run.save("output")) {
  console.log(path);
}

Python

from abysshub import Abyss

abyss = Abyss()

run = abyss.run("widget_112", {
    "zodiac_sign": "Gemini",
})

for path in run.save("output"):
    print(path)

cURL

curl https://api.abysshub.com/v1/widgets/widget_112/runs \
  -H "Authorization: Bearer $ABYSS_API_KEY" \
  -F zodiac_sign=Gemini

A succeeded run carries its result and its output_files. Their URLs are signed for each read: re-read the run, never store a URL. A run still queued or running in the answer (after an hour, or when the API is busy) is read again at its Location with ?wait=true.

More

Keys, files, errors and limits: API access.