Skip to content
Examples

Add Tasks

Add LinkedIn Sales Navigator search URLs to scrape lead profiles

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/v1/tasks

Add LinkedIn Sales Navigator search URLs to scrape lead profiles. This scraper requires a linked Sales Navigator account to access the data.

Copy the search URL directly from Sales Navigator after applying your filters (company size, seniority level, industry, location, etc.). The scraper will paginate through the search results automatically.

Crawler ID: a1d243d3824a1ac773414416eb80362d

Headers

Authorizationstringheaderrequired

Your API authentication token. Value: Token YOUR_API_KEY

Content-Typestringheaderrequired

Request body format. Value: application/json

Request Body

Field Type Required Description
squid string Yes Hash of your squid configured with the Sales Navigator Leads Scraper crawler
tasks array Yes Array of task objects, each containing a url field

Task Object

Field Type Required Description
url string Yes Sales Navigator people search URL (e.g., https://www.linkedin.com/sales/search/people?query=...)

Apply filters in Sales Navigator first, then copy the URL. All filter parameters will be preserved.

This scraper requires a linked Sales Navigator account. Ensure your account is properly connected before running.

You can use saved searches in Sales Navigator and copy their URLs as tasks.

Code Examples

curl -X POST "https://api.lobstr.io/v1/tasks" \
  -H "Authorization: Token YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "squid": "YOUR_SQUID_HASH",
    "tasks": [
      {
        "url": "https://www.linkedin.com/sales/search/people?query=(filters:List((type:SENIORITY_LEVEL,values:List((id:300,text:Vice%20President)))))"
      }
    ]
  }'

Response

200
{
  "duplicated_count": 0,
  "tasks": [
    {
      "id": "1995ef75ed06f21b514298b31caa8139",
      "created_at": "2025-07-07T10:04:54.651445",
      "is_active": true,
      "params": {
        "url": "https://www.linkedin.com/sales/search/people?query=(filters:List((type:SENIORITY_LEVEL,values:List((id:300,text:Vice%20President)))))"
      },
      "module": 2,
      "object": "task"
    }
  ]
}