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

# /joshin/products/ranking

> Get the popularity ranking of one Joshin (上新電機) category: the best selling products in rank order, each with JAN code, URL, name, manufacturer, model code, image, tax-included price, Joshin point reward, stock and shipping state, release date and short description.

**Price:** 1 credit

**⚠️ Common errors:** 412: This category has no ranking page, or the genre and category id do not name a Joshin category



## OpenAPI

````yaml /openapi/e-commerce-marketplaces.json post /api/joshin/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/joshin/products/ranking:
    post:
      tags:
        - /joshin
      summary: /joshin/products/ranking
      description: >-
        Get the popularity ranking of one Joshin (上新電機) category: the best
        selling products in rank order, each with JAN code, URL, name,
        manufacturer, model code, image, tax-included price, Joshin point
        reward, stock and shipping state, release date and short description.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: This category has no ranking page, or the
        genre and category id do not name a Joshin category
      operationId: __api_joshin_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/JoshinProductsRankingPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/JoshinRankingItem'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    JoshinProductsRankingPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        genre:
          $ref: '#/components/schemas/JoshinGenre'
        category:
          type: string
          minLength: 1
        count:
          type: integer
          minimum: 1
      type: object
      required:
        - genre
        - category
        - count
    JoshinRankingItem:
      properties:
        '@type':
          type: string
          default: JoshinRankingItem
        id:
          type: string
        url:
          type: string
        genre:
          type: string
        category_id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        maker:
          anyOf:
            - type: string
            - type: 'null'
        model_code:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          type: string
          default: JPY
        point:
          anyOf:
            - type: integer
            - type: 'null'
        point_rate:
          anyOf:
            - type: number
            - type: 'null'
        stock_message:
          anyOf:
            - type: string
            - type: 'null'
        is_in_stock:
          anyOf:
            - type: boolean
            - type: 'null'
        delivery_message:
          anyOf:
            - type: string
            - type: 'null'
        release_date:
          anyOf:
            - type: string
            - type: 'null'
        review_group:
          anyOf:
            - type: string
            - type: 'null'
        is_sponsored:
          type: boolean
          default: false
        rank:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - id
        - url
        - genre
        - category_id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    JoshinGenre:
      type: string
      enum:
        - kaden
        - season
        - house
        - kitchen
        - health
        - interior
        - av
        - sound
        - audio
        - pc
        - peripheral
        - supply
        - mobile
        - camera
        - car
        - diy
        - outdoor
        - apparel
        - watch
        - game
        - toy
        - hobby
        - train
        - cg
        - liquor
        - drug
    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

````