LinkedIn Lookup API
Look up available work emails and optional phone numbers from public LinkedIn profile URLs. See a Dievio API request, response, pagination and credit rules.
Send a public profile URL
Use POST /api/linkedin/lookup when you already have public LinkedIn profile URLs. Pass your API key from a server application. The sample uses a fictional profile and requests available work emails.
curl https://dievio.com/api/linkedin/lookup \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"linkedinUrls": ["https://www.linkedin.com/in/example-profile/"],
"includeWorkEmails": true,
"includePersonalEmails": false,
"includePhones": false,
"onlyWithEmails": false,
"_page": 1,
"_per_page": 1
}'Read a match, a missing field or no match
This abbreviated example shows a matched profile with a missing work email. With onlyWithEmails set to false, a profile can match even when its email field is empty. An empty data array means the request returned no matching records for that page.
{
"success": true,
"count": 1,
"data": [{
"linkedin_url": "https://www.linkedin.com/in/example-profile/",
"work_email": null
}],
"processed_count": 1,
"total_input_count": 1,
"has_more": false,
"next_page": null
}To request available phone details, set includePhones to true. If phone enrichment is unavailable, inspect the response’s warnings before deciding what to do with the returned records.
Set page size and check your API balance
Send up to 100,000 input URLs and start with a small _per_page. Reuse the same input array when sending the next_page value as _page. The balance must be able to cover the number of URLs on the requested page before lookup starts.
One API credit is charged per record returned on a successful lookup page. A page with no matches uses zero credits. HTTP 402 means the API balance cannot cover the request. Reduce the page size or add credits before retrying.
LinkedIn Lookup API questions
Can I use a name or company domain as input?
This endpoint takes public LinkedIn profile URLs. Use Dievio’s lead search API when you need to find people by company, role or other filters.
How can I detect a partial phone lookup?
Check the optional warnings array in a successful lookup response. The direct file export at POST /api/linkedin/export keeps available rows and returns the X-Dievio-Phone-Enrichment: partial response header if phone enrichment did not complete.
Which balance pays for API calls?
Calls with an API key use the separate API credit balance shown in API settings.
What do HTTP 400 and HTTP 401 mean?
HTTP 400 means the input did not meet the request contract. Send linkedinUrls as an array of strings. HTTP 401 means an API key is missing or invalid.
Run your first API request
Create a key and review the available API credits in your account.