Mutual connections for a list
You have a list of people. You want to know who on your team is already connected to each of them, and who they share connections with, so the right colleague can ask for an introduction. This page is the API-only way to get that: three endpoints, no assistant in between.
Everything a search brings back is stored in your workspace’s map, so a person is searched once and every later question about them is answered from the map, free.
What you need
Section titled “What you need”- An API key from the dashboard (Settings → API keys), sent as
Authorization: Bearer lin_…. See Authentication. - A connected LinkedIn seat. A seat connected an hour ago works; the searches go to LinkedIn live.
1. Queue the list
Section titled “1. Queue the list”One call. Up to 200 profile URLs or handles per call; a longer list goes in batches of 200, or once as a lead list mapped by listId.
curl -X POST https://api.linnia.ai/v1/network/mutuals/map \ -H "Authorization: Bearer lin_…" -H "content-type: application/json" \ -d '{"targets":["https://www.linkedin.com/in/ida-lind/","craig-van-der-velden"]}'The reply already carries every person with a status:
| Status | Meaning |
|---|---|
direct |
A seat is connected to them. No search needed; message them from that seat. |
mapped |
Their mutuals are in the map already, from the last 30 days. |
queued, scheduled, running |
A search is on a seat’s lane. searches[].eta says when. |
confirm |
They have more than warnAbove (100) shared connections. The first page is in; collecting the rest waits for "confirm": true, or pass maxMutuals up front. |
none |
LinkedIn reports no shared connection on any seat. |
failed |
The search could not run; searches[].note says why. |
Optional fields: accounts (seat ids to search from), warnAbove, confirm, maxMutuals, fresh (search again inside the 30 days).
Nothing else is needed to make the searches run. Linnia’s worker paces them through each seat’s day inside its budgets, so a long list finishes over the following days by itself.
2. Check whether it is done
Section titled “2. Check whether it is done”The same call with "enqueue": false never queues anything; it only reports. Once a minute is plenty.
curl -X POST https://api.linnia.ai/v1/network/mutuals/map \ -H "Authorization: Bearer lin_…" -H "content-type: application/json" \ -d '{"targets":["ida-lind","craig-van-der-velden"],"enqueue":false}'It is finished when searches.pending is 0 and counts.confirm is 0. Until then counts says how many are queued, scheduled, running or waiting for a go-ahead, and seats[].searchPagesLeftToday and seats[].runsToday show the budget.
Two alternatives to polling the map:
- Long-poll one search. Every target carries the
jobIdof its search;GET /v1/jobs/{jobId}?wait=60holds the request open for up towaitseconds (600 at most) and answers when that job ends. See Jobs and polling. - Get told. Register a webhook once for
job.completedandjob.failed;data.kindissearch_peopleanddata.jobIdmatches the map. When the last job for the list has arrived, export.
3. Export the map
Section titled “3. Export the map”CSV with format=csv, JSON rows without. For a lead list use ?list=<id>; for a long list of targets, POST /v1/network/mutuals/export takes the same body as the map call.
curl "https://api.linnia.ai/v1/network/mutuals?targets=ida-lind,craig-van-der-velden&format=csv" \ -H "Authorization: Bearer lin_…" -o mutual-connections.csvOne row per target and mutual: Target, Target headline, Target company, Target profile, Shared on LinkedIn, Mutuals found, Seats connected to target, Mutual connection, Mutual headline, Mutual company, Mutual profile, Seats connected to mutual, Best seat to ask, Strength, Found via seat, First seen, Last seen.
Shared on LinkedIn is LinkedIn’s own count, read from the profile before the search, so you can check the scrape against it. A gap, such as 12 found of 15, is profiles LinkedIn hides from search, not a missing page.
One person, any time
Section titled “One person, any time”curl "https://api.linnia.ai/v1/accounts/who-knows?person=ida-lind" -H "Authorization: Bearer lin_…"Instant and free: the seats connected to them and the remembered mutuals, from the map.
How long it takes
Section titled “How long it takes”Each new person costs the seat one profile view and one search page per 50 shared connections. Profile views are the tighter budget, so they set the pace: 80 a day on a standard seat, 120 once the seat has over 500 connections or with Sales Navigator, 60 on free LinkedIn; search pages are 100 a day, 200 once the seat has over 500 connections. The view is not optional: it resolves the person to a member id and confirms they are within the seat’s 2nd degree, because LinkedIn silently answers an out-of-range mutual search with unrelated people. A new seat warms up over 15 days from 30 a day.
| Profiles | Standard seat | 500+ connections, or Sales Navigator | Two seats |
|---|---|---|---|
| 100 | 1 to 2 days | same day | same day |
| 300 | about 4 days | 2 to 3 days | about 2 days |
| 1,000 | about 2 weeks | 8 to 9 days | about a week |
Within a day the searches are paced across the seat’s sessions like a person browsing, so results arrive over the course of the day; the first ones land within minutes of queueing. People already connected to a seat, or already in the map, cost nothing and are answered at once. Searches run at any hour; only messages and invitations keep working hours.
Reference
Section titled “Reference”POST /v1/network/mutuals/map, GET /v1/network/mutuals, POST /v1/network/mutuals/export, GET /v1/accounts/who-knows.