Lead411 APIs
API to access lead411
By Calling this API, we will validate username and password and if it passes the db authentication then API will return the access token which needs to be passed to all further subsequent API calls.
When the token expires then call 'Login and Get token' API to get a new token
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/[email protected]&password=123456",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Send auth token along with all required params mentioned below to create a customer's sub account
Send access token to get all the details related to authenticated user.
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/getCustomerDetails?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Add employee_id(s) or email(s) in suppression list in customer or sub-account: We can send any or both of the below mentioned parameter in request:
1) "employee_id_json" holds the collection of existing employee_id which needs to be added in suppression list. Example: ["12345" , "67890"]
2) "email_json" holds the collection of email which needs to be added in suppression list. Example: ["[email protected]" , "[email protected]"]
API accepts 50,000 employee_ids/emails in json per request which mean if there are more than 50,000 records then api will consider only first 50,000 employee_ids/emails and insert in suppression list per api call and rest will be discarded in that request.
if you want to send more than 50,000 employee_ids/emails then send more employee_id/email in next batch/api call because, as of now, there is no limitation in holding employee_ids/emails in suppression database per customer.
1) if "sub_account_email" params available in request then
employee_ids/emails present in "employee_id_json"/email_json" param will
be added to sub-account suppression list.
2) if "sub_account_email" is not available in request then
employee_ids/emails will be added to master's account suppression list
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/suppression/insertSuppressionEmail?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTY3NzAzODcsImV4cCI6MTUxNzAyOTU4NywibmJmIjoxNTE2NzcwMzg3LCJqdGkiOiJKR2xGcWc0Z1hMVzNnUnFsIn0.5qVkYundXwp8X_cBdbwBh-_Z1S2pcShv11iLXJXt5ok&email_json=%5B%[email protected]%22%5D&employee_id_json=%5B%22376%22%5D&[email protected]",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Get Suppression list of customer or sub-account:
1) if "sub_account_email" params available in request then sub-account suppression list will be returned returned in response.
2) if "sub_account_email" is not available in request then master's account suppression list will be returned in response.
Filter : We can send any or both of the below mentioned parameter in request to filter the suppression result :
1) "employee_id_json" holds the collection of employee_ids which needs to be return in suppression list response. Example: ["12345" , "67890"]
2) "email_json" holds the collection of email which needs to return in suppression list result. Example: ["[email protected]" , "[email protected]"]
optional filter
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/suppression/getSuppressionEmails?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTY3NzAzODcsImV4cCI6MTUxNzAyOTU4NywibmJmIjoxNTE2NzcwMzg3LCJqdGkiOiJKR2xGcWc0Z1hMVzNnUnFsIn0.5qVkYundXwp8X_cBdbwBh-_Z1S2pcShv11iLXJXt5ok&email_json=%5B%[email protected]%22%5D&employee_id_json=%5B%22376%22%5D&[email protected]",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Delete records from suppression list in customer or sub-account:
We can send any or both of the below mentioned parameter in request:
1) "employee_id_json" holds the collection of existing employee_id which needs to be added in suppression list. Example: ["12345" , "67890"]
2) "email_json" holds the collection of email which needs to be added in suppression list. Example: ["[email protected]" , "[email protected]"]
1) if "sub_account_email" params available in request then emails
present in "email_json" param will be deleted to sub-account suppression
list.
2) if "sub_account_email" is not available in request then emails will be deleted to master's account suppression list
optional
[{"key":"sub_account_email","value":"[email protected]","equals":true,"description":"optional parameter which hold the email of sub account","enabled":true}]
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/suppression/deleteSuppressionEmail?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTYxNjczNjIsImV4cCI6MTUxNjQyNjU2MiwibmJmIjoxNTE2MTY3MzYyLCJqdGkiOiJmNzZrRmdIeUVrdUlFMkpwIn0.abDiL6i_m4qUVToopSZdDmIDXZLhkl6NrSwbMpQJcu4&email_json=%5B%[email protected]%22%5D&employee_id_json=%5B%22376%22%5D&[email protected]",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Send access token to get unlock Quota details left.
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/get_customer_quota?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Send UX Element data to search the Lead11 database for company or employee records
Company Unique Identifier
This parameter is built to search for companies by url
Titles of the contacts you are seeking
City Postal Codes.
Mile Range around that Zip Code.
Area Codes of the company headquarters
4 digit SIC codes.
Searching keywords or phrases inside the description of the company
Unique ID for a news/press event. e.g. Funding, New Hire, etc. See the full list here.
Start date of the presss/news event.
End date of the presss/news event.
Keyword of Title of Job Opening
Job Posting Date will be after this date
Keyword search for tech stack data of the company
optional, if available in request then will be used otherwise all level will be returned. where: c_level="Executive Level" , vp_level="VP Level", director_level="Director Level",manager_level="Manager Level"
When selected it shows only contacts that has an email
Suppressed_yes hides contacts/companies from your Suppression list - Use the Insert Suppression Emails call to insert them
exported_yes removes contacts that you have already exported
linkedin_yes limits results to only contacts that we have linkedin_url with
has_direct_dial_yes limits contacts to just those that have direct phone numbers
yearlyRevDesc sorts by
Used for pagination for multiple rows
optional, if available in request then sub_account suppression will be used
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/searchUsingJSON?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTI0ODE4MDEsImV4cCI6MTUxMjc0MTAwMSwibmJmIjoxNTEyNDgxODAxLCJqdGkiOiIxSFZkbVJnY3hPbjU2MFQ1In0.LeDh7G38FsYXhIr2FS4I64rlfS-6d1u4GB7UOSZNk_k&company_ids=1743&user_search_string=cisco.com&&title_keyword=ceo,cfo,marketing&country_code=US&State_array=&cityPostal=&range=5&Area_Codes=&Industry_Codes=&SIC_Codes=&company_description_string&news_date_from=2017-11-13&news_date_to=2017-11-13&news_category_source=¤tly_hiring_title=&hiring_date=&SoftwareHardware_array=&technology_uses_text=&FilterEmployee=all,1,2,3,4,5,6,7,8,9,10,11,12&FilterRevenue=all,1,2,3,4,5,6,7,8,9,10,11,12&email_filter=peopleResultsEmails&suppression_filter=suppressed_no&exportedResults=exported_yes&companyResults=companyResultsAll&linkedinResult=linkedin_no&has_direct_dialResults=has_direct_dial_no&since_date=&start_date=&default_sort_by=yearlyRevDesc&page=1&[email protected]",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Send UX Element data to search the Lead11 database for company or employee records
Company Unique Identifier
This parameter is built to search for companies by url
Titles of the contacts you are seeking
City Postal/Zip Codes.
Mile Range around that Zip Code.
Area Codes of the company headquarters
4 digit SIC codes
Searching keywords or phrases inside the description of the company
Unique ID for a news/press event. e.g. Funding, New Hire, etc. See the full list here.
Start date of the presss/news event.
End date of the presss/news event.
Keyword of Title of Job Opening
Job Posting Date will be after this date
Keyword search for tech stack data of the company
When selected it shows only contacts that has an email
Suppressed_yes hides contacts/companies from your Suppression list - Use the Insert Suppression Emails call to insert them
exported_yes removes contacts that you have already exported
linkedin_yes limits results to only contacts that we have linkedin_url with
has_direct_dial_yes limits contacts to just those that have direct phone numbers
yearlyRevDesc sorts by
per_company_match returns the max number of records per company ( example 1,2,3,all)
Used for pagination for multiple rows
Used for getting number of records per page (per_page max value 100 allowed per page) (you can use 'limit' instead of per_page as a param as well)
optional, if available in request then sub_account suppression will be used
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/searchUsingJSON?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTE3ODk2MDQsImV4cCI6MTUxMjA0ODgwNCwibmJmIjoxNTExNzg5NjA0LCJqdGkiOiJuN01KbFNkOExibkVNSE1kIn0.NI-nzlzhZ4vgM-pLC23nq_Va_XJS4hYvqWBJ2S7vYLo&company_ids=1743&user_search_string=cisco.com&title_keyword=ceo,cfo,marketing,cfo,marketing&country_code=US&State_array=IL,IN&cityPostal=95001,95134&range=5&Area_Codes=201&Industry_Codes=159&SIC_Codes=301,4011&company_description_string=&news_date_from=2017-11-13&news_date_to=2017-11-13&news_category_source=-1¤tly_hiring_title=ceo,cfo,marketing,cfo,marketing&hiring_date=2017-10-13&SoftwareHardware_array=62_ot&technology_uses_text=technology_uses_yes&FilterEmployee=all,1,2,3,4,5,6,7,8,9,10,11,12&FilterRevenue=all,1,2,3,4,5,6,7,8,9,10,11,12&email_filter=peopleResultsEmails&suppression_filter=suppressed_no&exportedResults=exported_yes&companyResults=companyResultsAll&linkedinResult=linkedin_no&has_direct_dialResults=has_direct_dial_no&since_date=2017-08-08&start_date=2017-11-23&default_sort_by=yearlyRevDesc&page=1&limit=25&[email protected]",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Send JSON string to search the Lead11 database for company or employee records
optional, if available in request then sub_account suppression will be used
json search string for searching data
Used for pagination for multiple rows
Used for getting number of records per page (per_page max value 100 allowed per page) (you can use 'limit' instead of per_page as a param as well)
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/searchUsingJSON?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTI0ODE4MDEsImV4cCI6MTUxMjc0MTAwMSwibmJmIjoxNTEyNDgxODAxLCJqdGkiOiIxSFZkbVJnY3hPbjU2MFQ1In0.LeDh7G38FsYXhIr2FS4I64rlfS-6d1u4GB7UOSZNk_k&[email protected]",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array('search_string' => '{"company_ids":"1743","US_zipcodes":"","range":"5","State_array":"",
"Technology_array":"","SoftwareHardware_array":"", "Category_array":"", "Title_array":"", "user_search_string":"cisco.com","SIC_Codes":"", "Area_Codes":"","Employee_Skills":"","Industry_Codes":"", "FilterRevenue":"all,1,2,3,4,5,6,7,8,9,10,11,12", "FilterEmployee":"all,1,2,3,4,5,6,7,8,9,10,11,12", "FilterLevel":"", "FilterType":"resultTypeAll,companyResultsAll,peopleVerifiedEmails,resultNormal,,,suppressed_no,,linkedin_no,,allcountries,exported_no,has_direct_dial_no,", "Press_event_data":"null#2017-11-13#2017-11-13", "company_description_string":"","title_keyword":"",
"product_keyword":"","currently_hiring_title":"","technology_uses_text":"technology_uses_yes"}'),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return all the information regarding company
required user access token
company id for which api needs to send result
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/getCompanyInfo?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&company_id=1762",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return all the information regarding company
required user access token
linkedin url for which api needs to send result
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/getCompanyInfo?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&linkedin_url=https://www.linkedin.com/company/lead411",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return all the News of the company
required user access token
company id for which api needs to send result
optional parameter to get all result based on the value passed, it can be all, or 10,20,50,100
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/getCompanyNews?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&company_id=1762",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return the Job information of the company
required user access token
company id for which api needs to send result
optional parameter to get all result based on the value passed, it can be all, or 10,20,50,100
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/getCompanyJobs?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&company_id=1762",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return Technology information regarding company
required user access token
company id for which api needs to send result
optional parameter to get all result based on the value passed, it can be all, or 10,20,50,100
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/getCompanyTech?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&company_id=1762",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This apAPIi will return all employees attached to the company for which we are sending request by providing company ID
company id for which api needs to send result
Used for pagination for multiple rows (Optional parameter, The OFFSET value allows to specify which row to start from retrieving data)
Used for getting number of records per page (per_page max value 100 allowed per page) (you can use 'limit' instead of per_page as a param as well)
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/getCompanyEmployees?company_id=1762&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&start=0",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return employees information for which we are sending request by providing employee ID
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/employee/getEmployeeInformation?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&employee_id=8972869",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return employees information for which we are sending request by providing email address
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/employee/getEmployeeInformation?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&[email protected]",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Filter company Employee Result based on name, title, dept
required user access token
company id for which api needs to send result
optional parameter to filter the result based on first_name or last_name or title
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&company_id=1762&search_name=Patterson",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Filter company Employee Result based on Employee linked url(s). Example:
Filter the result based on Employee's Linkedin URL(s), Pass 'linkedin_url' param value in any of below format, you can pass like single url or multiple linkedin urls, please check PARAMS section for how to pass multiple linkedin urls
required user access token
optional param: company id for which api needs to look for specific company's employees
Filter the result based on Employee's Linkedin URL(s), you can pass value as https://www.linkedin.com/in/acagnetta or linkedin.com/in/acagnetta or in/acagnetta or ["https://www.linkedin.com/in/acagnetta","linkedin.com/in/paul-pricoli-9a21935"] (max 100)
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyNDgyLCJpc3MiOiJodHRwczovL2FdswaS5sZWFkNDExLmNvbS92MS9hdXRoZW50aWNhdGVfdXNlciIsImlhdCI6M%20JuYmYiOjE1NTkxMTc1NTQsImp0aSI6IlR4a3FVZnVJRlJoRdzZDZTcifQ.DMwmzfrCRwBvS811bZmf4URiBWdiDgXr2O7MvBhUoxY&company_id=1762&linkedin_url=linkedin.com/in/acagnetta",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Filter Employee Result based on Employee linked url. Example:
Filter the result based on Employee's Linkedin URL, Pass 'linkedin_url' param value in any of below format, you can pass like single url or multiple linkedin urls, please check PARAMS section for how to pass multiple linkedin urls
required user access token
Filter the result based on Employee's Linkedin URL, you can pass value as https://www.linkedin.com/in/acagnetta or linkedin.com/in/acagnetta or ["linkedin.com/in/acagnetta","linkedin.com/in/paul-pricoli-9a21935"](max 100)
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyNDgyLCJpc3MiOiJodHRwczovL2FdswaS5sZWFkNDExLmNvbS92MS9hdXRoZW50aWNhdGVfdXNlciIsImlhdCI6M%20JuYmYiOjE1NTkxMTc1NTQsImp0aSI6IlR4a3FVZnVJRlJoRdzZDZTcifQ.DMwmzfrCRwBvS811bZmf4URiBWdiDgXr2O7MvBhUoxY&linkedin_url=linkedin.com/in/acagnetta",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Search company's cmployees based only on employee title
required user access token
company id for which api needs to send result
optional parameter to filter the result based on employee title
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OT2ac5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2sdFyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&company_id=1762&search_title=ceo,cfo,marketing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will unlock the employee and return the email and phone if available in the Lead411 DB
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/employee/unlock_employee_record?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&employee_id=8972869",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Logout and delete the generated token
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/logout/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return industry data to build Industry Dropdown Element on Advance UX popup, search_keyword is the optional param where you can pass value to get matched records.
optional parameter which hold the keyword to match
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/search_industry_linkedin_keywords?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=software",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return the News Category data to build News Category Dropdown Element on Advance UX popup
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/getNewsCategoryData?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return the Sort By Options to build Sort By Dropdown Element on Advance UX popup
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/get_search_sortby_options?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>