Skip to main content
POST
/
v1
/
tasks
Add Tasks
curl --request POST \
  --url https://api.lobstr.io/v1/tasks \
  --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 Twitter profiles to scrape by providing their screen names (usernames). Each task will retrieve detailed profile information for the specified user.

Headers

Authorization
string
required
Your API authentication token. Value: Token YOUR_API_KEY
Content-Type
string
required
Request body format. Value: application/json

Request Body

FieldTypeRequiredDescription
squidstringYesHash of your squid configured with the Twitter Profile Scraper
tasksarrayYesArray of task objects, each containing a screen_name field

Task Object

FieldTypeRequiredDescription
screen_namestringYesTwitter username without the @ symbol (e.g., elonmusk)
You can add multiple screen names in a single request to scrape several profiles at once.
The screen_name should not include the @ symbol - use elonmusk not @elonmusk.

Code Examples

curl -X POST "https://api.lobstr.io/v1/tasks" \
  -H "Authorization: Token YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tasks": [
      {
        "screen_name": "elonmusk"
      }
    ],
    "squid": "YOUR_SQUID_HASH"
  }'

Response

200
{
  "duplicated_count": 0,
  "tasks": [
    {
      "id": "0b1e3fd36e8249ec03220fb04b7fc71c",
      "created_at": "2025-07-04T04:52:45.180627",
      "is_active": true,
      "params": {
        "screen_name": "elonmusk"
      },
      "module": 167,
      "object": "task"
    }
  ]
}