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

# Search cards

> **Scope:** `read:catalog`

Every card you can buy right now: shop stock and fixed-price user listings. Each result has the exact price Buy a card charges, plus the $1 fee. Dutch auctions and your own listings are left out.

Page while `has_more` is true; page 20 is the last. `truncated: true` means the search stopped at its scan ceiling with matches unread. To get past either, narrow the price range: `min_price` at the last result's price (`max_price` for `price_desc`). Results at exactly that price come back again, so skip the ones you have.



## OpenAPI

````yaml /partner-api/openapi.yaml get /api/partner/v1/marketplace/listings
openapi: 3.1.0
info:
  title: CatchBack Partner API
  version: 1.0.0
  summary: Open packs, trade cards, read card data and ship vaulted cards.
  description: >-
    The Partner API acts on one CatchBack account with its real CatchCoins
    balance. Several

    operations here move money or data, so read
    [Idempotency](/partner-api/idempotency) before

    you call them.


    Error bodies are JSON with a human-readable `error` and, where you might
    branch on it, a

    machine-readable `code`. Branch on the status and the `code`, because the
    `error` text can

    change. New fields can be added to any response.
  contact:
    name: CatchBack support
    email: catchbackcards@gmail.com
servers:
  - url: https://catchbackcards.com
    description: Production. Every call acts on real money and real inventory.
security:
  - bearerAuth: []
tags:
  - name: Gacha
    description: Open packs, see what they can pull, check a pull, and sell cards back.
  - name: Marketplace
    description: Search and buy cards, and manage your own listings.
  - name: Metadata
    description: Look cards up by id or cert, with price history and recent activity.
  - name: Shipping
    description: Estimate, create and track shipments of cards you hold.
  - name: Account
    description: Your key, balance, limits, vault and order history, across every rail.
  - name: Funding
    description: Deposit and withdraw your balance in USDC.
  - name: Testing
    description: Test logins for trying CatchBack without real money.
  - name: Webhooks
    description: Signed POSTs we send to your URL when something happens on your account.
paths:
  /api/partner/v1/marketplace/listings:
    get:
      tags:
        - Marketplace
      summary: Search cards
      description: >-
        **Scope:** `read:catalog`


        Every card you can buy right now: shop stock and fixed-price user
        listings. Each result has the exact price Buy a card charges, plus the
        $1 fee. Dutch auctions and your own listings are left out.


        Page while `has_more` is true; page 20 is the last. `truncated: true`
        means the search stopped at its scan ceiling with matches unread. To get
        past either, narrow the price range: `min_price` at the last result's
        price (`max_price` for `price_desc`). Results at exactly that price come
        back again, so skip the ones you have.
      operationId: searchCards
      parameters:
        - $ref: '#/components/parameters/PackCategory'
        - name: q
          in: query
          description: >-
            Text in the card name, slab label or set. 2–60 letters, digits,
            spaces or `' & . -`.
          schema:
            type: string
            minLength: 2
            maxLength: 60
          example: charizard
        - name: grading_company
          in: query
          description: 2–10 letters, e.g. `PSA`.
          schema:
            type: string
            pattern: ^[A-Za-z]{2,10}$
        - name: min_grade
          in: query
          schema:
            type: number
        - name: max_grade
          in: query
          schema:
            type: number
        - name: min_price
          in: query
          description: Dollars.
          schema:
            type: number
        - name: max_price
          in: query
          description: Dollars.
          schema:
            type: number
        - name: source
          in: query
          schema:
            type: string
            enum:
              - all
              - shop
              - listing
            default: all
        - name: sort
          in: query
          schema:
            type: string
            enum:
              - price_asc
              - price_desc
            default: price_asc
        - name: page
          in: query
          description: 1–20. A later page is treated as 20.
          schema:
            type: integer
            minimum: 1
            maximum: 20
            default: 1
        - name: per_page
          in: query
          description: 1–100. A higher value is treated as 100.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
      responses:
        '200':
          description: The cards, sorted by price.
          content:
            application/json:
              schema:
                type: object
                required:
                  - category
                  - page
                  - per_page
                  - has_more
                  - truncated
                  - results
                properties:
                  category:
                    type: string
                  page:
                    type: integer
                  per_page:
                    type: integer
                  has_more:
                    type: boolean
                    description: Another page has results. Always false on page 20.
                  truncated:
                    type: boolean
                    description: >-
                      The search stopped at its scan ceiling with matches
                      unread.
                  results:
                    type: array
                    items:
                      type: object
                      required:
                        - card_id
                        - source
                        - listing_id
                        - price
                        - fee
                        - total_cost
                        - item
                      properties:
                        card_id:
                          type: string
                          description: What Buy a card takes.
                        source:
                          type: string
                          enum:
                            - shop
                            - listing
                        listing_id:
                          type:
                            - string
                            - 'null'
                          description: '`null` for a shop card.'
                        price:
                          type: number
                          description: What the buy charges for the card, in USD.
                        fee:
                          type: number
                          description: The $1 buyer fee.
                        total_cost:
                          type: number
                          description: '`price` + `fee`.'
                        item:
                          $ref: '#/components/schemas/Card'
              example:
                category: pokemon
                page: 1
                per_page: 50
                has_more: false
                truncated: false
                results:
                  - card_id: 0e94dc61-…
                    source: shop
                    listing_id: null
                    price: 1450
                    fee: 1
                    total_cost: 1451
                    item:
                      id: 0e94dc61-…
                      category: pokemon
                      name: Charizard ex
                      set: Pokemon Sv3 En-Obsidian Flames
                      grading_company: PSA
                      grading_rank: 10
                      slab_label: 2023 Obsidian Flames Charizard ex
                      language: english
                      cert_number: '84512377'
                      market_value: 1450
                      front_image: https://…/0e94dc61-….png
                      back_image: https://…/0e94dc61-…-back.png
                      render_image: https://…/0e94dc61-…-render.png
                      image_url: https://…/0e94dc61-…-render.png
        '400':
          description: >-
            An unknown `category`, or a malformed `q`, `grading_company`, grade,
            price, `source` or `sort`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: The key lacks `read:catalog`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          $ref: '#/components/responses/ServerError'
      security:
        - bearerAuth:
            - read:catalog
