Vai al contenuto
GET /v1/search

Search the Discogs database

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "page": 1,
        "type": "artist",
        "count": 20,
        "query": "nirvana",
        "source": "Discogs",
        "results": [
            {
                "id": 125246,
                "type": "artist",
                "year": null,
                "genre": [],
                "label": [],
                "thumb": null,
                "title": "Nirvana",
                "format": [],
                "country": null
            },
            {
                "id": 307513,
                "type": "artist",
                "year": null,
                "genre": [],
                "label": [],
                "thumb": null,
                "title": "Nirvana (2)",
                "format": [],
                "country": null
            },
            {
                "id": 2744248,
                "type": "artist",
                "year": null,
                "genre": [],
                "label": [],
                "thumb": null,
                "title": "Nirvana (10)",
                "format": [],
                "country": null
            },
            {
                "id": 1087206,
                "type": "artist",
                "year": null,
                "genre": [],
                "label": [],
                "thumb": null,
                "title": "Nirvana 2002",
                "format": [],
                "country": null
            },
            {
                "id": 1082359,
                "type": "artist",
                "year": null,
                "genre": [],
                "label": [],
                "thumb": null,
                "title": "Nirvana (6)",
                "format": [],
                "country": null
            },
            {
                "id": 1176738,
                "type": "artist",
                "year": null,
                "genre": [],
                "label": [],
                "thumb": null,
                "title": "Nirvana (7)",
                "format": [],
                "country": null
            },
            {
                "id": 816495,
                "type": "artist",
                "year": null,
                "genre": [],
                "label": [],
                "thumb": null,
                "title": "Nirvana (5)",
                "format": [],
                "country": null
            },
            {
                "id": 457609,
                "type": "artist",
                "year": null,
                "genre": [],
                "label": [],
                "thumb": null,
                "title": "Nirvana (4)",
                "format": [],
                "country": null
            },
            {
                "id": 1907189,
                "type": "artist",
                "year": null,
                "genre": [],
                "label": [],
                "thumb": null,
                "title": "Paulette \"Nirvana\" Buckley",
                "format": [],
                "country": null
         
…