Skip to content
Examples

Update Settings

Configure Facebook Comments 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.
POSThttps://api.lobstr.io/v1/squids/{squid_hash}

Configure your Facebook Comments Scraper squid settings.

Headers

Authorizationstringheaderrequired

Your API authentication token. Value: Token YOUR_API_KEY

Content-Typestringheaderrequired

Must be application/json. Value: application/json

Squid Parameters

Parameter Type Default Description
rows integer — Number of rows returned per API page
max_unique_results_per_run integer — Max unique comments across all tasks in the run
max_results integer — Total comments per post (top-level + replies combined)
sort_by string all_comments Comment order: most_relevant or all_comments
include_replies boolean false Also collect replies of every top-level comment
max_replies integer — Max replies collected per top-level comment
fetch_since string — Stop scraping when comments older than this threshold are reached
fetch_since_timezone string — Timezone for fetch_since

Code Examples

curl -X POST https://api.lobstr.io/v1/squids/3cf27be3402dbc529ed0db7d18135e8c \
  -H "Authorization: Token YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "max_results": 500,
    "sort_by": "all_comments",
    "include_replies": true,
    "max_replies": 50
  }'

Response

201
{"params": {"max_results": 500, "sort_by": "all_comments", "include_replies": true, "max_replies": 50}}