components:
  parameters:
    PackCategory:
      name: category
      in: query
      description: The catalog.
      schema:
        $ref: '#/components/schemas/PackCategory'
  schemas:
    Card:
      type: object
      description: >-
        The [card object](/partner-api/card-object). Other fields appear only on
        the catalogs that have them.
      required:
        - id
        - category
        - name
        - set
        - grading_company
        - grading_rank
        - slab_label
        - language
        - market_value
        - cert_number
        - front_image
        - back_image
        - render_image
        - image_url
      properties:
        id:
          type: string
          description: The card's id.
        category:
          $ref: '#/components/schemas/CardCategory'
        name:
          type:
            - string
            - 'null'
        set:
          type:
            - string
            - 'null'
        year:
          type:
            - string
            - 'null'
        number:
          type:
            - string
            - 'null'
        variant:
          type:
            - string
            - 'null'
        rarity:
          type:
            - string
            - 'null'
          description: Printed rarity.
        card_type:
          type:
            - string
            - 'null'
        language:
          type:
            - string
            - 'null'
        slab_label:
          type:
            - string
            - 'null'
          description: The text on the grading label.
        grading_company:
          type:
            - string
            - 'null'
        grading_rank:
          type:
            - number
            - 'null'
          description: The grade.
        cert_number:
          type:
            - string
            - 'null'
          description: The grading company's certificate number.
        card_condition:
          type:
            - string
            - 'null'
        market_value:
          type: number
          description: Our current market valuation in USD. `0` when we have no valuation.
        price:
          type:
            - number
            - 'null'
          description: The shop sale price in USD.
        market_value_last_updated:
          type:
            - string
            - 'null'
        front_image:
          type:
            - string
            - 'null'
        back_image:
          type:
            - string
            - 'null'
        render_image:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
          description: '`render_image`, or `front_image` when there is no render.'
        sport:
          type:
            - string
            - 'null'
        player_name:
          type:
            - string
            - 'null'
        team:
          type:
            - string
            - 'null'
        manufacturer:
          type:
            - string
            - 'null'
        parallel:
          type:
            - string
            - 'null'
        is_rookie:
          type:
            - boolean
            - 'null'
        is_autograph:
          type:
            - boolean
            - 'null'
        is_memorabilia:
          type:
            - boolean
            - 'null'
        serial_numbered:
          type:
            - string
            - 'null'
        brand:
          type:
            - string
            - 'null'
        reference_number:
          type:
            - string
            - 'null'
        video_url:
          type:
            - string
            - 'null'
        condition:
          type:
            - string
            - 'null'
        size:
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        attributes:
          type:
            - object
            - 'null'
          description: Luxury goods only. Key-value details that vary by item.
          additionalProperties: true
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: >-
            For people. The text can change, so branch on the status and the
            `code`.
        code:
          type: string
          description: Machine-readable, where you might branch on it.
    PackCategory:
      type: string
      description: A catalog that has packs and listings.
      enum:
        - pokemon
        - onepiece
        - sports
        - riftbound
        - watches
      default: pokemon
    CardCategory:
      type: string
      description: A card's catalog. `goods` is luxury goods and `singles` is raw singles.
      enum:
        - pokemon
        - onepiece
        - sports
        - riftbound
        - watches
        - goods
        - singles
  responses:
    Unauthorized:
      description: A missing, malformed, disabled or unknown API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Missing or malformed API key
    ServerError:
      description: An error on our side. Retry with backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: cb_live_<48 hex>
      description: >-
        Your API key, sent as a bearer token. Keep it on your server. See
        [Authentication](/partner-api/authentication). A request from a location
        we refuse gets a `403` with `Access denied`, whether or not it has a
        valid key: [where you can call
        from](/partner-api/errors-and-limits#where-you-can-call-from).

````

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