Skip to content
Webmaster DB

Mock Products API

Free REST API for testing e-commerce and product catalog features with CRUD operations

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))

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.
  • 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

Taggedapitestingmockrestecommerceproducts