Skip to content
Examples

Add Tasks

Add LinkedIn post URLs to scrape commenters and likers using the lobstr.io API

The v1 API, for batchesSquids, tasks and runs: many calls on a schedule, delivered where you work. For one call that answers in seconds, use the API v2.
POSThttps://api.lobstr.io/v2/squid/{squid_id}/task

Add LinkedIn post URLs as tasks to your squid. The scraper will extract all users who commented on or reacted to the post, along with their profile information.

This scraper requires a synced LinkedIn account. Link one to your squid before running.
Crawler ID: 8a309e0e0df48511111a9da6382b2ef8

Headers

Authorizationstringheaderrequired

Your API authentication token. Value: Token YOUR_API_KEY

Content-Typestringheaderrequired

Request body format. Value: application/json

URL Format

Use any LinkedIn post URL format:

https://www.linkedin.com/posts/username_post-title-activity-123456789/

https://www.linkedin.com/feed/update/urn:li:activity:123456789/

You can copy the URL directly from any LinkedIn post.

Request Body

Field Type Required Description
post_url string Yes URL of the LinkedIn Post to scrape

Scrape viral posts in your industry to build targeted lead lists from engaged audiences.

The scraper extracts both commenters and likers by default. Use settings to toggle each separately.

Posts from LinkedIn influencers often have high-quality engaged audiences for B2B outreach.

Code Examples

curl -X POST "https://api.lobstr.io/api/v2/squid/YOUR_SQUID_ID/task" \
  -H "Authorization: Token YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "post_url": "https://www.linkedin.com/posts/example_great-post-activity-7403510298726375424-RIMy"
  }'

Response

200
{
  "id": "task_abc123def456",
  "status": "pending",
  "created_at": "2025-01-15T10:30:00Z",
  "post_url": "https://www.linkedin.com/posts/example_great-post-activity-7403510298726375424-RIMy"
}