---
title: "Get a random product"
method: GET
path: "/public/randomproducts/product/random"
tags: ["📢 Public APIs"]
---

# Get a random product

`GET /public/randomproducts/product/random`

## Request

- Base URL: `https://api.freeapi.app/api/v1`
- URL: `https://api.freeapi.app/api/v1/public/randomproducts/product/random`
- Auth: none declared
- TypeScript: <https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/docs/public/randomproducts/product/random/get.ts> (a function with typed inputs; its response is checked against the schema)

The API endpoint allows you to retrieve a randomly generated dummy product.

When accessing this endpoint, you will receive a response containing the details of a randomly generated product.

## Response `200`

Get a random product

- object
  - `data` object
    - `brand` string
    - `category` string
    - `description` string
    - `discountPercentage` number
    - `id` number
    - `images` string[]
    - `price` number
    - `rating` number
    - `stock` number
    - `thumbnail` string
    - `title` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi.md) - [All operations](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/revisions/a9f3a290e4dc?raw)
