Vai al contenuto
GET /v1/search

Search tracks, artists or albums

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/music-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/music-api/v1/search" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/music-api/v1/search", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/music-api/v1/search");
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/music-api/v1/search",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "type": "track",
        "count": 25,
        "query": "daft punk",
        "results": [
            {
                "id": 66609426,
                "link": "https://www.deezer.com/track/66609426",
                "rank": 954234,
                "album": "Get Lucky (Radio Edit - feat. Pharrell Williams and Nile Rodgers)",
                "cover": "https://cdn-images.dzcdn.net/images/cover/bc49adb87758e0c8c4e508a9c5cce85d/250x250-000000-80-0-0.jpg",
                "title": "Get Lucky (Radio Edit - feat. Pharrell Williams and Nile Rodgers)",
                "artist": "Daft Punk",
                "preview": "https://cdnt-preview.dzcdn.net/api/1/1/1/b/f/0/1bf80a82992903ff685ba1b7275223f8.mp3?hdnea=exp=1780099849~acl=/api/1/1/1/b/f/0/1bf80a82992903ff685ba1b7275223f8.mp3*~data=user_id=0,application_id=42~hmac=65ea5346619b78ccf0f4c094c9e152c8d8fb3db4aaf36f5c45e7e21e48f3556a",
                "album_id": 6516139,
                "duration": 248,
                "explicit": false,
                "artist_id": 27
            },
            {
                "id": 136889400,
                "link": "https://www.deezer.com/track/136889400",
                "rank": 945011,
                "album": "Starboy",
                "cover": "https://cdn-images.dzcdn.net/images/cover/134778e4c4f19ea71c82408300925a9a/250x250-000000-80-0-0.jpg",
                "title": "Starboy",
                "artist": "The Weeknd",
                "preview": "https://cdnt-preview.dzcdn.net/api/1/1/3/c/1/0/3c19a82aeffd2f6f6adb63c4d8548e06.mp3?hdnea=exp=1780099849~acl=/api/1/1/3/c/1/0/3c19a82aeffd2f6f6adb63c4d8548e06.mp3*~data=user_id=0,application_id=42~hmac=e1a11f65914942170d249923e7d7c99b60fc9a2b443e6fcca8762b763a8393f4",
                "album_id": 14652356,
                "duration": 230,
                "explicit": true,
                "artist_id": 4050205
            },
            {
                "id": 3135553,
                "link": "https://www.deezer.com/track/3135553",
                "rank": 895695,
                "album": "Discovery",
                "cover": "https://cdn-images.dzcdn.net/images/cover/5718f7c81c27e0b2417e2a4c45224f8a/250x250-000000-80-0-0.jpg",
                "title": "One More Time",
                "artist": "Daft Punk",
                "preview": "https://cdnt-preview.dzcdn.net/api/1/1/f/8/c/0/f8c5dc3837912dba37c9a1ab3170cc3f.mp3?hdnea=exp=1780099849~acl=/api/1/1/f/8/c/0/f8c5dc3837912dba37c9a1ab3170cc3f.mp3*~data=user_id=0,application_id=42~hmac=b151e9506c8bdd81fffcb45d65eb8ebdef694ade41430c791893cc64bf522e98",
                "album_id": 302127,
                "duration": 320,
                "explicit": false,
                "artist_id": 27
            },
            {
                "id": 136889434,
                "link": "https://www.deezer.com/track/136889434",
                "rank": 940819,
                "album": "Starboy",
                "cover": "https://cdn-images.dzcdn.net/images/cover/134778e4c4f19
…