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 products
GET/api/mock/products?category=:categoryGet products by category
GET/api/mock/products/:idGet a specific product
POST/api/mock/productsCreate a new product
PUT/api/mock/products/:idUpdate a product
DELETE/api/mock/products/:idDelete a product

Product 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
Code Examples
fetch('/api/mock/products')
  .then(response => response.json())
  .then(data => console.log(data))
Webmaster Db