Products API
E-commerce products with categories, prices, ratings and stock. Hardcoded in-memory data: writes last until the app restarts.
Free: these endpoints need no account or key.
- GET
https://api.testingapis.com/api/ProductsList products with filtering, sorting, search and pagination. - POST
https://api.testingapis.com/api/ProductsCreate a product. - GET
https://api.testingapis.com/api/Products/{id}Get a product by ID. - PUT
https://api.testingapis.com/api/Products/{id}Update a product. - DELETE
https://api.testingapis.com/api/Products/{id}Delete a product. - GET
https://api.testingapis.com/api/Products/categoriesList product categories without duplicates. - GET
https://api.testingapis.com/api/Products/category/{name}List the products in a category.
Example request
List products with filtering, sorting, search and pagination. Full reference and a Send button.
cURL
curl -X GET "https://api.testingapis.com/api/Products?limit=2"Response · 200 OK
[
{
"id": 1,
"title": "Wireless Noise-Cancelling Headphones",
"price": 249.99,
"description": "Over-ear headphones with 30hr battery life and active noise cancellation.",
"category": "electronics",
"image": "https://picsum.photos/seed/prod1/400/400",
"rating": {"rate": 4.3, "count": 127},
"inStock": true,
"createdAt": "2025-06-12T10:30:00Z"
},
… (3 more lines)Filtering, sorting and pagination
The list endpoint accepts limit, page, offset, sort, order and q, and any field name as an exact filter. Totals come back in the X-Total-Count header. Writes are kept in memory until the server restarts, so tests can create, change and delete records freely. Query parameter reference.