Skip to main content

LinkedIn Lookup

Look up available emails and optional phones for LinkedIn profile URLs. This endpoint supports dashboard session auth and API key auth:

  • Dashboard session token → uses subscription credits
  • API key → uses API credits

Endpoint​

POST https://dievio.com/api/linkedin/lookup

Authentication​

Choose one:

Authorization: Bearer YOUR_SESSION_TOKEN

or

Authorization: Bearer YOUR_API_KEY

or

X-API-Key: YOUR_API_KEY

Request body​

Required​

  • linkedinUrls (string[]) — up to 100,000 URLs

Options​

  • includeWorkEmails (boolean, default true)
  • includePersonalEmails (boolean, default true)
  • onlyWithEmails (boolean, default true)
  • includePhones (boolean, default false)

Pagination & limits​

  • _page (default 1)
  • _per_page (default 100)
  • max_results (default linkedinUrls length; fallback 500, max 100000)

Response fields​

  • count: number of rows returned in this page
  • data: array of results (emails/phones merged)
  • page, per_page, total_pages, has_more, next_page
  • total_count: number of results returned on the current page, including when this is zero
  • processed_count: position reached in the input URL list, including URLs that returned no record
  • total_input_count: number of input URLs covered by the request after applying max_results
  • max_results
  • warnings (when present) describes a partial result, such as phone enrichment failing after the email lookup succeeded.

Lookup paginates the input URLs. Keep the URL order, request options and requested _per_page fixed. Follow next_page while has_more is true, even when data is empty.

Credits​

  • 1 credit per result
  • Dashboard session uses subscription credits
  • API key uses API credits
  • The balance must cover the number of input URLs on the current page before lookup begins.
  • After lookup, credits are deducted based on returned records. A page with no matches uses zero credits. Optional phone enrichment adds no separate charge.

Errors​

  • 400 — linkedinUrls has the wrong type or exceeds the 100,000-URL limit.
  • 401 — Missing or invalid credentials.
  • 402 — The applicable balance cannot cover the input page or the charge. Check your balance or use a smaller input page.
  • 500 — The lookup failed. For a timeout, try fewer URLs. If the response is successful and contains a phone warning, review the returned email results before retrying a paid lookup.

Partial phone results in a direct export​

POST https://dievio.com/api/linkedin/export retrieves records and returns an attachment in the requested format. If it returns a file with X-Dievio-Phone-Enrichment: partial, the file contains available results but some requested phone enrichment did not complete. The charge still reflects the returned records. An ordinary empty phone field does not produce this header.

Example Request​

curl -X POST https://dievio.com/api/linkedin/lookup \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"linkedinUrls": [
"https://www.linkedin.com/in/example-1",
"https://www.linkedin.com/in/example-2"
],
"includeWorkEmails": true,
"includePersonalEmails": true,
"onlyWithEmails": true,
"includePhones": false,
"max_results": 500,
"_per_page": 100,
"_page": 1
}'

Example Response​

{
"success": true,
"count": 1,
"message": "Search completed.",
"page": 1,
"per_page": 2,
"total_pages": 1,
"total_count": 1,
"has_more": false,
"next_page": null,
"max_results": 500,
"processed_count": 2,
"total_input_count": 2,
"data": [
{
"linkedin_url": "https://www.linkedin.com/in/example-1",
"full_name": "Jane Doe",
"first_name": "Jane",
"last_name": "Doe",
"job_title": "CEO",
"company": "Acme Inc",
"work_email": "jane@acme.com",
"personal_emails": ["jane@gmail.com"],
"personal_emails_count": 1,
"has_email": true,
"mobile_phone": null,
"has_phone": false
}
]
}