Explore and analyze LinkedIn companies — from company profiles and employee directories to job market intelligence and content activity.
This skill provides comprehensive LinkedIn company intelligence using the KeyAPI MCP service. It enables retrieval of company profiles, employee lists, published posts, job listings with advanced filtering, job counts, and individual job details — all through a unified, cache-first workflow.
Use this skill when you need to:
RequirementDetailsKEYAPI_TOKENA valid API token from keyapi.ai. Register at the site to obtain your free token. Set it as an environment variable: export KEYAPI_TOKEN=your_token_hereNode.jsv18 or higherDependenciesRun npm install in the skill directory to install @modelcontextprotocol/sdk
All tool calls in this skill target the KeyAPI LinkedIn MCP server:
text
Server URL : https://mcp.keyapi.ai/linkedin/mcp
Auth Header: Authorization: Bearer $KEYAPI_TOKEN
Setup (one-time):
bash
# 1. Install dependencies
npm install
# 2. Set your API token (get one free at https://keyapi.ai/)
export KEYAPI_TOKEN=your_token_here
# 3. List all available tools to verify the connection
node scripts/run.js --platform linkedin --list-tools
User NeedNode(s)Best ForCompany profile, size, industry, descriptionget_company_profileCompany overview, competitive profilingEmployee directory and headcountget_company_peopleOrg mapping, talent research, key contact discoveryCompany-published posts and contentget_company_postsContent strategy analysis, brand voice auditOpen job listings with filtersget_company_jobsHiring intelligence, role availability, talent demand signalsTotal active job countget_company_job_countGrowth proxy, hiring velocity trackingIndividual job description and requirementsget_job_detailRole qualification analysis, JD benchmarking
Clarify the research objective and map it to one or more nodes. Typical entry points:
get_company_profile with company (name) or company_id.get_company_jobs with filters, then get_job_detail for specific roles.get_company_job_count to track hiring volume over time.get_company_posts with sort_by: "recent" or "top".get_company_people to browse the employee directory.Company Identifier:
companyvs.company_id
get_company_profileaccepts either:
company— the company's URL slug (e.g.,rapidapifromhttps://www.linkedin.com/company/rapidapi). Resolves in a single request.company_id— the numeric internal ID. Usingcompany_idcosts 1 additional internal request.All other company nodes (
get_company_people,get_company_posts,get_company_jobs,get_company_job_count) requirecompany_id. Callget_company_profilefirst with thecompanyslug to obtain thecompany_id.
get_job_detailIdentifier
get_job_detailrequires ajob_id— the numeric ID found in the job listing URL (e.g.,https://www.linkedin.com/jobs/view/1234567890→job_id: "1234567890"). Obtain it fromget_company_jobsresponse data.
Before calling any node, inspect its input schema to confirm required parameters and available filter options:
bash
node scripts/run.js --platform linkedin --schema <tool_name>
# Examples
node scripts/run.js --platform linkedin --schema get_company_profile
node scripts/run.js --platform linkedin --schema get_company_jobs
node scripts/run.js --platform linkedin --schema get_job_detail
Execute tool calls and persist responses to the local cache to avoid redundant API calls.
Calling a tool:
bash
# Single call with pretty output
node scripts/run.js --platform linkedin --tool <tool_name> \
--params '<json_args>' --pretty
# Force fresh data, skip cache
node scripts/run.js --platform linkedin --tool <tool_name> \
--params '<json_args>' --no-cache --pretty
Example — get company profile by slug:
bash
node scripts/run.js --platform linkedin --tool get_company_profile \
--params '{"company":"openai"}' --pretty
Example — get company jobs with filters:
bash
node scripts/run.js --platform linkedin --tool get_company_jobs \
--params '{"company_id":"783611","experience_level":"mid_senior","remote":"remote","job_type":"full_time","page":1}' --pretty
Example — get job detail with skills:
bash
node scripts/run.js --platform linkedin --tool get_job_detail \
--params '{"job_id":"1234567890","include_skills":true}' --pretty
Example — get company posts sorted by recent:
bash
node scripts/run.js --platform linkedin --tool get_company_posts \
--params '{"company_id":"10649600","sort_by":"recent","page":1}' --pretty
Pagination:
EndpointPagination parameterNotesget_company_people, get_company_posts, get_company_jobs``page (int, 1-indexed)Increment page to fetch subsequent resultsget_company_profile, get_company_job_count, get_job_detail—Single-call response
get_company_jobs filter reference:
ParameterOptionsDescriptionsort_by``recent, relevantSort order for job listingsdate_posted``anytime, past_month, past_week, past_24_hoursRecency filterexperience_level``internship, entry_level, associate, mid_senior, director, executiveSeniority filterremote``onsite, remote, hybridWork location typejob_type``full_time, part_time, contract, temporary, volunteer, internship, otherEmployment typeeasy_applyboolean stringFilter for LinkedIn Easy Apply jobsunder_10_applicantsboolean stringFilter for low-competition rolesfair_chance_employerboolean stringFilter for fair chance employers
Cache directory structure:
text
.keyapi-cache/
└── YYYY-MM-DD/
├── get_company_profile/
│ └── {params_hash}.json
├── get_company_people/
│ └── {params_hash}.json
├── get_company_posts/
│ └── {params_hash}.json
├── get_company_jobs/
│ └── {params_hash}.json
├── get_company_job_count/
│ └── {params_hash}.json
└── get_job_detail/
└── {params_hash}.json
Cache-first policy:
Before every API call, check whether a cached result already exists for the given parameters. If a valid cache file exists, load from disk and skip the API call.
After collecting all API responses, produce a structured company intelligence report:
RuleDetailCompany ID resolutionget_company_people, get_company_posts, get_company_jobs, get_company_job_count all require company_id. Call get_company_profile first with the company slug to obtain it.get_company_profile identifierPass company (URL slug) for a single-request lookup. company_id is also accepted but costs 1 additional internal request.get_job_detail ID sourceExtract job_id from the job listing URL or from get_company_jobs response data.get_company_posts sortUse sort_by: "top" for highest-engagement posts; sort_by: "recent" for latest activity.PaginationAll list endpoints use page (1-indexed). No pagination token required.Success checkcode = 0 → success. Any other value → failure. Always check the response code before processing data.Retry on 500If code = 500, retry the identical request up to 3 times with a 2–3 second pause between attempts before reporting the error.Cache firstAlways check the local .keyapi-cache/ directory before issuing a live API call.
CodeMeaningAction0SuccessContinue workflow normally400Bad request — invalid or missing parametersValidate input against the tool schema; ensure company_id is provided where required401Unauthorized — token missing or expiredConfirm KEYAPI_TOKEN is set correctly; visit keyapi.ai to renew403Forbidden — plan quota exceeded or feature restrictedReview plan limits at keyapi.ai404Resource not found — company or job may not existVerify the company slug or company_id; confirm the job listing is still active429Rate limit exceededWait 60 seconds, then retry500Internal server errorRetry up to 3 times with a 2–3 second pause; if it persists, log the full request and response and skip this nodeOther non-0Unexpected errorLog the full response body and surface the error message to the user