MarkdownCopies this page as Markdown, ready to paste into an AI assistant.
LinkedIn API
30 LinkedIn endpoints behind one key, priced in credits per call or per result and routed to the cheapest healthy source.
On this page
Social · 30 endpoints · from 1 credit per call
Endpoints
- POSTLinkedIn Ads Library
/v1/run/linkedin.adsList the ads behind a LinkedIn Ad Library search URL: advertiser, ad text, headline, format, image and ad URL for each ad, with pagination.3 creditsper call - POSTLinkedIn Basic Profile Posts
/v1/run/linkedin.profile_posts_thinRecent public posts of a LinkedIn member with id, link, text, date, author, engagement, article, image, video and repost basics.4 creditsper call - POSTLinkedIn Company
/v1/run/linkedin.companyFull LinkedIn company page from a company URL or universal name: description, industry, headcount and size band, followers, founding date, headquarters and offices, specialities, funding and similar companies.2 creditsper call - POSTLinkedIn Company Employees
/v1/run/linkedin.company_employeesList people who work at a LinkedIn company, optionally filtered by job title: name, handle, title, location and profile URL.3.75 creditsper result - POSTLinkedIn Company Posts
/v1/run/linkedin.company_postsRecent posts of a LinkedIn company page: full text, link, publish date, author, engagement with a per-reaction breakdown, articles and media.4 creditsper call - POSTLinkedIn Company Search
/v1/run/linkedin.search_companiesSearch LinkedIn companies by name or keywords, optionally in one location, and get name, page URL, industry, location, followers, summary and logo per company.4 creditsper call - POSTLinkedIn Email Finder
/v1/run/linkedin.emailFind the verified work email behind a LinkedIn profile URL, with the person’s name, headline and current company attached.13 creditsper call - POSTLinkedIn Job
/v1/run/linkedin.jobOne LinkedIn job posting by URL or id: title, full description, location, salary when disclosed, applicants, employment and workplace type, apply links, posting and expiry dates and the hiring company.1 creditper call - POSTLinkedIn Jobs
/v1/run/linkedin.jobs_thinCheap LinkedIn job-search index by title, location and filters: id, title, company, location, posting date and URL per job, 25 per page, with no descriptions or salaries.1 creditper call - POSTLinkedIn Jobs with Details
/v1/run/linkedin.jobsSearch LinkedIn job listings by title and location and get full records, up to 25 per call: description, salary when disclosed, applicants, seniority, employment type, company and posting date.0.45 creditsper result - POSTLinkedIn Post
/v1/run/linkedin.postOne public LinkedIn post or Pulse article by URL: title, text, author, reaction and comment counts, publish date and lead image.3 creditsper call - POSTLinkedIn Post Comments
/v1/run/linkedin.post_commentsComments on a public LinkedIn post: full text, commenter name, profile URL and headline, timestamps and engagement.4 creditsper call - POSTLinkedIn Post Reactions
/v1/run/linkedin.post_reactionsPeople who reacted to a public LinkedIn post: reactor name, profile URL, headline and reaction type.4 creditsper call - POSTLinkedIn Post Search with Details
/v1/run/linkedin.search_posts_fullSearch public LinkedIn posts with author, company, industry, mention, content-type and date filters and get rich author, engagement and attachment details.4 creditsper call - POSTLinkedIn Profile
/v1/run/linkedin.profileFull public LinkedIn member profile from a profile URL: headline, location, follower and connection counts, experience, education, skills and certifications.5 creditsper call - POSTLinkedIn Profile Comments
/v1/run/linkedin.profile_commentsComments a LinkedIn member left on other people's posts: comment text, permalink and timestamp, plus the post it was left on.4 creditsper call - POSTLinkedIn Profile Posts
/v1/run/linkedin.profile_posts_fullRecent public posts of a LinkedIn member with author, engagement and reaction breakdown, article, newsletter, document, media and repost details.4 creditsper call - POSTLinkedIn Profile Reactions
/v1/run/linkedin.profile_reactionsPosts a LinkedIn member has reacted to: the reaction, its timestamp and the post it was made on with author and engagement.4 creditsper call - POSTLinkedIn Profile Search
/v1/run/linkedin.search_profilesSearch LinkedIn people by keyword with job-title, location, company, school, seniority and other filters; each hit is a full profile.5 creditsper result - POSTLinkedIn Profile Search + Email
/v1/run/linkedin.search_profiles_emailLinkedIn people search that returns a full profile and verified work emails, where one can be found, for each hit.12.5 creditsper result - POSTLinkedIn ArticlePlanned
/v1/run/linkedin.articleFull text and metadata of a public LinkedIn article or newsletter issue from its URL.Planned - POSTLinkedIn Basic Profile SearchPlanned
/v1/run/linkedin.search_profiles_thinSearch LinkedIn people by keyword, title and location, returning short profile rows.Planned - POSTLinkedIn Comment ReactionsPlanned
/v1/run/linkedin.comment_reactionsPeople who reacted to one comment on a public LinkedIn post, with reaction type.Planned - POSTLinkedIn Comment RepliesPlanned
/v1/run/linkedin.comment_repliesReplies to one comment on a public LinkedIn post, with author and engagement.Planned - POSTLinkedIn GroupPlanned
/v1/run/linkedin.groupPublic details of a LinkedIn group: name, description, member count and rules.Planned - POSTLinkedIn Group PostsPlanned
/v1/run/linkedin.group_postsRecent posts in a LinkedIn group, with author, text and engagement.Planned - POSTLinkedIn Group SearchPlanned
/v1/run/linkedin.search_groupsSearch LinkedIn groups by keyword: name, member count and group URL.Planned - POSTLinkedIn Lead SearchPlanned
/v1/run/linkedin.search_leadsSales-prospecting people search with advanced inclusion and exclusion filters.Planned - POSTLinkedIn Post EngagersPlanned
/v1/run/linkedin.post_engagersUp to 100 people who reacted to or commented on a public LinkedIn post, with name, profile link and headline, in one call.Planned - POSTLinkedIn Services SearchPlanned
/v1/run/linkedin.search_servicesSearch LinkedIn service providers (freelancers) by service and location.Planned
Calling them
Every endpoint on this page is one POST to https://api.primaryapi.com/v1/run/{sku} with your API key and a JSON body. Responses share one envelope, so code written for one endpoint handles the others. For example, linkedin.ads:
curl -sS -X POST "https://api.primaryapi.com/v1/run/linkedin.ads" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.linkedin.com/ad-library/search?accountOwner=apify","limit":25}'const res = await fetch('https://api.primaryapi.com/v1/run/linkedin.ads', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PRIMARYAPI_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
url: 'https://www.linkedin.com/ad-library/search?accountOwner=apify',
limit: 25,
}),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.error}`);
// found:false is a successful answer ("does not exist"), not an error
console.log(body.output.found ? body.output.data : body.output.reason, body.credits);import os
import requests
res = requests.post(
"https://api.primaryapi.com/v1/run/linkedin.ads",
headers={"Authorization": f"Bearer {os.environ['PRIMARYAPI_API_KEY']}"},
json={
"url": "https://www.linkedin.com/ad-library/search?accountOwner=apify",
"limit": 25,
},
timeout=60,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['error']}")
# found=False is a successful answer ("does not exist"), not an error
print(body["output"]["data"] if body["output"]["found"] else body["output"]["reason"], body["credits"])New to PrimaryAPI? Start with the Quickstart, then read Making requests.