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

# Get Amazon Best Sellers

> Get ranked Amazon best sellers for a category.

Pass exactly one of `categoryId` or `url`.


## OpenAPI

````yaml GET /api/amazon/bestsellers
openapi: 3.1.0
info:
  title: Glade Amazon API
  version: 1.0.0
  description: >-
    Normalized Amazon product, search, seller, category, offer, review, deal,
    and estimate data.
servers:
  - url: https://gladeapi.com
security: []
paths:
  /api/amazon/bestsellers:
    get:
      summary: Amazon Best Sellers
      description: Get best sellers using exactly one of categoryId or url.
      operationId: get_AmazonBestSellers
      parameters:
        - name: domain
          in: query
          required: false
          description: Amazon marketplace code.
          schema:
            type: string
            enum:
              - US
              - UK
              - CA
              - DE
              - FR
              - IT
              - ES
              - AU
              - IN
              - MX
              - BR
              - JP
              - PL
            default: US
        - name: categoryId
          in: query
          schema:
            type: string
        - name: url
          in: query
          schema:
            type: string
        - name: page
          in: query
          description: Results page, from 1 through 100.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 1
        - name: limit
          in: query
          description: Maximum results requested, from 1 through 100.
          schema:
            type: integer
            minimum: 1
            maximum: 100
      responses:
        '200':
          description: Successful Amazon data response
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - amazonBestSellers
                    properties:
                      amazonBestSellers:
                        $schema: http://json-schema.org/draft-07/schema#
                        type: object
                        properties:
                          productResults:
                            type: object
                            properties:
                              results:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    title:
                                      type: string
                                    url:
                                      type: string
                                    asin:
                                      type: string
                                      pattern: ^[A-Z0-9]{10}$
                                    price:
                                      type: object
                                      properties:
                                        symbol:
                                          type: string
                                        value:
                                          type: number
                                        currency:
                                          type: string
                                          minLength: 3
                                          maxLength: 3
                                        display:
                                          type: string
                                      additionalProperties: false
                                    mainImageUrl:
                                      type: string
                                    rating:
                                      type: number
                                    ratingsTotal:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                    isPrime:
                                      type: boolean
                                    bestSellersRank:
                                      type: integer
                                      exclusiveMinimum: 0
                                      maximum: 9007199254740991
                                  additionalProperties: false
                              pageInfo:
                                type: object
                                properties:
                                  currentPage:
                                    type: integer
                                    exclusiveMinimum: 0
                                    maximum: 9007199254740991
                                  totalPages:
                                    type: integer
                                    minimum: 0
                                    maximum: 9007199254740991
                                  totalResults:
                                    type: integer
                                    minimum: 0
                                    maximum: 9007199254740991
                                  hasNextPage:
                                    type: boolean
                                  hasPrevPage:
                                    type: boolean
                                additionalProperties: false
                            additionalProperties: false
                          categoryInfo:
                            type: object
                            properties:
                              currentCategory:
                                type: object
                                properties:
                                  id:
                                    type: string
                                  name:
                                    type: string
                                  url:
                                    type: string
                                  breadcrumbPath:
                                    type: string
                                additionalProperties: false
                              parentCategory:
                                anyOf:
                                  - type: object
                                    properties:
                                      id:
                                        type: string
                                      name:
                                        type: string
                                      url:
                                        type: string
                                      breadcrumbPath:
                                        type: string
                                    additionalProperties: false
                                  - type: 'null'
                              childCategories:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                    name:
                                      type: string
                                    url:
                                      type: string
                                    breadcrumbPath:
                                      type: string
                                  additionalProperties: false
                            additionalProperties: false
                        additionalProperties: false
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '402':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
        '500':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
        '504':
          $ref: '#/components/responses/Error'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  responses:
    Error:
      description: Standard error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - success
        - errors
      properties:
        success:
          const: false
        errors:
          type: array
          items:
            type: object
            required:
              - code
              - message
            properties:
              code:
                type: integer
              message:
                type: string
              path:
                type: array
                items:
                  type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: API-KEY
    BearerAuth:
      type: http
      scheme: bearer

````