Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

migdalius's avatar

Api Call results Limit

I think is stupid question but still i need advice, when i have soap api login and request it's work fine, but there are resultsLimit 100 and i need take 2800 product not only 100.

Question how i can ask soap for more than 100 results? or all results like 2800.

<?php

$address = 'https://growtent.iai-shop.com/api/?gate=products/get/84/soap';
$wsdl = $address . '/wsdl';
$binding = array();
$binding['location'] = $address;
$binding['trace'] = true;
$client = new SoapClient($wsdl, $binding);

$login = "Login"; 
$password = "password";

$request = array();
$request['get'] = array();
$request['get']['authenticate'] = array();
$request['get']['authenticate']['userLogin'] = "Login";
$request['get']['authenticate']['authenticateKey'] = sha1(date('Ymd') . sha1('password'));

$request['get']['params'] = array();
$request['get']['params']['returnProducts'] = "active";
$request['get']['params']['resultsLimit'] = 100;


$response = $client->__call('get', $request);

0 likes
3 replies
ftiersch's avatar

I'm confused... there is literally the line

$request['get']['params']['resultsLimit'] = 100;

in your code... change the 100 to 2800... or am I missunderstanding the question?!

migdalius's avatar

I can make even ,

$request['get']['params']['resultsLimit'] = 5000;

but still api return 100 because, its limit 1-100.

Sinnbeck's avatar

That is most likely a restriction set by the owner of the API. Can you add an offset? If so you can query multiple times and get 100 at a time.

Please or to participate in this conversation.