Skip to content
Examples

Add Tasks

Add Instagram profile URLs or usernames to scrape 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 Instagram profiles as tasks to your squid. You can provide either a full profile URL or just the username.

Crawler ID: 5c55ffbf10fbbc7ee63ebb2bcaa332b7

Headers

Authorizationstringheaderrequired

Your API authentication token. Value: Token YOUR_API_KEY

Content-Typestringheaderrequired

Request body format. Value: application/json

Supported Input Formats

Profile URL:

https://www.instagram.com/username/

https://instagram.com/username

Username only:

leomessi

cristiano

Request Body

Field Type Required Description
url string Yes Instagram Profile URL or Username to scrape profile information from

You can use just the username without the full URL - the scraper will resolve it automatically.

Private profiles will return limited data. Only public profile information is accessible.

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 '{
    "url": "https://www.instagram.com/leomessi/"
  }'

Response

200
{
  "id": "task_abc123def456",
  "status": "pending",
  "created_at": "2025-01-15T10:30:00Z",
  "url": "https://www.instagram.com/leomessi/"
}