Try this
$client = new SoapClient('http://magentohost/api/v2_soap/?wsdl');
$session = $client->login('apiUser', 'apiKey');
$complexFilter = array(
'complex_filter' => array(
array(
'key' => 'type',
'value' => array('key' => 'in', 'value' => 'simple,configurable')
),
array(
'key' => 'created_at',
'value' => array('key' => 'from', 'value' => '2015-01-01 00:00:00')
),
array(
'key' => 'created_at',
'value' => array('key' => 'to', 'value' => '2016-12-31 23:59:59')
)
)
);
$result = $client->catalogProductList($session, $complexFilter);
var_dump ($result);
There are quite a few filter operators available which directly
correspond to SQL operators, since that's what they are translated to
internally.
from => After the given timestamp
to => Before the given timestamp
like => Like the given text (SQL syntax, using % for wildcards)
nlike => Not like the given text (SQL syntax)
- eq => Equal to the given value
- neq => Not equal to the given value
- in => In the given array
- nin => Not in the given array
- null => Is null
- notnull => Is not null
- gt => Greater than
- lt => Less than
- gteq => Greater than or equal to
- lteq => Less than or equal to
You can check Web services API filter operators here