Examples
Add Tasks
Add keyword-based search tasks to scrape Google Search results
The v1 API, for batchesSquids, tasks and runs: many calls on a schedule, delivered where you work. For one call that answers in seconds, use the API v2.
POST
https://api.lobstr.io/v1/tasksAdd keyword-based tasks to scrape Google Search results. Each task represents a search query that will be executed on Google.
Crawler ID:
f588385d11c48f8af51560e561077238Headers
AuthorizationstringheaderrequiredYour API authentication token. Value: Token YOUR_API_KEY
Content-TypestringheaderrequiredRequest body format. Value: application/json
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| squid | string | Yes | Hash of your squid configured with the google-search-scraper crawler |
| tasks | array | Yes | Array of task objects, each containing a keyword field |
Task Object
| Field | Type | Required | Description |
|---|---|---|---|
| keyword | string | Yes | The search query to execute on Google |
You can add multiple keywords in a single request for bulk searches.
Configure search parameters like country, language, and max_pages in the squid settings.
Code Examples
curl -X POST "https://api.lobstr.io/v1/tasks" \ -H "Authorization: Token YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "tasks": [ {"keyword": "crab"}, {"keyword": "lobster recipes"} ], "squid": "YOUR_SQUID_HASH" }'
Response
200
{ "duplicated_count": 0, "tasks": [ { "id": "36a5f24a550f89c2b997107ca043ec8a", "created_at": "2025-06-30T08:25:29.311114", "is_active": true, "params": { "keyword": "crab" }, "module": 128, "object": "task" } ] }