Firefox New Tab Scraping Webhooks
Set callbackUrl in the submit request body to receive the result via webhook instead of polling. When parsing completes, the cabinet sends a POST request to that URL with the result payload.
Submit with Callback
curl -X POST 'https://app.scrapering.com/api/parsing/v1/mozilla' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"mode": "section",
"locale": "en-US",
"sectionId": "finance",
"callbackUrl": "https://my-server.com/webhook/parsing"
}'Webhook Payload
Make sure your webhook endpoint responds with a
2xxstatus code to acknowledge receipt.
Your endpoint will receive a POST request with the same body as the polling result, plus a scope field. data is { success, data, error }:
{
"status": "ready",
"scope": "mozilla",
"requestId": "b7c1e0a4-6d29-4f83-9a15-2c8e4b6d0f31",
"data": {
"success": true,
"data": { }
},
"respondedAt": "2026-10-02T10:00:03.240Z"
}
| Field | Type | Description |
|---|---|---|
| status | string | Always "ready" |
| scope | string | Scraper of the task: "mozilla" |
| requestId | string | Task ID returned from the submit endpoint |
| data | object | Task result — { success, data, error }, the same data as in the polling result |
| data.success | boolean | Whether the scraping succeeded |
| data.data | object | Feed payload when data.success is true |
| data.error | string | Error message when scraping failed |
| respondedAt | string | ISO 8601 timestamp of completion |
A webhook is sent for successful and failed tasks alike — check data to see whether the task succeeded, see API Status Codes. If your endpoint does not answer with 2xx, the request is retried up to two more times, after 1 and 2 seconds. Cancelled tasks and tasks that time out do not trigger a webhook — use the result endpoint for them.
Next steps
- Creating a task — back to the submit endpoint reference
- Receiving result — polling alternative to webhooks