Batches
...
Batches API
Batches

Webhook

3min

Webhook

When a Batch has its notification_webhook property set Scale SERP will make an HTTP POST to this URL when the Batch completes and a new Result Set is available.

Note that if no Webhook URL is supplied in the Batch's notification_webhook property Scale SERP will fallback to using the Webhook URL defined on your account profile.

Note that the webhook has a timeout of 5 seconds, your app should ingest the webhook HTTP POST within this timeout. If your app takes longer than 5 seconds to respond the API will terminate the HTTP POST.If a timeout does occur then we won't attempt to call the same webhook url for another 5 minutes, this applies to all Batches that are using the same webhook url.

The body of the Webhook POST contains details of the Batch along with download links for the Result Set. Note that the presence of the json and csv download links in the response JSON depends on whether the Batch has the notification_as_json , notification_as_jsonlines and notification_as_csv properties set.

Here's an example of the body of the Webhook POST :

JSON



Next Steps      List Searches      List Result Sets      Resending a Webhook

Updated 13 Aug 2024
Did this page help you?