Logo
maya API Documentation

Search products

GET {{baseUrl}}/products/search/:search

Service urls:
http://yourdomain.com/api/rest/products/search/{search}
OR
http://yourdomain.com/index.php?route=feed/rest_api/products&search={search}

Search products with opencart 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

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Accept
string




RESPONSES

status OK

{ "success": 1, "error": [ "Error description", "Error description" ], "data": {} }



Curl
curl -X GET 'https://api.opencart-api.com/api/rest/products/search/:search' -H 'Accept: application/json'

ENDPOINTS