Examples
import requests
url = "https://api.emirkabal.com/v1/lyrics"
params = {"q": "PAPARAZZİ", "disable_media": "true"}
response = requests.get(url, params=params)
if response.status_code == 200:
print(response.json()["lyrics"])
else:
print(f"Error: {response.json()['error']}")
const url = "https://api.emirkabal.com/v1/horoscopes?horoscope=boga";
fetch(url)
.then(response => response.json())
.then(data => {
if (data.error) {
console.error(`Error: ${data.error}`);
} else {
console.log(`Horoscope: ${data.comment}`);
}
})
.catch(error => console.error("Request failed:", error));