The Horoscope API provides daily horoscopes for all zodiac signs.
Checking API status...
https://api.api-ninjas.com/v1/horoscope
Returns the daily horoscope for a specific zodiac sign.
zodiac requiredThe zodiac sign to get a horoscope for. Valid values are: aries, taurus, gemini, cancer, leo, virgo, libra, scorpio, sagittarius, capricorn, aquarius, pisces.
X-Api-Key requiredAPI Key associated with your account.
Returns a JSON object with the following properties:
dateThe date for the horoscope in YYYY-MM-DD format.
zodiacThe zodiac sign the horoscope is for.
horoscopeThe daily horoscope text for the specified zodiac sign.
https://api.api-ninjas.com/v1/horoscope?zodiac=virgoHeaders
X-Api-KeyLog in or sign up to get your API Key1
2
3
4
5
{
"date": "2023-07-15",
"zodiac": "virgo",
"horoscope": "Today is a day for careful planning and attention to detail, Virgo. Your analytical skills are heightened, making it an excellent time to tackle complex problems. In your personal relationships, clear communication will prevent misunderstandings. Take some time for self-care and don't be too critical of yourself or others. A small act of kindness could have unexpected positive results."
}1
2
curl -X GET "https://api.api-ninjas.com/v1/horoscope?sign=aries" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.