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

# /bookoff/products/search

> Search the BookOff Online (ブックオフ) catalogue of second-hand and new books, manga, magazines, CDs, DVDs, Blu-rays and video games by keyword, barcode, author, publisher or related-word tag, narrowed by genre, second-hand price, release month, stock and branch collection, in seven orderings. Returns listing cards with the product code, title, author, cover, price with the saving against the retail price, the previous price where the shop published one, reward points, release date, genre labels, badges and stock.

**Price:** 1 credit

**⚠️ Common errors:** 422: Malformed category_id (a BookOff genre id is digits in pairs, e.g. '12' or '122503')



## OpenAPI

````yaml /openapi/e-commerce-marketplaces.json post /api/bookoff/products/search
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/bookoff/products/search:
    post:
      tags:
        - /bookoff
      summary: /bookoff/products/search
      description: >-
        Search the BookOff Online (ブックオフ) catalogue of second-hand and new
        books, manga, magazines, CDs, DVDs, Blu-rays and video games by keyword,
        barcode, author, publisher or related-word tag, narrowed by genre,
        second-hand price, release month, stock and branch collection, in seven
        orderings. Returns listing cards with the product code, title, author,
        cover, price with the saving against the retail price, the previous
        price where the shop published one, reward points, release date, genre
        labels, badges and stock.


        **Price:** 1 credit


        **⚠️ Common errors:** 422: Malformed category_id (a BookOff genre id is
        digits in pairs, e.g. '12' or '122503')
      operationId: __api_bookoff_products_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BookoffProductsSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BookoffProductCard'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BookoffProductsSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        keyword:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
        exclude_keyword:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
        category_id:
          anyOf:
            - type: string
            - type: 'null'
        count:
          type: integer
          maximum: 119880
          minimum: 1
        author:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
        publisher:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
        tag:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
        price_min:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
        price_max:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
        release_from:
          anyOf:
            - type: string
              pattern: ^\d{6}$
            - type: 'null'
        release_to:
          anyOf:
            - type: string
              pattern: ^\d{6}$
            - type: 'null'
        stock:
          $ref: '#/components/schemas/BookoffStock'
          default: any
        store_pickup_only:
          type: boolean
          default: false
        sort:
          $ref: '#/components/schemas/BookoffSort'
          default: popularity
      type: object
      required:
        - count
    BookoffProductCard:
      properties:
        '@type':
          type: string
          default: BookoffProductCard
        id:
          type: string
        url:
          type: string
        condition:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        author:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          type: string
          default: JPY
        discount_amount:
          anyOf:
            - type: number
            - type: 'null'
        discount_percent:
          anyOf:
            - type: integer
            - type: 'null'
        previous_price:
          anyOf:
            - type: number
            - type: 'null'
        previous_price_note:
          anyOf:
            - type: string
            - type: 'null'
        reward_points:
          anyOf:
            - type: integer
            - type: 'null'
        release_date:
          anyOf:
            - type: string
            - type: 'null'
        category:
          anyOf:
            - type: string
            - type: 'null'
        subcategory:
          anyOf:
            - type: string
            - type: 'null'
        tags:
          items:
            type: string
          type: array
          default: []
        is_in_stock:
          type: boolean
          default: false
        is_store_pickup_available:
          type: boolean
          default: false
      type: object
      required:
        - id
        - url
        - condition
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    BookoffStock:
      type: string
      enum:
        - any
        - in_stock
        - used_only
        - used_in_stock
    BookoffSort:
      type: string
      enum:
        - popularity
        - release_desc
        - release_asc
        - new_price_asc
        - new_price_desc
        - used_price_asc
        - used_price_desc
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````