Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/akibanks/api-tienda-vinilos/llms.txt

Use this file to discover all available pages before exploring further.

Search the Discogs database for vinyl releases by any keyword — artist name, album title, label, or catalogue number. Results are paginated at 20 items per page and include computed pricing based on the release year and community popularity (the have/want ratio). Each response page is cached in Redis for 1 hour using the key buscar:{query}:{page}, so repeated searches with the same terms and page number are served instantly.

Endpoint

PropertyValue
MethodGET
Path/buscar
AuthNone
Cache TTL1 hour per (query, page)

Request Parameters

q
string
required
The search query string. Matched against release titles, artist names, labels, and catalogue numbers in the Discogs database. Must be a non-empty string after trimming whitespace.
pagina
integer
default:1
Page number to retrieve. Each page contains up to 20 results. Starts at 1.

Response Fields

resultados
array
required
Array of release objects matching the search query on the current page.
total
integer
required
Total number of matching releases across all pages, as reported by Discogs.
paginas
integer
required
Total number of pages available for this query.

Example Request

curl -G https://api.vinylvibes.example.com/buscar \
  --data-urlencode "q=Dark Side of the Moon" \
  --data-urlencode "pagina=1"

Example Response

{
  "resultados": [
    {
      "discogs_id": "9579406",
      "titulo": "The Dark Side Of The Moon",
      "artista": "Pink Floyd",
      "anio": 1973,
      "genero": "Rock",
      "estilo": "Prog Rock",
      "imagen_url": "https://i.discogs.com/some-cover.jpg",
      "precio": 34.99,
      "have": 142500,
      "want": 61200
    },
    {
      "discogs_id": "10362353",
      "titulo": "The Dark Side Of The Moon",
      "artista": "Pink Floyd",
      "anio": 2016,
      "genero": "Rock",
      "estilo": "Prog Rock",
      "imagen_url": "https://i.discogs.com/another-cover.jpg",
      "precio": 23.99,
      "have": 8740,
      "want": 3100
    }
  ],
  "total": 487,
  "paginas": 25
}

Error Responses

StatusError messageCause
400"El parámetro q es requerido."q was missing or blank after trimming.
500"Error al buscar en Discogs."Discogs API request failed or returned an error.

Build docs developers (and LLMs) love