Ir al contenido
GET /v1/search

Search the Discogs database

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/discogs-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

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