Skip to main content
POST
/
v2
/
squid
/
{squid_id}
/
task
Add Tasks
curl --request POST \
  --url https://api.lobstr.io/v2/squid/{squid_id}/task \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'

Documentation Index

Fetch the complete documentation index at: https://docs.lobstr.io/llms.txt

Use this file to discover all available pages before exploring further.

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.

Headers

Authorization
string
required
Your API authentication token. Value: Token YOUR_API_KEY
Content-Type
string
required
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

FieldTypeRequiredDescription
post_urlstringYesURL 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"
}