Examples
Update Settings
Configure Threads 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 Threads 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 |
|---|---|---|---|
| sort | string | top | Ranking for keyword/tag searches: top (most relevant) or recent (newest first) |
| include_replies | boolean | false | Only applies to single post URLs — if true, also returns replies |
| fetch_since | string | — | Only collect posts published after this point |
| fetch_since_timezone | string | — | Timezone for interpreting an absolute fetch_since date |
| max_results | integer | — | Max posts per input |
| max_unique_results_per_run | integer | — | Max unique posts across all inputs in the run |
Code Examples
curl -X POST https://api.lobstr.io/v1/squids/7308ae543e6abc70438d6b968d3a1b38 \ -H "Authorization: Token YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "sort": "recent", "include_replies": false, "max_results": 500 }'
Response
201
{"params": {"sort": "recent", "include_replies": false, "max_results": 500}}