Μετάβαση στο περιεχόμενο
GET /v1/song

Song by id

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/genius-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/genius-api/v1/song" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/genius-api/v1/song", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/genius-api/v1/song");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/genius-api/v1/song",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "song": {
            "id": 1063,
            "hot": false,
            "url": "https://genius.com/Queen-bohemian-rhapsody-lyrics",
            "path": "/Queen-bohemian-rhapsody-lyrics",
            "image": "https://images.genius.com/718de9d1fbcaae9f3c9b1bf483bfa8f1.1000x1000x1.png",
            "title": "Bohemian Rhapsody",
            "pageviews": 11171985,
            "thumbnail": "https://images.genius.com/718de9d1fbcaae9f3c9b1bf483bfa8f1.300x300x1.png",
            "full_title": "Bohemian Rhapsody by Queen",
            "release_date": "October 31, 1975",
            "primary_artist": {
                "id": 563,
                "url": "https://genius.com/artists/Queen",
                "name": "Queen",
                "image": "https://images.genius.com/3bc047e8b3c654ed28aedc69f93f8663.1000x1000x1.jpg",
                "verified": false
            },
            "featured_artists": []
        }
    },
    "meta": {
        "timestamp": "2026-06-07T16:48:39.525Z",
        "request_id": "7ab28547-564c-4147-88d4-b9a24d56c14c"
    },
    "status": "ok",
    "message": "Song retrieved successfully",
    "success": true
}