Lusha API using PHP curl

The Lusha API returns data of business profiles. It can access a user’s phone, email, and location. It is available in REST architecture with API Key by request using PHP curl.

Example

<?php
	$url = 'https://api.lusha.co/person?firstName=?&lastName=?&company=?';
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_HTTPHEADER, array("api_key: ? "));
	curl_setopt($ch, CURLOPT_URL, $url);
		
	$result = curl_exec($ch);
	$json = json_decode($result, true); 
	$temperatureMin = $json['data'];
	echo "<pre>";
	print_r($temperatureMin['emailAddresses'][0]['email']);
?>

Leave a Reply

Your email address will not be published. Required fields are marked *