Mock Products API
Free REST API for testing e-commerce and product catalog features with CRUD operations
Mock Products API Documentation
A free REST API for testing and prototyping e-commerce and product catalog features. Perfect for testing e-commerce and online shop applications, prototyping product catalogs and inventory systems, building shopping cart and checkout demos, learning price calculations and stock management, and testing product search and filtering features. No authentication required.
Available Endpoints
GET
/api/mock/productsGet all productsGET
/api/mock/products?category=:categoryGet products by categoryGET
/api/mock/products/:idGet a specific productPOST
/api/mock/productsCreate a new productPUT
/api/mock/products/:idUpdate a productDELETE
/api/mock/products/:idDelete a productProduct Schema
{
"id": 1,
"name": "Wireless Mouse",
"description": "Ergonomic wireless mouse with precision tracking",
"price": 29.99,
"category": "Electronics",
"inStock": true,
"imageUrl": "https://images.unsplash.com/photo-1527814050087...",
"createdAt": "2024-01-15T00:00:00.000Z"
}Interactive API Tester
Note: This is a stateless mock API. POST, PUT, and DELETE requests will return success responses, but no data is actually modified. All requests return the same consistent dataset for testing purposes.
Code Examples
fetch('/api/mock/products')
.then(response => response.json())
.then(data => console.log(data))