Scrape LinkedIn with the LinkedIn API
Fetch LinkedIn data in bulk: profiles, jobs, posts, and search results. Most endpoints return data immediately (no async task).
Use cases
Common automations to pull LinkedIn data and push it into your outbound stack.
- 1) Scheduler
- 2) HTTP (POST) to a LinkedIn endpoint
- 3) Parse JSON
- 4) Map fields → destination
- 1) Trigger (form/CRM row)
- 2) Webhooks by Zapier (POST)
- 3) Formatter / Code step (optional)
- 4) Create/Update in destination
- 1) Import URLs into Clay
- 2) Add API enrichment step
- 3) Map response → columns
- 4) Push to sequences/export
Actions
Run LinkedIn actions via API: send invites, messages, and engage with posts. Use responsibly to avoid account restrictions.
| Part | Field | Type | Notes |
|---|---|---|---|
| Query | api_key | string | Required (legacy) |
| Body | type | string | invite | message | like | comment |
| Body | payload | object | Depends on type |
{
"ok": true,
"type": "invite",
"result": { "...": "..." }
}
- Invites: 10–30/day
- Messages: 20–60/day (depending on account)
- Likes/Comments: keep natural, add delays
- Always add sleep 10–60s between actions
{
"type": "invite",
"payload": {
"profile_url": "https://www.linkedin.com/in/username/",
"message": "Hey! Quick question about your role at {company} — can I connect?"
}
}
{
"type": "message",
"payload": {
"profile_url": "https://www.linkedin.com/in/username/",
"text": "Hey {first_name} — saw your post about {topic}. Quick question: are you open to…"
}
}
{
"type": "like",
"payload": {
"post_url": "https://www.linkedin.com/posts/..."
}
}
{
"type": "comment",
"payload": {
"post_url": "https://www.linkedin.com/posts/...",
"text": "This is solid — especially the point about {insight}. Curious: how do you measure {metric}?"
}
}
Posts
Extract profiles from LinkedIn post engagement lists.
{
"url": "https://www.linkedin.com/posts/.../",
"with_emails": true,
"max": 100,
"page": 1
}
Search URLs
Extract people from LinkedIn search URLs (useful for saved searches and quick exports).
{
"url": "https://www.linkedin.com/search/results/people/?keywords=sales-man",
"with_emails": true,
"max": 100,
"page": 1
}