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

# Get Products

> **Host**: http://qshop.ng



## OpenAPI

````yaml get /shops/{shopId}/products
openapi: 3.1.0
info:
  title: OpenAPI Specification
  version: 1.0.0
  description: >-
    QShop storefront API.  This API is used to build a storefront for a QShop
    store
  contact:
    name: QShop
    url: https://qshop.ng
    email: hello@qshop.ng
servers:
  - url: http://staging.qshop.ng/apiv2
    description: Staging server
  - url: http://qshop.ng/api
    description: Production server
security: []
paths:
  /shops/{shopId}/products:
    get:
      tags:
        - Products
      summary: Get Products
      description: '**Host**: http://qshop.ng'
      parameters:
        - name: shopId
          in: path
          required: true
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: string
        - name: tags
          in: query
          required: false
          schema:
            type: string
        - name: stock%3E0
          in: query
          required: false
          schema:
            type: string
        - name: search
          in: query
          required: false
          schema:
            type: string
        - name: page
          in: query
          required: false
          schema:
            type: string
        - name: sort
          in: query
          required: false
          schema:
            type: string
        - name: onSale
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            reviews:
                              type: object
                              properties:
                                rates:
                                  type: object
                                  properties:
                                    '1':
                                      type: integer
                                    '2':
                                      type: integer
                                    '3':
                                      type: integer
                                    '4':
                                      type: integer
                                    '5':
                                      type: integer
                                  required:
                                    - '1'
                                    - '2'
                                    - '3'
                                    - '4'
                                    - '5'
                                count:
                                  type: integer
                                average:
                                  type: integer
                              required:
                                - rates
                                - count
                                - average
                            _id:
                              type: string
                            tags:
                              type: array
                              items:
                                anyOf:
                                  - type: string
                                  - type: object
                                    properties:
                                      _id:
                                        type: string
                                      name:
                                        type: string
                                      tempId:
                                        type: string
                                      shop:
                                        type: string
                                      __v:
                                        type: integer
                                      slug:
                                        type: string
                                      productCount:
                                        type: integer
                                      imageUrl:
                                        type: string
                                    required:
                                      - _id
                                      - name
                                      - shop
                                      - __v
                                      - slug
                                      - productCount
                                      - imageUrl
                            additional_media:
                              type: array
                              items:
                                type: object
                                properties:
                                  media_type:
                                    type: string
                                  media:
                                    type: string
                                  uuid:
                                    type: string
                                  _id:
                                    type: string
                                required:
                                  - media_type
                                  - media
                                  - _id
                            attributes:
                              type: array
                              items:
                                type: object
                                properties:
                                  name:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                      _id:
                                        type: string
                                    required:
                                      - name
                                      - _id
                                  options:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        name:
                                          type: string
                                        label:
                                          type: string
                                        id:
                                          type: string
                                      required:
                                        - name
                                        - label
                                        - id
                                required:
                                  - name
                                  - options
                            variants:
                              type: array
                              items:
                                type: object
                                properties:
                                  _id:
                                    type: string
                                  price:
                                    type: integer
                                  sale_price:
                                    type: integer
                                  costPrice:
                                    type:
                                      - 'null'
                                      - integer
                                  stock:
                                    type: integer
                                  alwaysInStock:
                                    type: boolean
                                  isActive:
                                    type: boolean
                                  sku:
                                    type: string
                                  weight:
                                    type: object
                                    properties:
                                      base:
                                        type: object
                                        properties:
                                          unit:
                                            type: string
                                          value:
                                            type: number
                                        required:
                                          - unit
                                          - value
                                      unit:
                                        type: string
                                      value:
                                        type: number
                                    required:
                                      - base
                                      - unit
                                      - value
                                  media:
                                    type: string
                                  media_type:
                                    type: string
                                  dimension:
                                    type: object
                                    properties:
                                      unit:
                                        type: string
                                      length:
                                        type: number
                                      width:
                                        type: number
                                      height:
                                        type: number
                                    required:
                                      - unit
                                      - length
                                      - width
                                      - height
                                  options:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        label:
                                          type: string
                                        name:
                                          type: string
                                        id:
                                          type: string
                                      required:
                                        - label
                                        - name
                                        - id
                                required:
                                  - _id
                                  - price
                                  - sale_price
                                  - costPrice
                                  - stock
                                  - alwaysInStock
                                  - isActive
                                  - sku
                                  - options
                            stock:
                              type: integer
                            digital:
                              type: boolean
                            media:
                              type: string
                            media_type:
                              type: string
                            name:
                              type: string
                            description:
                              type: string
                            price:
                              type: number
                            shop:
                              type: string
                            created:
                              type: string
                            sale_price:
                              type: integer
                            archived:
                              type: boolean
                            __v:
                              type: integer
                            draft:
                              type: boolean
                            numberOfPurchase:
                              type: integer
                            onSale:
                              type: boolean
                            slug:
                              type: string
                            alwaysInStock:
                              type: boolean
                            brand:
                              type: string
                            categories:
                              type: array
                            costPrice:
                              type:
                                - 'null'
                                - integer
                            dimension:
                              type: object
                              properties:
                                unit:
                                  type: string
                                length:
                                  type:
                                    - 'null'
                                    - number
                                width:
                                  type:
                                    - 'null'
                                    - number
                                height:
                                  type:
                                    - 'null'
                                    - number
                              required:
                                - unit
                                - length
                                - width
                                - height
                            isHero:
                              type: boolean
                            modified:
                              type: string
                            sku:
                              type: string
                            type:
                              type: string
                            typeAttributes:
                              type: object
                              properties:
                                packaging:
                                  type: object
                                  properties:
                                    weight:
                                      type:
                                        - number
                                        - string
                                    length:
                                      type:
                                        - number
                                        - string
                                    width:
                                      type:
                                        - number
                                        - string
                                    height:
                                      type:
                                        - number
                                        - string
                                  required:
                                    - weight
                              required:
                                - packaging
                            weight:
                              type: object
                              properties:
                                base:
                                  type: object
                                  properties:
                                    unit:
                                      type: string
                                    value:
                                      type: number
                                  required:
                                    - unit
                                    - value
                                unit:
                                  type: string
                                value:
                                  type: number
                              required:
                                - base
                                - unit
                                - value
                            variantsInheritPrice:
                              type: boolean
                            setAttributesForVariants:
                              type: boolean
                          required:
                            - reviews
                            - _id
                            - tags
                            - additional_media
                            - attributes
                            - variants
                            - stock
                            - digital
                            - media
                            - media_type
                            - name
                            - description
                            - price
                            - shop
                            - created
                            - sale_price
                            - archived
                            - __v
                            - draft
                            - numberOfPurchase
                            - onSale
                            - slug
                            - type
                      next:
                        type:
                          - 'null'
                          - integer
                      prev:
                        type: 'null'
                      noOfPages:
                        type: integer
                      currentPage:
                        type: integer
                      totalRecord:
                        type: integer
                    required:
                      - data
                      - next
                      - prev
                      - noOfPages
                      - currentPage
                      - totalRecord
                  success:
                    type: boolean
                required:
                  - msg
                  - data
                  - success
          description: ''

````