> ## 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 pressings by code

> Codes read off a record (barcode, catalog number, or any part of the runout etching) return candidate pressings, each with its album, a score, and which fields matched. Add `label`, `country`, `artist` or `title` to re-rank. `note` says when several pressings tie and what would separate them.

For artist and title alone, use `GET /v1/albums?q=`.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/search
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/search:
    get:
      tags:
        - Identify
      summary: Find pressings by code
      description: >-
        Codes read off a record (barcode, catalog number, or any part of the
        runout etching) return candidate pressings, each with its album, a
        score, and which fields matched. Add `label`, `country`, `artist` or
        `title` to re-rank. `note` says when several pressings tie and what
        would separate them.


        For artist and title alone, use `GET /v1/albums?q=`.
      operationId: search_v1_search_get
      parameters:
        - name: barcode
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: as printed; spaces and dashes are fine
            title: Barcode
          description: as printed; spaces and dashes are fine
        - name: catno
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: catalog number, e.g. 'SMAS-11163'
            title: Catno
          description: catalog number, e.g. 'SMAS-11163'
        - name: runout
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: any part of a matrix / runout etching
            title: Runout
          description: any part of a matrix / runout etching
        - name: label
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: confirms a catno or barcode
            title: Label
          description: confirms a catno or barcode
        - name: artist
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: re-ranks code matches
            title: Artist
          description: re-ranks code matches
        - name: title
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: re-ranks code matches
            title: Title
          description: re-ranks code matches
        - name: country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Country
        - name: year
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Year
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 50
            default: 10
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Search V1 Search 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.