Skip to main content

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-doe works 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.

Not every number starts with +

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.

POSThttps://app.icypeas.com/api/sync/phone-search
Headers
  • Authorizationstringrequired

    Your API key, as is (no Bearer prefix).

  • Content-Typestringrequired

    Always application/json.

Body parameters
  • emailstringoptional

    The email address of the person.

    Rule: send either email or profileUrl, not both

  • profileUrlstringoptional

    The 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)

Request example
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"
}'
Responses
200SuccessResponse when a phone number is found
Example response · 200
{
"success": true,
"status": "FOUND",
"phones": [
"+33600000000"
],
"searchId": "RUiDo5sBptEgZPBRAC7O"
}
Response fields
  • successboolean

    true when the search ran. false when the phone search service was unavailable: nothing is charged and you can retry.

  • statusstring

    FOUND if at least one phone number was found. NOT_FOUND otherwise.

  • phonesarray

    The 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.

  • searchIdstring

    The id of the search item (if you need to fetch the result later using the dedicated route).

200SuccessResponse when no phone number is found
Example response · 200
{
"success": true,
"status": "NOT_FOUND",
"phones": [],
"searchId": "RUiDo5sBptEgZPBRAC8O"
}
Response fields
  • successboolean

    true when the search ran. false when the phone search service was unavailable: nothing is charged and you can retry.

  • statusstring

    FOUND if at least one phone number was found. NOT_FOUND otherwise.

  • phonesarray

    The 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.

  • searchIdstring

    The 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
Example response · 200
{
"success": false,
"status": "NOT_FOUND",
"phones": [],
"searchId": "RUiDo5sBptEgZPBRAC9O"
}
Response fields
  • successboolean

    true when the search ran. false when the phone search service was unavailable: nothing is charged and you can retry.

  • statusstring

    FOUND if at least one phone number was found. NOT_FOUND otherwise.

  • phonesarray

    The 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.

  • searchIdstring

    The 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.

Example response · 200
{
"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"
}
]
}
TypeFieldsWhen it happens
InvalidPhoneSearchTargetError
invalid_phone_search_target_error
profileUrlError 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")
email
validation_email
emailError sent when the field is not an email address
InsufficientCredits
insufficient_credits
emailError sent when you have less than 20 credits. The field is email even when you only sent a profileUrl
UnpaidSubscriptionError
unpaid_subscription_error
emailError 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
Example response · 422
{
"message": "The phone finder refused the given data. Please check it",
"error": "PhoneFinderValidationError",
"status": 422,
"code": "phone_finder_validation_error"
}
Response fields
  • messagestring

    Human-readable message.

  • errorstring

    Error name

  • statusnumber

    HTTP error code

  • codestring

    Error code

401UnauthorizedResponse when we could not authenticate you.
Example response · 401
{
"message": "Unauthorized access.",
"error": "UnauthorizedAccessError",
"status": 401,
"code": "unauthorized_access_error"
}
Response fields
  • messagestring

    Human-readable message.

  • errorstring

    Error name

  • statusnumber

    HTTP error code

  • codestring

    Error code

429Too many requestsError received when rate limit is exceeded
Example response · 429
{
"message": "You have exceeded the max number of requests per minute.",
"error": "RateLimitExceededError",
"status": 429,
"code": "rate_limit_exceeded_error"
}
Response fields
  • messagestring

    Human-readable message.

  • errorstring

    Error name

  • statusnumber

    HTTP error code

  • codestring

    Error code

Search up to 50 people​

Not to be confused with the email bulk search: this endpoint is /sync/bulk-search and answers directly.

POSThttps://app.icypeas.com/api/sync/bulk-search
Headers
  • Authorizationstringrequired

    Your API key, as is (no Bearer prefix).

  • Content-Typestringrequired

    Always application/json.

Body parameters
  • typeenumrequired

    The kind of search to run. Today, phone-search is the only value.

    Rule: phone-search

  • dataarrayrequired

    The 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

Request example
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"
]
}'
Responses
200SuccessResponse when the search ran
Example response · 200
{
"success": true,
"data": [
{
"status": "FOUND",
"phones": [
"+33600000000"
],
"searchId": "RUiDo5sBptEgZPBRAC7O"
},
{
"status": "NOT_FOUND",
"phones": [],
"searchId": "RDiDo5sBptEgZPBRAC81"
}
]
}
Response fields
  • successboolean

    true when the search ran.

  • dataarray of objects

    One result per item, in the same order as the data you sent.

    Show item properties (3)
    • statusstring

      FOUND if at least one phone number was found. NOT_FOUND otherwise.

    • phonesarray

      The 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.

    • searchIdstring

      The 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
Example response · 200
{
"success": false,
"data": []
}
Response fields
  • successboolean

    false because the phone search service was unavailable.

  • dataarray

    An 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.

Example response · 200
{
"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": ""
}
]
}
TypeFieldsWhen it happens
required
validation_required
datatypeError sent when the field is missing
arrayEmpty
validation_array_empty
dataError sent when the data array is empty
arrayLength
validation_array_length
dataError sent when the data array has more than 50 items (expected is "1 >= value <= 50", actual is the item count)
stringEnum
validation_string_enum
typeError sent when type is not phone-search
InvalidPhoneSearchTargetError
invalid_phone_search_target_error
dataError sent when an item is neither an email nor a profile URL. humanReadableMessage lists the index of every invalid item, starting at 0
InsufficientCredits
insufficient_credits
typeError sent when you have less than 20 credits per item in data
UnpaidSubscriptionError
unpaid_subscription_error
typeError 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
Example response · 422
{
"message": "The phone finder refused the given data. Please check it",
"error": "PhoneFinderValidationError",
"status": 422,
"code": "phone_finder_validation_error"
}
Response fields
  • messagestring

    Human-readable message.

  • errorstring

    Error name

  • statusnumber

    HTTP error code

  • codestring

    Error code

401UnauthorizedResponse when we could not authenticate you.
Example response · 401
{
"message": "Unauthorized access.",
"error": "UnauthorizedAccessError",
"status": 401,
"code": "unauthorized_access_error"
}
Response fields
  • messagestring

    Human-readable message.

  • errorstring

    Error name

  • statusnumber

    HTTP error code

  • codestring

    Error code

429Too many requestsError received when rate limit is exceeded
Example response · 429
{
"message": "You have exceeded the max number of requests per minute.",
"error": "RateLimitExceededError",
"status": 429,
"code": "rate_limit_exceeded_error"
}
Response fields
  • messagestring

    Human-readable message.

  • errorstring

    Error name

  • statusnumber

    HTTP error code

  • codestring

    Error 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:

CasetypehumanReadableMessage
Single: both email and profileUrl sent, or neitherInvalidPhoneSearchTargetErrorYou should specify either an email or a Profile URL, not both
Single: profileUrl isn't a profile URLInvalidPhoneSearchTargetErrorThe profileUrl should be a Profile URL
Bulk: an item is neither an email nor a profile URLInvalidPhoneSearchTargetErrorAll items in the data array should be an email or a Profile URL. Please check items at indices: 1,2
Not enough creditsInsufficientCreditsInsufficient 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.