> ## 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/ranking

> Get the Sofmap (ソフマップ) best-seller ranking of one category, aggregated over the last week or the last month, across the whole Bic Camera group or Sofmap alone. Each entry carries its position, whether it moved up or down since the previous ranking, and the product card with product number, name, brand, image, price, point reward and stock line.

**Price:** 1 credit

**⚠️ Common errors:** 412: The requested category does not exist on sofmap.com



## OpenAPI

````yaml /openapi/e-commerce-marketplaces.json post /api/sofmap/products/ranking
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/ranking:
    post:
      tags:
        - /sofmap
      summary: /sofmap/products/ranking
      description: >-
        Get the Sofmap (ソフマップ) best-seller ranking of one category, aggregated
        over the last week or the last month, across the whole Bic Camera group
        or Sofmap alone. Each entry carries its position, whether it moved up or
        down since the previous ranking, and the product card with product
        number, name, brand, image, price, point reward and stock line.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: The requested category does not exist on
        sofmap.com
      operationId: __api_sofmap_products_ranking_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SofmapProductsRankingPayload'
      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:
    SofmapProductsRankingPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        category_id:
          type: string
        count:
          type: integer
          maximum: 50
          minimum: 1
        period:
          $ref: '#/components/schemas/SofmapRankingPeriod'
          default: weekly
        scope:
          $ref: '#/components/schemas/SofmapRankingScope'
          default: group
        product_type:
          $ref: '#/components/schemas/SofmapProductType'
          default: all
        stock:
          anyOf:
            - $ref: '#/components/schemas/SofmapStock'
            - type: 'null'
      type: object
      required:
        - category_id
        - 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
    SofmapRankingPeriod:
      type: string
      enum:
        - weekly
        - monthly
    SofmapRankingScope:
      type: string
      enum:
        - group
        - sofmap
    SofmapProductType:
      type: string
      enum:
        - all
        - new
        - used
    SofmapStock:
      type: string
      enum:
        - orderable
        - in_stock
        - new_product
        - new_arrival
    SofmapUsedRank:
      type: string
      enum:
        - S
        - A
        - B
        - C
        - D
        - E
    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

````