🐘 PHP Example
<?php
$api_url = "https://www.horoscope.live/api/v1/date=1122025/sign=aries/type=short";
$response = file_get_contents($api_url);
$data = json_decode($response, true);
echo "Horoscope: " . $data['horoscope'];
?>
🐍 Python Example
import requests
api_url = "https://www.horoscope.live/api/v1/date=1122025/sign=aries/type=short"
response = requests.get(api_url)
data = response.json()
print("Horoscope:", data["horoscope"])
⚡ Next.js API Route
export default async function handler(req, res) {
const apiUrl = "https://www.horoscope.live/api/v1/date=1122025/sign=aries/type=short";
const response = await fetch(apiUrl);
const data = await response.json();
res.status(200).json(data);
}
⚛️ React Example (Fetch API)
import { useEffect, useState } from "react";
function Horoscope() {
const [horoscope, setHoroscope] = useState("");
useEffect(() => {
fetch("https://www.horoscope.live/api/v1/date=1122025/sign=aries/type=short")
.then(response => response.json())
.then(data => setHoroscope(data.horoscope));
}, []);
return <div>Horoscope: {horoscope}</div>;
}
export default Horoscope;
💡 Replace 1122025
with the date (MMDDYYYY), aries
with any zodiac sign,
and short
with detailed
for a full reading.