agentleFS
nikhonitnikhonit/social-media-api-skills/skills/linkedin-api/SKILL.md

linkedin-api

Skill3 starsChanged 3 months agoMIT-0View on GitHub

LinkedIn data toolkit via ScraperSocial — profiles and 20 sub-resources, company data, people/company/job search, posts, comments, reactions and ad search.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    You need to send connection requests or InMail: Read-only.

    line 53
  2. Very specific:

    Every script also accepts --limit, --cursor, --fields, --format and --fresh.

    line 113
  3. Distinctive:

    Every response uses the same envelope:

    line 121

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

LinkedIn API skill

Read public LinkedIn data as clean JSON. This LinkedIn API skill is the largest surface in the repo: a profile plus twenty sub-resources — experiences, educations, skills, certifications, publications, patents, recommendations, volunteering and more — alongside company data, funding and insights, people search, company search, job search, post reactions and comment threads, and the LinkedIn ad library.

LinkedIn is the hardest mainstream platform to read programmatically and the one most people want most. Each sub-resource is its own endpoint, so you pay for the slice you need instead of pulling a whole profile to read one field.

This skill wraps 38 live LinkedIn endpoints from the ScraperSocial API. Public data only, returned as clean JSON.

When to use this skill

  • You are enriching a lead or candidate record from a public profile URL or handle.
  • You need one slice of a profile — just the work history, just the skills — rather than everything.
  • You are researching a company: headcount, funding, insights, open jobs, employees, posts.
  • You are sourcing candidates or prospects through people search or job search.
  • You are analysing engagement on a post: reactions, comments and replies.

Do not use this skill when

  • Watch the cost. get_profile.js --section=contact costs 25 credits, the most expensive non-video call here. Full profiles and company records cost 10. Fetch the specific section you need instead of the whole profile.
  • You are compiling personal data at scale. This returns information about real people. GDPR, CCPA and LinkedIn's own terms apply to what you do with it. Have a lawful basis, honour deletion requests, and do not build unsolicited bulk-contact lists where that is restricted.
  • You need to send connection requests or InMail. Read-only.
  • You need private profile fields or anything behind a login. Public data only.
  • A LinkedIn link appears in passing with no question attached.

Setup

export SCRAPERSOCIAL_KEY=sk_live_...   # https://scrapersocial.com/app/keys

Signing up at scrapersocial.com/signup includes 100 free credits, no card required.

Permissions and scope

These scripts do exactly three things and nothing else: read one environment variable (SCRAPERSOCIAL_KEY), send HTTPS requests to https://api.scrapersocial.com (the host is a constant in the code, not configurable), and print JSON. They run as node scripts/<name>.js with no other shell use, no file writes and no persistence. call_endpoint.js accepts only the 38 documented /v1/linkedin/ paths in the table below and refuses anything else before a request is made.

Scripts

ScriptWhat it doesInputCredits
get_profile.jsPublic profile data for a LinkedIn member: headline, positions, education.urlhandle10 credits (25 with include_email=true)
get_profile.js --section=aboutGet LinkedIn profile about.urlhandle5 credits
get_profile.js --section=certificationsGet LinkedIn profile certifications.urlhandle5 credits
get_profile.js --section=commentsList LinkedIn profile comments.urlhandle5 credits per comment
get_profile.js --section=contactGet LinkedIn profile contact.urlhandle25 credits
get_profile.js --section=coursesGet LinkedIn profile courses.urlhandle5 credits
get_profile.js --section=educationsGet LinkedIn profile educations.urlhandle5 credits
get_profile.js --section=experiencesGet LinkedIn profile experiences.urlhandle5 credits
get_profile.js --section=fullGet LinkedIn profile full.urlhandle10 credits
get_profile.js --section=honorsGet LinkedIn profile honors.urlhandle5 credits
get_profile.js --section=languagesGet LinkedIn profile languages.urlhandle5 credits
get_profile.js --section=patentsGet LinkedIn profile patents.urlhandle5 credits
get_profile.js --section=postsList LinkedIn profile posts.urlhandle5 credits per post
get_profile.js --section=projectsGet LinkedIn profile projects.urlhandle5 credits
get_profile.js --section=publicationsGet LinkedIn profile publications.urlhandle5 credits
get_profile.js --section=reactionsList LinkedIn profile reactions.urlhandle5 credits per reaction
get_profile.js --section=recommendationsGet LinkedIn profile recommendations.urlhandle5 credits
get_profile.js --section=similarGet LinkedIn profile similar.urlhandle5 credits
get_profile.js --section=skillsGet LinkedIn profile skills.urlhandle5 credits
get_profile.js --section=statsGet LinkedIn profile stats.urlhandle5 credits
get_profile.js --section=volunteersGet LinkedIn profile volunteers.urlhandle5 credits
get_company.jsCompany page data: industry, size, followers and description.urlhandle10 credits
get_company.js --section=fundingGet LinkedIn company funding.urlhandle10 credits
get_company.js --section=insightsGet LinkedIn company insights.urlhandle10 credits
get_company.js --section=jobsList LinkedIn company jobs.urlhandle5 credits per job
get_company.js --section=peopleList LinkedIn company people.urlhandle5 credits per profile
get_company.js --section=postsLatest posts from a LinkedIn company page with per-post metrics.urlhandle5 credits per post
get_company.js --section=searchList LinkedIn company search.query5 credits per company
get_post.js --section=comment-repliesList LinkedIn post comment replies.url5 credits per comment
get_post.js --section=reactionsList LinkedIn post reactions.url5 credits per reaction
people_search.jsSearch public LinkedIn profiles by keyword, title, company or location.query5 credits per profile
people_search.js --section=by-nameList LinkedIn people search by name.query5 credits per profile
people_search.js --section=by-servicesList LinkedIn people search by services.query5 credits per profile
job_search.jsList LinkedIn job search.query5 credits per job
ads_search.jsList LinkedIn ads search.query5 credits per ad
get_comments.jsPaginated comments on a LinkedIn post; charged per comment returned.url5 credits per comment
search.jsKeyword search over public LinkedIn posts.query5 credits per result
get_stats.jsReactions, comments and reposts for a LinkedIn post.url5 credits
call_endpoint.jsCall any /v1/linkedin/ endpoint directlypath + paramsvaries

