The sandbox environment returns realistic mock data - perfect for development. It answers with one fixed sample whatever you send (today's horoscope comes back for Sagittarius), so the examples below ask for Sagittarius. A live key answers for the sign you send. No API key required!
https://api.vedika.io/sandbox
Tip: When you're ready for production with real astronomical data, get your API key from the Console.
2
Make Your First Request
Let's get a daily horoscope. Choose your preferred language:
import requests
# Sandbox URL - no API key needed!
url = "https://api.vedika.io/sandbox/astrology/horoscope/sagittarius"
response = requests.get(url)
data = response.json()["data"]
print(f"Today's Horoscope for {data['sign']}:")
print(data["prediction"])
print(f"\nLucky Number: {data['luckyNumber']}")
print(f"Lucky Color: {data['luckyColor']}")
# Simple GET request - no API key needed for sandbox!
curl -X GET "https://api.vedika.io/sandbox/astrology/horoscope/sagittarius"
# Pretty print with jq (if installed)
curl -s "https://api.vedika.io/sandbox/astrology/horoscope/sagittarius" | jq