Jobs and hiring5 min readBy Purrkey teamUpdated

How to search LinkedIn profiles by role and company

Search full LinkedIn profiles by keyword, company, title, location, and seniority to build a shortlist

On this page

You need 15 shortlisted senior software engineers in San Francisco who currently work at Google or Meta, and you want them in a table you can hand to outreach and interview scheduling

The search runs on anyapi.linkedin.search_profiles, which returns full profile records. This guide sets the filters, names the output fields that decide which rows stay, and prices the run. No call has been made for this article, so each table below is a design

What the shortlist table holds

Nine columns per row: firstName, lastName, headline, location, currentPosition, experience, education, skills and url. Values here are placeholders showing the shape

firstNamelastNameheadlinelocationcurrentPositionexperienceeducationskillsurl
(first name)(last name)(tagline under the name)(city, region, country)(title and company)(work history)(school, degree, field)(listed skills)(profile URL)

Three columns hold open objects rather than plain text. The contract describes currentPosition, experience and education as open objects with the position title, company, dates and location, or the school, degree and field of study, and it says the shape can vary by profile. Flatten the current title and company into one cell and keep the full history beside it when tenure matters

skills is a list as well, one object per skill with its name and, when the source has them, the endorsements label and related positions

Only id and url are marked required on a profile record. Check both before a row enters the shortlist

Step 1: set the filters

anyapi.linkedin.search_profiles is called through POST /v1/runs with toolId anyapi.linkedin.search_profiles. query is the only required input and takes a role, a name or keywords. The catalog lists optional filters that narrow the match before the call runs:

  • location, a place name such as San Francisco
  • currentCompanies, by name; multiple names widen the match (OR), so Google plus Meta covers both employers
  • jobTitle, an optional current title filter such as Software Engineer
  • seniorityLevelIds; the contract's code 120 is Senior and 210 is Experienced Manager
  • functionIds; code 8 is Engineering
  • yearsOfExperienceIds, companyHeadcount, companyHeadquarterLocations, schools, profileLanguages, recentlyChangedJobs and recentlyPostedOnLinkedIn

The step limit sits here: limit is the number of full profiles returned, 1 to 25, default 10, and the contract says you are billed per profile returned, so a lower limit costs less. For 15 people, one call with limit 15 covers the shortlist

Example input, invented for this guide and to be replaced with your own company names and codes before you run it:

FieldExample value
queryengineering manager
locationBerlin
currentCompanies["Northstar Labs"]
seniorityLevelIds["210"]
limit5

Northstar Labs is an invented company name

Step 2: read the output fields that decide a row

Two wrapper fields decide whether the call produced a shortlist. found is true when at least one profile came back, and data.items holds the matched records; data is null when nothing was found. When found is false, reason is present with the value not_found. A found: false answer is a successful call, not an error

Inside a record, firstName, lastName, location and headline fill the first four columns. currentPosition and experience support the check that matters for this job: that the person works at Google or Meta now, not in a past role. url and id identify the profile for outreach, and skills gives the opening line for a message

The contract marks firstName, lastName, headline, location, image, url, handle and experience as populated whenever the provider has data for the entity, so a blank cell means the provider had no data for that profile. Do not paper over a blank with a guess

The schema also carries openToWork, hiring, premium, verified, connectionsCount and followerCount per profile. None of them reorders the shortlist on its own; they are column notes when two profiles look alike

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search LinkedIn
profiles for senior software engineers in San Francisco who currently work
at Google or Meta. Check the current inputs and price of
anyapi.linkedin.search_profiles before running anything. Call it once with
query "software engineer", location "San Francisco", currentCompanies
["Google","Meta"], jobTitle "Software Engineer", seniorityLevelIds ["120"],
functionIds ["8"] and limit 15. Return a table with firstName, lastName,
headline, location, currentPosition, experience, education, skills and url.
If found is false, report reason instead of filling in rows. Do not invent
profiles.

Replace the filter values with the ones you settled on, and keep a first run at limit 5 to see what a profile record looks like before you request the full fifteen

Estimated tool cost

Prices from the Purrkey catalog, read November 13, 2026, revision anyapi-catalog-2026-11-05. The unit is max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge". The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
One 10-profile searchcalls x max price$0.198 per call1$0.198
Five 5-profile searchescalls x max price$0.198 per call5$0.99

One call with limit 15 for the 15-person shortlist is still one call, at most $0.198. A split run of five 5-profile searches multiplies the ceiling by five. Model fees for the agent are not counted

Pick the filter codes, set limit to the size of the shortlist you actually need, and start from LinkedIn profile search. For a narrower slice by title inside one company, see LinkedIn company employees by title

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with LinkedIn.
Explore LinkedIn tools and pricing

FAQ

How do I search LinkedIn profiles by role and company?

Call anyapi.linkedin.search_profiles with query for the role and currentCompanies for the employer names, then add location, jobTitle and seniorityLevelIds to narrow the match. The response returns full profile records with name, headline, location, current position, work history, education, skills and the profile URL.

What does found false mean in the profile search output?

It means the call returned no profiles. reason is present and its only value is not_found, which the contract defines as the source stating the target does not exist or returning nothing for it. A found: false answer is a successful call, not an error.

How many profiles can one search return?

limit accepts 1 to 25 full profiles and defaults to 10. The contract says you are billed per profile returned, so a lower limit costs less.

How much does it cost to build a 15-person shortlist?

One call with limit 15 is one call at up to $0.198. Five 5-profile searches are five calls at up to $0.99.

Which seniority code should I use for senior software engineers?

The contract's seniorityLevelIds list gives 120 as Senior and 210 as Experienced Manager. Code 8 in functionIds is Engineering.

Can this search add email addresses?

The catalog description points to linkedin.search_profiles_email for adding emails and linkedin.search_profiles_thin for a name, headline and URL-only search. The profile record returned by anyapi.linkedin.search_profiles has no email field.

Why are some profile fields empty?

The contract marks firstName, lastName, headline, location, image, url, handle and experience as populated whenever the provider has data for the entity. A blank cell means the provider had no data for that profile.

Next step

Try this with LinkedIn

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See LinkedIn tools

Share this article