Search products
GET {{baseUrl}}/products/search/:search
Service urls:
http://yourdomain.com/api/rest_admin/products/search/{search}
OR
http://yourdomain.com/index.php?route=rest/product_admin/products&search={search}
Search products with Matjrah rest api
You can combine filter parameters, you only need to use the long version of API urls.
You can combine these parameters:
- - limit
- - page
- - start
- - sort (sorty by name, model, quantity, rating, sort order, dateadded)
- - order (order by desc or asc)
- - search (search keyword, search in product name, model, sku, upc, ean, jan, isbn, mpn)
- - filterdescription (set this parameter 1, then the API will search in description too)
- - filters
- - manufacturer (manufacturer ID)
- - category (category ID)
- - subcategory (subcategory ID)
- - tag
- - filterdatemodifiedfrom
- - filterdatemodifiedto
- - filterdateaddedfrom
- - filterdateaddedto
Example urls:
http://yourdomain.com/index.php?route=rest/product_admin/products&filter_date_modified_from=2016-04-21
http://yourdomain.com/index.php?route=rest/product_admin/products&filter_date_modified_from=2016-04-21 10:00:00
http://yourdomain.com/index.php?route=rest/product_admin/products&filter_date_modified_from=2016-04-21&filter_date_modified_to=2016-04-22
http://yourdomain.com/index.php?route=rest/product_admin/products&filter_date_modified_from=2016-04-21&limit=10&page=1
http://yourdomain.com/index.php?route=rest/product_admin/products&filter_date_added_from=2016-04-21
http://yourdomain.com/index.php?route=rest/product_admin/products&manufacturer=8
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"success":"\u003cinteger\u003e","error":["\u003cstring\u003e","\u003cstring\u003e"],"data":"\u003cobject\u003e"}