Phone search
Find the phone number of a person from their email or their profile URL. Costs 20 credits per phone found, nothing if no phone is found.
Unlike email searches, both endpoints answer directly with the result: no need to read it later or wait for a webhook. The bulk endpoint takes up to 50 people per call. See the rate limits.
What you can send: each person is identified by either an email or a profile URL.
- Email: a valid email address. Spaces around it are removed and it is lowercased.
- Profile URL: a person's profile URL, such as
https://www.linkedin.com/in/jane-doe.https://is optional:www.linkedin.com/in/jane-doeworks too. Company pages and Sales Navigator URLs are refused.
What you get back: several phone numbers can be returned for the same person. The first one is always the best candidate.
+Numbers are returned in the international E.164 format (+33600000000) whenever possible. When a number can't be converted, it comes back in its local form. Don't assume every number starts with +.
Search one person
Send email or profileUrl. Sending both, or neither, is refused.
https://app.icypeas.com/api/sync/phone-searchAuthorizationstringrequiredYour API key, as is (no
Bearerprefix).Content-TypestringrequiredAlways
application/json.
emailstringoptionalThe email address of the person.
Rule: send either email or profileUrl, not both
profileUrlstringoptionalThe profile URL of the person.
Rule: send either email or profileUrl, not both. Must be a user profile URL (e.g. https://www.linkedin.com/in/jane-doe)
- cURL
- JavaScript
- Python
- PHP
- PowerShell
- JSON body
curl -X POST "https://app.icypeas.com/api/sync/phone-search" \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY" \
-d '{
"email": "jane@acme.com"
}'
const response = await fetch("https://app.icypeas.com/api/sync/phone-search", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "YOUR_API_KEY",
},
body: JSON.stringify({
"email": "jane@acme.com"
}),
});
const data = await response.json();
console.log(data);
import requests
response = requests.post(
"https://app.icypeas.com/api/sync/phone-search",
headers={"Authorization": "YOUR_API_KEY"},
json={
"email": "jane@acme.com",
},
)
print(response.json())
<?php
$body = <<<'JSON'
{
"email": "jane@acme.com"
}
JSON;
$ch = curl_init("https://app.icypeas.com/api/sync/phone-search");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => $body,
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Authorization: YOUR_API_KEY",
],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);
$headers = @{
"Authorization" = "YOUR_API_KEY"
"Content-Type" = "application/json"
}
$body = @'
{
"email": "jane@acme.com"
}
'@
$response = Invoke-RestMethod -Method POST -Uri "https://app.icypeas.com/api/sync/phone-search" -Headers $headers -Body $body
$response | ConvertTo-Json -Depth 10
Paste this in the Body field of Make, Zapier, n8n or Postman.
{
"email": "jane@acme.com"
}
200SuccessResponse when a phone number is found
{
"success": true,
"status": "FOUND",
"phones": [
"+33600000000"
],
"searchId": "RUiDo5sBptEgZPBRAC7O"
}
successbooleantrue when the search ran. false when the phone search service was unavailable: nothing is charged and you can retry.
statusstringFOUND if at least one phone number was found. NOT_FOUND otherwise.
phonesarrayThe phone numbers found. Several numbers can be returned, the first one is always the best candidate. Most are in the international E.164 format (`+33600000000`), but a number that cannot be converted is returned in its local form. Empty when nothing is found.
searchIdstringThe id of the search item (if you need to fetch the result later using the dedicated route).
200SuccessResponse when no phone number is found
{
"success": true,
"status": "NOT_FOUND",
"phones": [],
"searchId": "RUiDo5sBptEgZPBRAC8O"
}
successbooleantrue when the search ran. false when the phone search service was unavailable: nothing is charged and you can retry.
statusstringFOUND if at least one phone number was found. NOT_FOUND otherwise.
phonesarrayThe phone numbers found. Several numbers can be returned, the first one is always the best candidate. Most are in the international E.164 format (`+33600000000`), but a number that cannot be converted is returned in its local form. Empty when nothing is found.
searchIdstringThe id of the search item (if you need to fetch the result later using the dedicated route).
200SuccessResponse when the search could not run. Nothing is charged, you can retry
{
"success": false,
"status": "NOT_FOUND",
"phones": [],
"searchId": "RUiDo5sBptEgZPBRAC9O"
}
successbooleantrue when the search ran. false when the phone search service was unavailable: nothing is charged and you can retry.
statusstringFOUND if at least one phone number was found. NOT_FOUND otherwise.
phonesarrayThe phone numbers found. Several numbers can be returned, the first one is always the best candidate. Most are in the international E.164 format (`+33600000000`), but a number that cannot be converted is returned in its local form. Empty when nothing is found.
searchIdstringThe id of the search item (if you need to fetch the result later using the dedicated route).
200Validation errorResponse when there are validation errors. Nothing is searched and nothing is charged
The request reached Icypeas but some fields are wrong. The response lists every problem in validationErrors. See how to read and fix errors.
{
"success": false,
"validationErrors": [
{
"field": "profileUrl",
"type": "InvalidPhoneSearchTargetError",
"message": "invalid_phone_search_target_error",
"humanReadableMessage": "The profileUrl should be a Profile URL",
"expected": null,
"actual": "https://www.linkedin.com/company/acme"
}
]
}
| Type | Fields | When it happens |
|---|---|---|
InvalidPhoneSearchTargetErrorinvalid_phone_search_target_error | profileUrl | Error sent when both email and profileUrl are sent, or neither ("You should specify either an email or a Profile URL, not both"), or when profileUrl is not a profile URL ("The profileUrl should be a Profile URL") |
emailvalidation_email | email | Error sent when the field is not an email address |
InsufficientCreditsinsufficient_credits | email | Error sent when you have less than 20 credits. The field is email even when you only sent a profileUrl |
UnpaidSubscriptionErrorunpaid_subscription_error | email | Error sent when you have a pending payment and your subscription is therefore not paid. The field is email even when you only sent a profileUrl |
422ErrorResponse when the phone search service refuses the data. Nothing is charged
{
"message": "The phone finder refused the given data. Please check it",
"error": "PhoneFinderValidationError",
"status": 422,
"code": "phone_finder_validation_error"
}
messagestringHuman-readable message.
errorstringError name
statusnumberHTTP error code
codestringError code
401UnauthorizedResponse when we could not authenticate you.
{
"message": "Unauthorized access.",
"error": "UnauthorizedAccessError",
"status": 401,
"code": "unauthorized_access_error"
}
messagestringHuman-readable message.
errorstringError name
statusnumberHTTP error code
codestringError code
429Too many requestsError received when rate limit is exceeded
{
"message": "You have exceeded the max number of requests per minute.",
"error": "RateLimitExceededError",
"status": 429,
"code": "rate_limit_exceeded_error"
}
messagestringHuman-readable message.
errorstringError name
statusnumberHTTP error code
codestringError code
Search up to 50 people
Not to be confused with the email bulk search: this endpoint is /sync/bulk-search and answers directly.
https://app.icypeas.com/api/sync/bulk-searchAuthorizationstringrequiredYour API key, as is (no
Bearerprefix).Content-TypestringrequiredAlways
application/json.
typeenumrequiredThe kind of search to run. Today, phone-search is the only value.
Rule: phone-search
dataarrayrequiredThe people to search. Emails and profile URLs can be mixed in the same request.
Rule: 1 to 50 items. Each item is an email address or a user profile URL
- cURL
- JavaScript
- Python
- PHP
- PowerShell
- JSON body
curl -X POST "https://app.icypeas.com/api/sync/bulk-search" \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY" \
-d '{
"type": "phone-search",
"data": [
"jane@acme.com",
"https://www.linkedin.com/in/john-doe"
]
}'
const response = await fetch("https://app.icypeas.com/api/sync/bulk-search", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "YOUR_API_KEY",
},
body: JSON.stringify({
"type": "phone-search",
"data": [
"jane@acme.com",
"https://www.linkedin.com/in/john-doe"
]
}),
});
const data = await response.json();
console.log(data);
import requests
response = requests.post(
"https://app.icypeas.com/api/sync/bulk-search",
headers={"Authorization": "YOUR_API_KEY"},
json={
"type": "phone-search",
"data": ["jane@acme.com", "https://www.linkedin.com/in/john-doe"],
},
)
print(response.json())
<?php
$body = <<<'JSON'
{
"type": "phone-search",
"data": [
"jane@acme.com",
"https://www.linkedin.com/in/john-doe"
]
}
JSON;
$ch = curl_init("https://app.icypeas.com/api/sync/bulk-search");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => $body,
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Authorization: YOUR_API_KEY",
],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);
$headers = @{
"Authorization" = "YOUR_API_KEY"
"Content-Type" = "application/json"
}
$body = @'
{
"type": "phone-search",
"data": [
"jane@acme.com",
"https://www.linkedin.com/in/john-doe"
]
}
'@
$response = Invoke-RestMethod -Method POST -Uri "https://app.icypeas.com/api/sync/bulk-search" -Headers $headers -Body $body
$response | ConvertTo-Json -Depth 10
Paste this in the Body field of Make, Zapier, n8n or Postman.
{
"type": "phone-search",
"data": [
"jane@acme.com",
"https://www.linkedin.com/in/john-doe"
]
}
200SuccessResponse when the search ran
{
"success": true,
"data": [
{
"status": "FOUND",
"phones": [
"+33600000000"
],
"searchId": "RUiDo5sBptEgZPBRAC7O"
},
{
"status": "NOT_FOUND",
"phones": [],
"searchId": "RDiDo5sBptEgZPBRAC81"
}
]
}
successbooleantrue when the search ran.
dataarray of objectsOne result per item, in the same order as the data you sent.
Show item properties (3)
statusstringFOUND if at least one phone number was found. NOT_FOUND otherwise.
phonesarrayThe phone numbers found. Several numbers can be returned, the first one is always the best candidate. Most are in the international E.164 format (`+33600000000`), but a number that cannot be converted is returned in its local form. Empty when nothing is found.
searchIdstringThe id of the search item (if you need to fetch the result later using the dedicated route).
200SuccessResponse when the search could not run. Nothing is charged, you can retry
{
"success": false,
"data": []
}
successbooleanfalse because the phone search service was unavailable.
dataarrayAn empty array.
200Validation errorResponse when there are validation errors. Nothing is searched and nothing is charged, even for the valid items
The request reached Icypeas but some fields are wrong. The response lists every problem in validationErrors. See how to read and fix errors.
{
"success": false,
"validationErrors": [
{
"field": "data",
"type": "InvalidPhoneSearchTargetError",
"message": "invalid_phone_search_target_error",
"humanReadableMessage": "All items in the data array should be an email or a Profile URL. Please check items at indices: 1,2",
"expected": null,
"actual": ""
}
]
}
| Type | Fields | When it happens |
|---|---|---|
requiredvalidation_required | datatype | Error sent when the field is missing |
arrayEmptyvalidation_array_empty | data | Error sent when the data array is empty |
arrayLengthvalidation_array_length | data | Error sent when the data array has more than 50 items (expected is "1 >= value <= 50", actual is the item count) |
stringEnumvalidation_string_enum | type | Error sent when type is not phone-search |
InvalidPhoneSearchTargetErrorinvalid_phone_search_target_error | data | Error sent when an item is neither an email nor a profile URL. humanReadableMessage lists the index of every invalid item, starting at 0 |
InsufficientCreditsinsufficient_credits | type | Error sent when you have less than 20 credits per item in data |
UnpaidSubscriptionErrorunpaid_subscription_error | type | Error sent when you have a pending payment and your subscription is therefore not paid |
422ErrorResponse when the phone search service refuses the data. Nothing is charged
{
"message": "The phone finder refused the given data. Please check it",
"error": "PhoneFinderValidationError",
"status": 422,
"code": "phone_finder_validation_error"
}
messagestringHuman-readable message.
errorstringError name
statusnumberHTTP error code
codestringError code
401UnauthorizedResponse when we could not authenticate you.
{
"message": "Unauthorized access.",
"error": "UnauthorizedAccessError",
"status": 401,
"code": "unauthorized_access_error"
}
messagestringHuman-readable message.
errorstringError name
statusnumberHTTP error code
codestringError code
429Too many requestsError received when rate limit is exceeded
{
"message": "You have exceeded the max number of requests per minute.",
"error": "RateLimitExceededError",
"status": 429,
"code": "rate_limit_exceeded_error"
}
messagestringHuman-readable message.
errorstringError name
statusnumberHTTP error code
codestringError code
Errors
Validation errors come back with HTTP 200 and "success": false, like on every other endpoint, and nothing is charged. See Errors for the format. On these endpoints, Icypeas checks (like InvalidPhoneSearchTargetError) also add a humanReadableMessage that explains the problem:
| Case | type | humanReadableMessage |
|---|---|---|
Single: both email and profileUrl sent, or neither | InvalidPhoneSearchTargetError | You should specify either an email or a Profile URL, not both |
Single: profileUrl isn't a profile URL | InvalidPhoneSearchTargetError | The profileUrl should be a Profile URL |
| Bulk: an item is neither an email nor a profile URL | InvalidPhoneSearchTargetError | All items in the data array should be an email or a Profile URL. Please check items at indices: 1,2 |
| Not enough credits | InsufficientCredits | Insufficient credits to run the search |
In bulk, one invalid item blocks the whole request: nothing is searched, even for the valid items. The message lists the index of every invalid item in data, starting at 0.
When the phone search service refuses the data, the endpoint answers HTTP 422 with a PhoneFinderValidationError instead (see the responses above). Nothing is charged.