Examples

Fetching Song Lyrics with Python

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']}")

Fetching Horoscope with JavaScript

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));