Examples
Update Settings
Configure Contact Details Scraper settings
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/squids/{squid_hash}Configure your Contact Details Scraper squid settings.
Headers
AuthorizationstringheaderrequiredYour API authentication token. Value: Token YOUR_API_KEY
Content-TypestringheaderrequiredMust be application/json. Value: application/json
Squid Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| rows | integer | — | Number of rows returned per API page |
| max_pages_per_site | integer | 10 | Max pages fetched per website, homepage included |
| follow_contact_pages | boolean | true | Follow contact, about, imprint and legal notice pages from the homepage |
| same_domain_only | boolean | true | Only crawl pages on the same domain |
| max_results | integer | — | Max rows collected per task |
| max_unique_results_per_run | integer | — | Max unique results across all tasks in the run |
Code Examples
curl -X POST https://api.lobstr.io/v1/squids/7d83eacc7b94f14d5ffda28c6d357961 \ -H "Authorization: Token YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "max_pages_per_site": 20, "follow_contact_pages": true, "same_domain_only": true }'
Response
201
{"params": {"max_pages_per_site": 20, "follow_contact_pages": true, "same_domain_only": true}}