POST/v1/tasks

Add Tasks

Add Instagram profile URLs, post URLs, or usernames to scrape posts using the Lobstr.io API

Add Instagram profiles or posts as tasks to your squid. The scraper will extract posts, captions, engagement metrics, and metadata from the provided profiles or individual posts.

You can provide a profile URL, a single post/reel URL, or just a username.

Headers

KeyValueRequired
AuthorizationToken YOUR_API_KEYYes
Content-Typeapplication/jsonYes

Request Body

squid
Type:
string
Required:
Yes
Description:
Hash of your squid configured with the Instagram Posts Scraper crawler
tasks
Type:
array
Required:
Yes
Description:
Array of task objects, each containing a `url` field
Pro Tip

Pro Tip

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

Note

When scraping a profile, all public posts will be collected. For single posts, only that specific post data is returned.
Pro Tip

Pro Tip

You can add up to 1000 tasks in a single request for bulk operations.
Note

Note

Duplicate URLs are automatically detected and won't be added twice.