Every script also accepts --limit, --cursor, --fields, --format and --fresh. --limit is clamped to 50: above that the API returns an async job instead of data.

Example

node skills/linkedin-api/scripts/people_search.js "product manager fintech"

Every response uses the same envelope:

{ "data": {}, "meta": { "count": 20, "next_cursor": "..." }, "request_id": "a18e4ef88ad4b00b" }

meta appears on paginated endpoints only. Keep request_id — support traces calls with it.

Endpoints

EndpointInputReturnsCreditsPaginated
/v1/linkedin/ads-searchqueryad5 credits per adyes
/v1/linkedin/commentsurlcomment5 credits per commentyes
/v1/linkedin/companyurlhandlecompany10 creditsno
/v1/linkedin/company-fundingurlhandlecompany10 creditsno
/v1/linkedin/company-insightsurlhandlecompany10 creditsno
/v1/linkedin/company-jobsurlhandlejob5 credits per jobyes
/v1/linkedin/company-peopleurlhandleprofile5 credits per profileyes
/v1/linkedin/company-postsurlhandlepost5 credits per postyes
/v1/linkedin/company-searchquerycompany5 credits per companyyes
/v1/linkedin/job-searchqueryjob5 credits per jobyes
/v1/linkedin/people-searchqueryprofile5 credits per profileyes
/v1/linkedin/people-search-by-namequeryprofile5 credits per profileyes
/v1/linkedin/people-search-by-servicesqueryprofile5 credits per profileyes
/v1/linkedin/post-comment-repliesurlcomment5 credits per commentyes
/v1/linkedin/post-reactionsurlreaction5 credits per reactionyes
/v1/linkedin/profileurlhandleprofile10 credits (25 with include_email=true)no
/v1/linkedin/profile-abouturlhandleprofile5 creditsno
/v1/linkedin/profile-certificationsurlhandleprofile5 creditsno
/v1/linkedin/profile-commentsurlhandlecomment5 credits per commentyes
/v1/linkedin/profile-contacturlhandleprofile25 creditsno
/v1/linkedin/profile-coursesurlhandleprofile5 creditsno
/v1/linkedin/profile-educationsurlhandleprofile5 creditsno
/v1/linkedin/profile-experiencesurlhandleprofile5 creditsno
/v1/linkedin/profile-fullurlhandleprofile10 creditsno
/v1/linkedin/profile-honorsurlhandleprofile5 creditsno
/v1/linkedin/profile-languagesurlhandleprofile5 creditsno
/v1/linkedin/profile-patentsurlhandleprofile5 creditsno
/v1/linkedin/profile-postsurlhandlepost5 credits per postyes
/v1/linkedin/profile-projectsurlhandleprofile5 creditsno
/v1/linkedin/profile-publicationsurlhandleprofile5 creditsno
/v1/linkedin/profile-reactionsurlhandlereaction5 credits per reactionyes
/v1/linkedin/profile-recommendationsurlhandleprofile5 creditsno
/v1/linkedin/profile-similarurlhandleprofile5 creditsno
/v1/linkedin/profile-skillsurlhandleprofile5 creditsno
/v1/linkedin/profile-statsurlhandleprofile5 creditsno
/v1/linkedin/profile-volunteersurlhandleprofile5 creditsno
/v1/linkedin/searchqueryresult5 credits per resultyes
/v1/linkedin/statsurlpost5 creditsno

Costs shown per item for paginated endpoints, per call otherwise. Failed calls are not charged.

FAQ

How do I get a LinkedIn profile as JSON?

get_profile.js with the profile URL or handle returns the core profile for 10 credits; --section=full returns the expanded record. For one slice, use the matching section — --section=experiences, --section=skills, --section=educations and so on.

How do I get someone's contact details?

get_profile.js --section=contact returns the contact record for 25 credits. Separately, the default get_profile.js accepts --include_email, which adds the email to the base profile and reprices that call from 10 credits to 25. --include_email applies only to the default section; it is not accepted anywhere else. Only pull either with a lawful basis for processing that person's data.

Can I search LinkedIn for people, companies or jobs?

Yes: people_search.js (with --section=by-name or --section=by-services), get_company.js --section=search, and job_search.js. Each costs 5 credits per result returned.

How do I get company data?

get_company.js returns the company for 10 credits. Sections cover funding, insights, jobs, people and posts.

Is this an official LinkedIn API?

No. ScraperSocial is independent and not affiliated with LinkedIn or Microsoft. It returns publicly available data only. LinkedIn's own Marketing and Talent APIs are the sanctioned route for partner use cases.

Links

Disclaimer

ScraperSocial is an independent product and is not affiliated with, endorsed by, or sponsored by any platform named in this repository. All product names, logos and brands are property of their respective owners. These skills return only publicly available data.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.