> ## 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.

# /sofmap/products/search

> Search Sofmap (ソフマップ) products by keyword and/or category, narrowed by new versus second-hand stock, second-hand condition grade, maker, colour, price range, availability and the category-specific specification facets, with eight orderings. Returns product cards with product number, name, brand, image, JAN code, tax-included price, Sofmap point reward, release date, stock line, star rating and review count, second-hand condition and the shop that holds it.

**Price:** 1 credit

**⚠️ Common errors:** 412: The requested category does not exist on sofmap.com, 422: Neither keyword nor category_id was given, or a malformed category_id



## OpenAPI

````yaml /openapi/e-commerce-marketplaces.json post /api/sofmap/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/sofmap/products/search:
    post:
      tags:
        - /sofmap
      summary: /sofmap/products/search
      description: >-
        Search Sofmap (ソフマップ) products by keyword and/or category, narrowed by
        new versus second-hand stock, second-hand condition grade, maker,
        colour, price range, availability and the category-specific
        specification facets, with eight orderings. Returns product cards with
        product number, name, brand, image, JAN code, tax-included price, Sofmap
        point reward, release date, stock line, star rating and review count,
        second-hand condition and the shop that holds it.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: The requested category does not exist on
        sofmap.com, 422: Neither keyword nor category_id was given, or a
        malformed category_id
      operationId: __api_sofmap_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/SofmapProductsSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SofmapProductCard'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SofmapProductsSearchPayload:
      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
          minimum: 1
        product_type:
          $ref: '#/components/schemas/SofmapProductType'
          default: all
        used_rank:
          anyOf:
            - items:
                $ref: '#/components/schemas/SofmapUsedRank'
              type: array
            - type: 'null'
        maker:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
        color:
          anyOf:
            - items:
                $ref: '#/components/schemas/SofmapColor'
              type: array
            - type: 'null'
        price_min:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
        price_max:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
        stock:
          anyOf:
            - $ref: '#/components/schemas/SofmapStock'
            - type: 'null'
        specs:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
        sort:
          $ref: '#/components/schemas/SofmapSort'
          default: recommended
      type: object
      required:
        - count
    SofmapProductCard:
      properties:
        '@type':
          type: string
          default: SofmapProductCard
        id:
          anyOf:
            - type: string
            - type: 'null'
        url:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        brand:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        jan:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          type: string
          default: JPY
        is_price_from:
          type: boolean
          default: false
        point:
          anyOf:
            - type: integer
            - type: 'null'
        release_date:
          anyOf:
            - type: string
            - type: 'null'
        release_date_text:
          anyOf:
            - type: string
            - type: 'null'
        stock_status:
          anyOf:
            - type: string
            - type: 'null'
        stock_message:
          anyOf:
            - type: string
            - type: 'null'
        is_sold_out:
          type: boolean
          default: false
        is_used:
          type: boolean
          default: false
        used_rank:
          anyOf:
            - $ref: '#/components/schemas/SofmapUsedRank'
            - type: 'null'
        used_count:
          anyOf:
            - type: integer
            - type: 'null'
        store:
          anyOf:
            - $ref: '#/components/schemas/SofmapCardStore'
            - type: 'null'
        badges:
          items:
            type: string
          type: array
          default: []
        rating:
          anyOf:
            - type: number
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        review_url:
          anyOf:
            - type: string
            - type: 'null'
        rank:
          anyOf:
            - type: integer
            - type: 'null'
        rank_change:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    SofmapProductType:
      type: string
      enum:
        - all
        - new
        - used
    SofmapUsedRank:
      type: string
      enum:
        - S
        - A
        - B
        - C
        - D
        - E
    SofmapColor:
      type: string
      enum:
        - black
        - white
        - gray
        - silver
        - blue
        - green
        - beige
        - yellow
        - gold
        - orange
        - brown
        - red
        - pink
        - purple
        - clear
        - other
    SofmapStock:
      type: string
      enum:
        - orderable
        - in_stock
        - new_product
        - new_arrival
    SofmapSort:
      type: string
      enum:
        - recommended
        - sales
        - price_asc
        - price_desc
        - name
        - maker
        - release_date_desc
        - release_date_asc
    SofmapCardStore:
      properties:
        '@type':
          type: string
          default: SofmapCardStore
        id:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    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

````