Email API
Empower your applications with our robust Email API. Streamline communication, send and receive emails seamlessly, and enhance user engagement.
Here is the list of default parameters you can use with this API:
This API can be used in two ways:
1. By using the ID parameter from the Employees API
API Example
cURL "https://api.enrichmentapi.io/find_email?api_key=APIKEY&id=1&domain=xxxapi.com"
const axios = require('axios');
axios.get('https://api.enrichmentapi.io/find_email?api_key=APIKEY&id=1&domain=xxxapi.com')
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});
import requests
payload = {'api_key': 'APIKEY', 'domain':'xxxapi.com', 'id': 1}
resp = requests.get('https://api.enrichmentapi.io/find_email', params=payload)
print (resp.text)
try {
String url = "https://api.enrichmentapi.io/find_email?api_key=APIKEY&id=1&domain=xxxapi.com";
URL urlForGetRequest = new URL(url);
String readLine = null;
HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
conection.setRequestMethod("GET");
int responseCode = conection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
StringBuffer response = new StringBuffer();
while ((readLine = in.readLine()) != null) {
response.append(readLine);
}
in.close();
System.out.println(response.toString());
} else {
throw new Exception("Error in API Call");
}
} catch (Exception ex) {
ex.printStackTrace();
}
require 'net/http'
require 'json'
params = {
:api_key => "APIKEY",
:id => 1,
:domamin=> "xxxapi.com"
}
uri = URI('https://api.enrichmentapi.io/find_email')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)
<?php
$url = "https://api.enrichmentapi.io/find_email?api_key=APIKEY&id=1&domain=xxxapi.com";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
curl_close($ch);
print_r($response);
API Response
[
{
"email": "[email protected]",
"verified": true,
"score": 100,
"processedAt": "2023-09-09T12:05:16.780Z",
"uid": 1
}
]
2. By using first name and last name of a person
API Example
cURL "https://api.enrichmentapi.io/find_email?api_key=APIKEY&first_name=xxx&last_name=yyy&domain=xxxapi.com"
const axios = require('axios');
axios.get('https://api.enrichmentapi.io/find_email?api_key=APIKEY&first_name=xxx&last_name=yyy&domain=xxxapi.com')
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});
import requests
payload = {'api_key': 'APIKEY', 'domain':'xxxapi.com', 'first_name': 'xxx', 'last_name': 'yyy'}
resp = requests.get('https://api.enrichmentapi.io/find_email', params=payload)
print (resp.text)
try {
String url = "https://api.enrichmentapi.io/find_email?api_key=APIKEY&first_name=xxx&last_name=yyy&domain=xxxapi.com";
URL urlForGetRequest = new URL(url);
String readLine = null;
HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
conection.setRequestMethod("GET");
int responseCode = conection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
StringBuffer response = new StringBuffer();
while ((readLine = in.readLine()) != null) {
response.append(readLine);
}
in.close();
System.out.println(response.toString());
} else {
throw new Exception("Error in API Call");
}
} catch (Exception ex) {
ex.printStackTrace();
}
require 'net/http'
require 'json'
params = {
:api_key => "APIKEY",
:first_name => "xxx",
:last_name => "yyy",
:domamin=> "xxxapi.com"
}
uri = URI('https://api.enrichmentapi.io/find_email')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)
<?php
$url = "https://api.enrichmentapi.io/find_email?api_key=APIKEY&first_name=xxx&last_name=yyy&domain=xxxapi.com";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
curl_close($ch);
print_r($response);
API Response
[
{
"name": "xxx yyy",
"email": "[email protected]",
"verified": true,
"score": 100
}
]
Last updated