1

https://www.example.com/index.php/rest/V1/categories/[category_id]/products it is only returning me a list of SKU. I need all products with details by categry_id

0

Try to make a request to this URL and it should work:

http://example.com/index.php/rest/V1/products?searchCriteria[filterGroups][0][filters][0][field]=category_id&searchCriteria[filterGroups][0][filters][0][value]=<category_id_here>&searchCriteria[filterGroups][0][filters][0][conditionType]=eq&searchCriteria[sortOrders][0][field]=created_at&searchCriteria[sortOrders][0][direction]=DESC&searchCriteria[pageSize]=10&searchCriteria[currentPage]=1

  • Thank you for your answer but its not the answer exactly i want. i need { "id": 52, "sku": "CN-101", "name": " JBnB Pro Series Crown Soccer Ball Size 5", "attribute_set_id": 11, "price": 990, "status": 1, "visibility": 4, ] – Shozib Rasool Nov 14 '17 at 9:38
  • your query is { "items": [], "search_criteria": { "filter_groups": [ { "filters": [ { "field": "category_id", "value": "<40>", "condition_type": "eq" } ] } ], "sort_orders": [ { "field": "created_at", "direction": "DESC" } ], "page_size": 10, "current_page": 2 }, "total_count": 0 } – Shozib Rasool Nov 14 '17 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.