Discussions
Unable to get response with more than 100 records
Hi,
We are unable to get the response from the API end when uploading more than 100 records. We are sending one by one data to the API end to get the response. We are using Person Search API calling (https://api.galaxysearchapi.com/PersonSearch). What is the limitation of sending data to the API end also is there anything to do on our end to send 2 to 3 thousand data? Please get back to us.
Kindly check the following PHP cURL request:
$postdata1 = array(
'FirstName' => $_POST['rowdata'.$i][$fname_key],
'MiddleName' => '',
'LastName' => $POST['rowdata'.$i][$lname_key],
'Addresses' => array(
array(
'AddressLine1' => $POST['rowdata'.$i][$address_key],
'AddressLine2' => $POST['rowdata'.$i][$city_key].", ".$POST['rowdata'.$i][$state_key]
),
),
);
$encode_data1 = json_encode($post_data1);
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.galaxysearchapi.com/PersonSearch',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => $encode_data1,
CURLOPT_HTTPHEADER => array(
'Accept: application/json',
'Content-Type: application/json',
'User-Agent: ReadMe-API-Explorer',
'galaxy-ap-name: '.$ap_name,
'galaxy-ap-password: '.$ap_password,
'galaxy-search-type: Person'
)
),
);
$result = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);