Try with this url:
$apiUrl/products?page=1&limit=5&filter[status]=1&filter[visibility]=4
[Edit]
I tried with this url and it worked:
$apiUrl/products?page=1&limit=5&filter[0][attribute]=status&filter[0][eq]=1&filter[1][attribute]=visibility&filter[1][eq]=4
But before trying make sure that you are allowed to view and filter by status and visibility.
You can set the allowed attributes from System->Web Services->Rest Attributes and select the role you are using (admin, customer or guest).
Step to Add Product Using REST Api
Step-1: Admin Configuration
- Create user Role
Go to system >Web services >REST - Roles:
Click on Add Admin Role and create an Admin Role for REST.
Role info: Provide the role name example 'Admin'
Resource Access: Set :All
Role Users: Select and admin user to whom you wish to provide Admin REST role
- Go to system >Web services >REST Attributes:
Select Admin
Set: Resource Access as "All"
- Go to system >Web services >OAUTH Consumers:
Click on 'Add New' button, it will create a new Oauth consumer, note down the Consumer Key and Consumer secret.
Step-2 : script for create new product via REST API
create test_api.php file at your host
example: location: http://yourdomain/test_api.php
you have to post below fields in json encode format
$productData = json_encode(array(
'type_id' => 'simple',
'attribute_set_id' => 4,
'sku' => 'simple' . uniqid(),
'weight' => 1,
'status' => 1,
'visibility' => 4,
'name' => 'Simple Product',
'description' => 'Simple Description',
'short_description' => 'Simple Short Description',
'price' => 99.95,
'tax_class_id' => 0,
));
see code sample at URL: http://devdocs.magento.com/guides/m1x/api/rest/introduction.html#root
Best Answer
Everything you need to know about the Magento REST API can be found here in the official documentation: http://devdocs.magento.com/guides/m1x/api/rest/Resources/Products/products.html (that link is specific to your product related question)