Enrich existing CRM contacts with the Dievio API
Start with a public LinkedIn profile URL. Add available work emails or phone numbers to the matching CRM contact and keep the original record when a field is missing.
Look up a known contact
Replace the fictional URL with the public LinkedIn profile URL from your CRM. Set DIEVIO_API_KEY to your key in your shell. This request asks for work email and allows matched profiles with an empty email field.
One-profile request
curl -X POST https://dievio.com/api/linkedin/lookup \
-H "Authorization: Bearer $DIEVIO_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
}'Illustrative match with a missing work email
{
"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
}Illustrative page with no returned contacts
{
"success": true,
"count": 0,
"data": [],
"processed_count": 1,
"total_input_count": 1,
"has_more": false,
"next_page": null
}- A matched profile can have an empty work email. Keep the current CRM value when the returned field is empty or missing. An empty data array means there are no rows to apply from that page.
- For multiple contacts, send their URLs in the same linkedinUrls array. Keep the array order, flags and requested _per_page fixed across requests. Follow next_page while has_more is true, including after an empty page.
- If you requested phones, check warnings before recording the phone lookup as complete. Apply available fields and record the partial outcome for review.
Build the right list for this audience
Use Lookup when you already have the person’s profile URL. If you only have a company domain, a target role or other audience filters, use Lead Search to find contacts first.
- A CRM contact has a profile URL and an empty work email field.
- A customer workflow needs available contact fields for a known person.
- A recurring cleanup job updates incomplete records and logs unmatched profiles.
From filters to a useful list
Keep the CRM record ID and profile URL together
Select rows with a public LinkedIn profile URL. Keep a local map from the normalized URL to the CRM record ID.
Record each outcome
Track returned contacts, empty fields, unmatched inputs and partial phone warnings separately. An empty input page can still have a next page.
Write only the available fields you need
Update the existing record with the CRM ID. Save the API response before writing so a CRM failure can be retried from the saved data.
Handle an incomplete lookup before updating a CRM
For a returned row, apply nonempty values to fields your job owns. For an unmatched input, keep the original record. If the API reports a phone warning, keep any returned email and mark the phone status for review. Save the destination update status separately from the API result.
How credits work
Before lookup starts, your API balance must cover every input URL on the requested page. A successful lookup uses one API credit per returned record, including a matched row with an empty email field. A page with no returned records uses zero. If you get HTTP 402, reduce the input page size before starting a new batch, or top up and retry with the same pagination.
Questions about this workflow
Can I enrich a contact using a name or company domain?
Dievio Lookup takes public LinkedIn profile URLs. Use Lead Search to discover contacts from a company domain, job title or other filters.
Why did I get a match without a work email?
With onlyWithEmails set to false, a matching profile can be returned even if the requested email is missing. Keep the existing CRM value for that field.
Can I continue after a page with zero matches?
Yes. Lookup paginates the input URL list. Follow next_page if has_more is true, even if data is empty.
Can I retry a CRM update without another Lookup call?
Yes. Store the successful lookup response and retry the CRM write from those saved results.
Content reviewed: November 2026
The examples use the public Dievio LinkedIn Lookup contract and fictional profile data.
LinkedIn Lookup API guideDievio API pricingSet up your first contact lookup
Create an API key and review your available API credits before sending a CRM profile.