> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openvinyl.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Find albums

> Find albums by text (`q`) or by `barcode`. Both return the same album cards.

With a barcode, each album also carries `pressings`: the pressings that have that barcode. Apps that only need the album (title, artist, cover) can ignore them. `match` tells you how far the barcode got: `one_pressing`, `one_album`, `several_albums` or `none`. 99.2% of Discogs vinyl barcodes land on a single album.

Text search matches artist and title in any order, ignores "the", and ranks well-known albums above one-off releases with a similar name.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/albums
openapi: 3.1.0
info:
  title: Open Vinyl API
  description: >-
    Open catalog of vinyl albums and pressings built from Discogs (CC0),
    MusicBrainz (CC0), Wikidata (CC0) and Cover Art Archive links.
  version: 0.2.0
servers:
  - url: https://api.openvinyl.dev
    description: Open Vinyl API
  - url: http://127.0.0.1:8000
    description: self-hosted (openvinyl serve)
security:
  - {}
  - apiKey: []
paths:
  /v1/albums:
    get:
      tags:
        - Albums
      summary: Find albums
      description: >-
        Find albums by text (`q`) or by `barcode`. Both return the same album
        cards.


        With a barcode, each album also carries `pressings`: the pressings that
        have that barcode. Apps that only need the album (title, artist, cover)
        can ignore them. `match` tells you how far the barcode got:
        `one_pressing`, `one_album`, `several_albums` or `none`. 99.2% of
        Discogs vinyl barcodes land on a single album.


        Text search matches artist and title in any order, ignores "the", and
        ranks well-known albums above one-off releases with a similar name.
      operationId: albums_v1_albums_get
      parameters:
        - name: q
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                minLength: 2
              - type: 'null'
            description: artist and/or title, any order
            title: Q
          description: artist and/or title, any order
        - name: barcode
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: as printed; spaces, dashes and leading zeros are fine
            title: Barcode
          description: as printed; spaces, dashes and leading zeros are fine
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            default: 20
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Albums V1 Albums Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: ov_live_…
      description: >-
        Optional. Keys raise the rate limit; without one, requests are limited
        per IP.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.