Aller au contenu
GET /v1/search

Search the Discogs database

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/discogs-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
         
…