temp-api
← Back to Mock APIs

Mock Products API

10 fixed product records for catalogs, categories, search, detail pages, and order relations.

Data10 product records Base URLhttps://www.temp-api.com/en/mock Response{ code, message, data, meta }

Endpoints

GET/en/mock/products

Product list with page, limit, q, category, and status.

Open
GET/en/mock/products/1

Single product detail.

Open
GET/en/mock/products/categories

Product category list.

Open
POST/en/mock/products

Simulated create; stores nothing.

Related routes

GET/en/mock/products/1/orders

Orders containing this product

Open

Filters

page, limit, q, category, status

Fields

FieldTypeDescription
idnumberProduct ID
titlestringProduct name
categorystringCategory
pricenumberPrice
currencystringCurrency, e.g. USD
stocknumberStock
statusstringStatus, e.g. active / inactive
descriptionstringDescription

Notes

  • Writes are simulated and never stored; GET responses are cached for 60 seconds.

Example

curl "https://www.temp-api.com/en/mock/products?limit=3"
{
  "code": 200,
  "message": "ok",
  "data": [
    { "id": 1, "title": "Wireless Noise-Cancelling Headphones", "category": "Electronics", "price": 129.99, "currency": "USD" }
  ],
  "meta": { "page": 1, "limit": 3, "total": 10 }
}

Related resources