List products with filtering, sorting, search and pagination
GET
https://api.testingapis.com/api/ProductsCommon filters: category, inStock. Any other property name also works as an exact, case-insensitive filter. Paging and sorting: limit (1-100), page (1-based, needs limit), offset, sort (property name), order (asc or desc) and q (search across title, name, body, description and text fields). Totals are returned in the X-Total-Count, X-Page, X-Per-Page and X-Total-Pages headers.
Responses
- 200
- The matching products.
- 500
- Unexpected server error.
Example
Request
curl -X GET "https://api.testingapis.com/api/Products?limit=2"Response200 OK
X-Total-Count: 23
X-Page: 1
X-Per-Page: 2
X-Total-Pages: 12
[
{
"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)