使用 LinkdAPI Python SDK 访问 LinkedIn 专业资料和公司数据。当您需要获取个人资料信息、公司数据、职位列表或在 LinkedIn 上搜索人员/职位时使用。该技能将 uv 脚本模式用于具有内联依赖项的临时 Python 脚本。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install linkdapi或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install linkdapi⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/linkdapi/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: linkdapi description: Work with LinkdAPI Python SDK for accessing LinkedIn professional profile and company data. Use when you need to fetch profile information, company data, job listings, or search for people/jobs on LinkedIn. The skill uses uv script pattern for ephemeral Python scripts with inline dependencies. ---
Python SDK for LinkdAPI — professional profile and company data from LinkedIn with enterprise-grade reliability.
> Get your API key: https://linkdapi.com/signup?ref=K_CZJSWF
Use the uv script pattern for ephemeral Python scripts with inline dependencies:
# /// script
# dependencies = [
# "linkdapi",
# ]
# ///
from linkdapi import LinkdAPI
client = LinkdAPI("YOUR_API_KEY")
profile = client.get_profile_overview("ryanroslansky")
print(profile)
Run with:
uv run script.py
This installs dependencies automatically, runs the script, and cleans up — perfect for one-off tasks.
Always start with the uv script block:
# /// script
# dependencies = [
# "linkdapi",
# # Add more if needed (e.g., "rich", "pandas")
# ]
# ///
Get profile overview:
# /// script
# dependencies = ["linkdapi"]
# ///
from linkdapi import LinkdAPI
client = LinkdAPI("YOUR_API_KEY")
profile = client.get_profile_overview("ryanroslansky")
if profile.get('success'):
data = profile['data']
print(f"{data['fullName']} - {data.get('headline', '')}")
print(f"Location: {data.get('location')}")
Get company info:
# /// script
# dependencies = ["linkdapi"]
# ///
from linkdapi import LinkdAPI
client = LinkdAPI("YOUR_API_KEY")
company = client.get_company_info(name="google")
if company.get('success'):
data = company['data']
print(f"{data['name']}")
print(f"Industry: {data.get('industry')}")
print(f"Employees: {data.get('employeeCount', 'N/A')}")
Search jobs:
# /// script
# dependencies = ["linkdapi"]
# ///
from linkdapi import LinkdAPI
client = LinkdAPI("YOUR_API_KEY")
result = client.search_jobs(
keyword="Software Engineer",
location="San Francisco, CA",
time_posted="1week"
)
if result.get('success'):
for job in result['data']['jobs'][:5]:
print(f"{job['title']} at {job['company']}")
Batch profile enrichment (async):
# /// script
# dependencies = ["linkdapi"]
# ///
import asyncio
from linkdapi import AsyncLinkdAPI
async def enrich():
async with AsyncLinkdAPI("YOUR_API_KEY") as api:
profiles = await asyncio.gather(
api.get_profile_overview("ryanroslansky"),
api.get_profile_overview("satyanadella"),
api.get_profile_overview("jeffweiner08")
)
for p in profiles:
if p.get('success'):
print(p['data']['fullName'])
asyncio.run(enrich())
When a user requests LinkedIn data:
"linkdapi", add others if needed)uv runUser: "Get the profile for jeffweiner08"
Agent:
cat > /tmp/linkdapi_query.py << 'EOF'
# /// script
# dependencies = ["linkdapi"]
# ///
from linkdapi import LinkdAPI
import os
client = LinkdAPI(os.getenv("LINKDAPI_API_KEY"))
profile = client.get_profile_overview("jeffweiner08")
if profile.get('success'):
data = profile['data']
print(f"Name: {data['fullname']}")
print(f"Headline: {data.get('headline', 'N/A')}")
print(f"Location: {data.get('location', 'N/A')}")
print(f"Company: {data.get('company', 'N/A')}")
else:
print(f"Error: {profile.get('message')}")
EOF
uv run /tmp/linkdapi_query.py
rm /tmp/linkdapi_query.py
To use LinkdAPI, you'll need an API key. Sign up at:
🔗 https://linkdapi.com/signup?ref=K_CZJSWF
Once registered, you'll get an API key that you can use to authenticate your requests.
Set the API key as an environment variable:
export LINKDAPI_API_KEY="your_api_key_here"
Use it in scripts:
import os
from linkdapi import LinkdAPI
client = LinkdAPI(os.getenv("LINKDAPI_API_KEY"))
get_profile_overview(username) — Basic profile infoget_profile_details(urn) — Detailed profile dataget_contact_info(username) — Email, phone, websitesget_full_profile(username=None, urn=None) — Complete profileget_full_experience(urn) — Work historyget_education(urn) — Education historyget_skills(urn) — Skills & endorsementsget_company_info(company_id=None, name=None) — Company detailscompany_name_lookup(query) — Search by nameget_company_employees_data(company_id) — Employee statsget_company_jobs(company_ids) — Job listingssearch_jobs(keyword, location, ...) — Search job postingsget_job_details(job_id) — Detailed job infosearch_people(keyword, title, company, ...) — Find peoplesearch_companies(keyword, industry, ...) — Find companiessearch_posts(keyword, ...) — Find postsAsyncLinkdAPI for batch operations (40x faster)return_exceptions=True in asyncio.gather() for graceful error handlingasync with) for proper resource cleanupCheck responses and handle errors:
result = client.get_profile_overview("username")
if result.get('success'):
data = result['data']
# Process data
else:
print(f"API Error: {result.get('message')}")
Full API documentation: https://linkdapi.com/docs
安装 领英 API 后,可以对 AI 说这些话来触发它
Help me get started with Linkedin API
Explains what Linkedin API does, walks through the setup, and runs a quick demo based on your current project
Use Linkedin API to work with LinkdAPI Python SDK for accessing LinkedIn professional p...
Invokes Linkedin API with the right parameters and returns the result directly in the conversation
What can I do with Linkedin API in my developer & devops workflow?
Lists the top use cases for Linkedin API, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/linkdapi/ 目录(个人级,所有项目可用),或 .claude/skills/linkdapi/(项目级)。重启 AI 客户端后,用 /linkdapi 主动调用,或让 AI 根据上下文自动发现并使用。
领英 API 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
领英 API 可免费安装使用。请查阅仓库了解许可证信息。
使用 LinkdAPI Python SDK 访问 LinkedIn 专业资料和公司数据。当您需要获取个人资料信息、公司数据、职位列表或在 LinkedIn 上搜索人员/职位时使用。该技能将 uv 脚本模式用于具有内联依赖项的临时 Python 脚本。
领英 API 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Linkedin API
Identifies repetitive steps in your workflow and sets up Linkedin API to handle them automatically