> ## 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 Product by Slug

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



## OpenAPI

````yaml get /shops/{shopId}/products/{slug}
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/{slug}:
    get:
      tags:
        - Product
      summary: Get Product by Slug
      description: '**Host**: http://qshop.ng'
      parameters:
        - name: shopId
          in: path
          required: true
          schema:
            type: string
        - name: slug
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                  data:
                    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
                      categories:
                        type: array
                      costPrice:
                        type: 'null'
                      alwaysInStock:
                        type: boolean
                      isHero:
                        type: boolean
                      setAttributesForVariants:
                        type: boolean
                      variantsInheritPrice:
                        type: boolean
                      _id:
                        type: string
                      tags:
                        type: array
                        items:
                          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
                            - tempId
                            - shop
                            - __v
                            - slug
                            - productCount
                            - imageUrl
                      additional_media:
                        type: array
                      attributes:
                        type: array
                      variants:
                        type: array
                      stock:
                        type: integer
                      digital:
                        type: boolean
                      media:
                        type: string
                      media_type:
                        type: string
                      name:
                        type: string
                      price:
                        type: integer
                      description:
                        type: string
                      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
                      type:
                        type: string
                    required:
                      - reviews
                      - categories
                      - costPrice
                      - alwaysInStock
                      - isHero
                      - setAttributesForVariants
                      - variantsInheritPrice
                      - _id
                      - tags
                      - additional_media
                      - attributes
                      - variants
                      - stock
                      - digital
                      - media
                      - media_type
                      - name
                      - price
                      - description
                      - shop
                      - created
                      - sale_price
                      - archived
                      - __v
                      - draft
                      - numberOfPurchase
                      - onSale
                      - slug
                      - type
                  success:
                    type: boolean
                required:
                  - msg
                  - data
                  - success
          description: ''

````