Mock Products API
Free REST API for testing e-commerce and product catalog features with CRUD operations
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
/api/mock/productsGet all products/api/mock/products?category=:categoryGet products by category/api/mock/products/:idGet a specific product/api/mock/productsCreate a new product/api/mock/products/:idUpdate a product/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"
}fetch('/api/mock/products')
.then(response => response.json())
.then(data => console.log(data))About this tool
Use it to
- Test e-commerce and online shop applications
- Prototype product catalogs and inventory systems
- Build shopping cart and checkout demos
- Learn price calculations and stock management
- Display Product Catalog
- Fetch all products with GET /api/mock/products to display in a shop interface with prices and images.
- Add New Product
- Test product creation by POSTing with name, description, price, category, inStock, and imageUrl fields.
Related tools
- Mock Users API
Free REST API for testing user management features with full CRUD operations
- Mock Posts API
Free REST API for testing blog and content management features with CRUD operations
- Mock Todos API
Free REST API for testing task management and todo list features with CRUD operations
- Mock Comments API
Free REST API for testing comment systems and discussion features with CRUD operations