Skip to main content
POST
/
v1
/
tasks
Add Task URLs
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.

Use this format if you already have a direct Google Maps search or place URL. This is best for manual inputs or small-scale targeted searches.

Headers

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

URL Format

Google Maps search URL: https://www.google.com/maps/search/restaurant/@43.3928346,5.2662584,14z The URL contains the search query and coordinates for the search area.

Request Body

FieldTypeRequiredDescription
squidstringYesHash of your squid configured with the google-maps-leads-scraper crawler
tasksarrayYesArray of task objects, each containing a url field
Only the url key is required in each task object.
URLs must match Google Maps search or place format.

Code Examples

curl -X POST "https://api.lobstr.io/v1/tasks" \
  -H "Authorization: Token YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tasks": [
      {
        "url": "https://www.google.com/maps/search/restaurant/@43.3928346,5.2662584,14z"
      }
    ],
    "squid": "YOUR_SQUID_HASH"
  }'

Response

200
{
  "duplicated_count": 0,
  "tasks": [
    {
      "id": "4ed8a673a01ba193cc43476e60abc5c0",
      "created_at": "2025-06-24T11:13:05.720012",
      "is_active": true,
      "params": {
        "url": "https://www.google.com/maps/search/restaurant/@43.3928346,5.2662584,14z"
      },
      "module": 5,
      "object": "task"
    }
  ]
}