POST
/v1/tasksAdd Tasks
Add Instagram profile URLs, post URLs, or usernames to scrape posts using the Lobstr.io APIAdd 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
| Key | Value | Required |
|---|---|---|
| Authorization | Token YOUR_API_KEY | Yes |
| Content-Type | application/json | Yes |
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
You can use just the username without the full URL - the scraper will resolve it automatically.
Note
When scraping a profile, all public posts will be collected. For single posts, only that specific post data is returned.
Pro Tip
You can add up to 1000 tasks in a single request for bulk operations.
Note
Duplicate URLs are automatically detected and won't be added twice.