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 Facebook Pages search URLs to scrape business pages. The scraper extracts page information including contact details, follower counts, and social links.

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 Facebook Pages Search Export crawler
tasksarrayYesArray of task objects, each containing a url field

Task Object

FieldTypeRequiredDescription
urlstringYesFacebook Pages search URL (e.g., https://www.facebook.com/search/pages?q=coffee%20shop)
Perform your search on Facebook first, then copy the URL to preserve all search parameters.
Facebook Pages search URLs follow the format: https://www.facebook.com/search/pages?q=YOUR_SEARCH_QUERY where the query should be URL-encoded.

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.facebook.com/search/pages?q=coffee%20shop"
      }
    ]
  }'

Response

200
{
  "duplicated_count": 0,
  "tasks": [
    {
      "id": "82367f24d9450b2222080eed91662968",
      "created_at": "2025-07-17T09:06:47.287893",
      "is_active": true,
      "params": {
        "url": "https://www.facebook.com/search/pages?q=coffee%20shop"
      },
      "module": 115,
      "object": "task"
    }
  ]
}