Error on extract case from the API

Hi,
I have an abonnement in commcarehq and I extract data from the case with the API.
When I export the case to excel i got 17 rows but when i use the API i just have 6 rows. Do you know where is the problem ?
My code is :slight_smile:

//url pour la liste des cases

** $url = 'https://www.commcarehq.org/a/test-20190461/api/v0.5/case/?format=json/';**
** $username = 'ibrahima.diop@ansd.sn';**
** $username = 'my_account';**
** $password = 'my_password';**


** //Initiate cURL.**
** $ch = curl_init($url);**

** curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);**
** curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);**


** //Specify the username and password using the CURLOPT_USERPWD option.**
** curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password); **
** //curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password); **


** //Tell cURL to return the output as a string instead**
** //of dumping it to the browser.**
** curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);**


** //Execute the cURL request.**
** $response = curl_exec($ch);**


** //Check for errors.**
** if(curl_errno($ch)){**
** //If an error occured, throw an Exception.**
** throw new Exception(curl_error($ch));**
** }**


** //Print out the response.**
** //var_dump($response);**
** //echo($response);**
** echo "
LISTE DES CAS
";**
** $manage = json_decode($response, true);**
** //var_dump($manage);**
** $datas = $manage['objects'];**