📢 Public APIs
Get a random product
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.
get/public/randomproducts/product/random
Response
Get a random product
Example response
{
"data": {
"brand": "lightingbrilliance",
"category": "lighting",
"description": "Wholesale slim hanging decorative kid room lighting ceiling kitchen chandeliers pendant light modern",
"discountPercentage": 14.89,
"id": 96,
"images": [
"https://i.dummyjson.com/data/products/96/1.jpg",
"https://i.dummyjson.com/data/products/96/2.jpg",
"https://i.dummyjson.com/data/products/96/3.jpg",
"https://i.dummyjson.com/data/products/96/4.jpg",
"https://i.dummyjson.com/data/products/96/thumbnail.jpg"
],
"price": 30,
"rating": 4.83,
"stock": 96,
"thumbnail": "https://i.dummyjson.com/data/products/96/thumbnail.jpg",
"title": "lighting ceiling kitchen"
},
"message": "Random product fetched successfully",
"statusCode": 200,
"success": true
}