SocialHolmes
LinkedIn

LinkedIn API: profiles, posts and comments

What LinkedIn's official API lets you read, what needs partner approval, and how to get public LinkedIn profiles, posts, comments and companies as rows.

The short answer

  1. LinkedIn's own API reads the member who logs in to your app: name, photo, email. Most other data needs partner approval.
  2. Public data such as a member's profile and posts, comments on a post, and company pages, comes from a public-data API.
  3. To use it: send a profile, post or company and a limit, and get rows back. Billed per result, nothing for an empty run.
7
public LinkedIn endpoints here
0
partner programs to apply to
$2.50
per 1,000 results (5 credits each)
$0.00
for a run that returns nothing

Read this as

Developer

Each endpoint takes the identifier you already have, a profile URL slug, a post ID or a company slug, plus a limit. Rows come back in the same shape as every other platform here.

Example Recent posts from 100 members, 20 each, is 2,000 rows: $5.

Marketer

See what your competitors' leaders and company pages post, and which posts earn comments. Pull the comments to see who engages.

Example Comments on a competitor's 10 latest posts, 100 each, is 1,000 rows: $2.50.

Agency

Report on a client's thought-leadership: their executives' posts, reactions and comments, next to the same figures for competitors.

Example 5 executives, 30 posts each, is 150 rows: $0.38.

Researcher

Keyword people search and post comments give you public discussion around a topic. Record the date with every run, because counts change.

Example Comments on 50 posts, 200 each, is 10,000 rows: $25.

LinkedIn's official API is built for signing members in and posting on their behalf. Reading other people's public profiles, posts and comments is not open to ordinary developers. A public-data API reads what any LinkedIn visitor can see and returns it as rows.

What can LinkedIn's official API read?

Data LinkedIn's API?
The member who signs in to your app Yes, their basic profile.
Posting as that member Yes, with the member's permission.
A company page you administer Only after LinkedIn approves your app for it.
Another member's profile No, outside approved partner programs.
Comments on someone else's post No, outside approved partner programs.
Searching people by keyword No, outside approved partner programs.

What can I get for a LinkedIn member?

The profile endpoint returns a member's public profile: headline, location, about, positions, education, skills, recommendations and follower count. It does not return contact details such as email. The posts endpoint returns their recent activity, newest first, up to your limit, with each post's text and its reaction and comment counts.

How do I get comments on a LinkedIn post?

Take the post ID from the post's URL and send it to the comments endpoint with a limit. Each comment is one row with its author and text. The post endpoint returns the post itself: author, text and counts.

Engagement on a competitor's posts

15 posts
120 comments each
1,800 rows
$4.50 at $2.50 per 1,000

The comments only. A post with no comments returns nothing and costs nothing.

What can I get for a company?

The company endpoint returns a company page's public details: description, website, industry, size, headquarters, specialties and follower count. The company_posts endpoint returns the page's own posts, newest first. Run either on a schedule and keep each row to track a company over time.

Which endpoint should I use?

You want Endpoint
A member's profile profile, with the profile URL slug.
What a member posted lately posts, with the slug and a limit.
One post in full post, with the post ID.
Who commented on a post comments, with the post ID and a limit.
A company page company, with the company slug.
What a company posted lately company_posts, with the company slug and a limit.
People, companies, posts or jobs matching a keyword search, with the keyword, a type and a limit.

What can SocialHolmes return for LinkedIn?

LinkedIn

Public endpoints: 7

Endpoint What it returns Takes
profile A member's full public profile - headline, location, about, every position, education, skills, recommendations, honors, publications, featured items and follower count. No email or phone number. public_id
posts A member's recent posts and activity, newest first, with text, reaction and comment counts. public_id
post One post - author, body text, reaction and comment counts, and when it was published. activity_id
comments Comments on one post, replies included, with each commenter and reaction count. activity_id
company A company page - name, description, website, industry, size, headquarters, type, specialties, followers, logo, cover and open jobs. company_id
company_posts A company page's own posts, newest first, with text and reaction counts. company_id
search Search LinkedIn for people, companies, posts or jobs. Results come from the place you name, or the United States when you name none (a people search with a `current_company` and no place is not limited to a place). Names can be hidden by LinkedIn ("LinkedIn Member", flagged name_hidden). query

What SocialHolmes costs

$2.50 per 1,000 results (5 credits per result) on every LinkedIn endpoint. No partner application, no subscription and no monthly minimum. The `limit` you set is the most a run can bill. New accounts get 1,000 free credits (200 LinkedIn results).

Questions people ask

Does LinkedIn have a public API?

For signing members in and posting on their behalf, yes. Reading other members' profiles, posts and comments is limited to approved partners.

Can I get a LinkedIn profile with an API?

Not another member's, through LinkedIn's own API, without partner approval. Here the profile endpoint returns any public profile's headline, location, about, positions, education and skills, but no contact details.

Can I get comments on a LinkedIn post with an API?

Yes, here. Send the post ID and a limit to the comments endpoint and get one row per comment.

Can I get LinkedIn company follower counts?

Yes. The company endpoint returns the follower count with the industry, size and headquarters.

How much does a LinkedIn data API cost?

$2.50 per 1,000 results here (5 credits per result), billed per row returned, with nothing to pay for an empty run.

Posts are published in English only. The rest of the site reads in ten languages; these do not, because a translated archive is one nobody keeps current.

Try it on your own targets

The only comparison that settles anything is your own. A new account gets 1,000 credits, needs no card, and runs on the same endpoints and rate as a paying one.