Retrieve the album biography (wiki content) for a release from the Last.fm API, identified by its Discogs release ID. The server resolves the artist and album title by looking up the release on Discogs (or reusing a cached copy from a priorDocumentation 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.
GET /disco/:id call), then queries Last.fm’s album.getInfo method.
Language preference is handled automatically: Spanish (es) is tried first. If Last.fm returns no content, or content shorter than 50 characters, the request falls back to English (en). If neither language yields a usable biography, the endpoint returns a 404.
All HTML links and tags are stripped from the biography text before it is returned — only plain prose is delivered to the client. Results are cached in Redis under historia:{id} for 7 days.
Endpoint
| Property | Value |
|---|---|
| Method | GET |
| Path | /disco/:id/historia |
| Auth | None |
| Cache TTL | 7 days |
Request Parameters
The Discogs release ID. Used to resolve the album title and artist name before
querying Last.fm. Example:
9579406.Response Fields
The biography text from Last.fm’s album wiki. HTML anchor tags and all other
HTML markup are stripped. Plain text only, may contain newlines.
Example Request
Example Response
Language Fallback Behavior
The endpoint queries Last.fm twice at most, in this order:| Attempt | lang Parameter | Condition to proceed to next |
|---|---|---|
| 1 | es | No content, or content < 50 chars |
| 2 | en | Returned if Spanish fails |
null and the endpoint responds with 404.
Error Responses
| Status | Error message | Cause |
|---|---|---|
404 | "Disco no encontrado." | The Discogs API returned a non-OK response when resolving the release by ID. |
404 | "No hay historia disponible para este disco." | Last.fm returned no biography in Spanish or English, or all content was shorter than 50 chars. |
500 | "Error al obtener la historia." | Network failure, Last.fm API error, or unexpected server exception. |