| Name | Type | Required | Description |
|---|---|---|---|
limit | number | Optional | Number of products to return (default: 20, max: 100) |
category | string | Optional | Filter by product category |
minPrice | number | Optional | Minimum price filter |
maxPrice | number | Optional | Maximum price filter |
idstring (UUID)Unique product identifier
namestringProduct name
descriptionstringProduct description
pricenumberProduct price in cents
imagestring (URL)Product image URL
inStockbooleanWhether the product is in stock
{
"data": [
{
"id": "prod_abc123",
"name": "Wireless Headphones",
"description": "Premium noise-canceling headphones",
"price": 14999,
"image": "https://images.example.com/headphones.jpg",
"category": "Electronics",
"inStock": true,
"rating": 4.5
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 150
}
}Copy and paste these examples to get started quickly
const response = await fetch(
'https://mngoapi.laclass.dev/api/your-project/products?category=electronics'
);
const products = await response.json();
console.log(products.data);