Webhooks
Webhook delivery is on the roadmap.
Signed callbacks that deliver a run’s result to your endpoint, with retries. Not built yet. Today every POST /v1/run call returns its result in the same HTTP response.
Not available yet. There is no script for Webhooks in the API today. Nothing on this page can be called until it ships.
Live today
Live today: synchronous result
Every scraper runs through POST /v1/run with your key in the x-api-key header.
In the response, values in <angle brackets> stand for real data and arrays are shortened to one item.
curl -X POST https://api.datafor.dev/v1/run \
-H "Content-Type: application/json" \
-H "x-api-key: $DATAFOR_API_KEY" \
-d '{
"script_name": "url_scraper",
"params": {
"url": "https://example.com",
"formats": "markdown"
}
}'Planned scope
What we plan to build.
Items marked “Coming soon” are plans, not commitments. Scope and timing may change.
Synchronous results
LiveLive today: the response to POST /v1/run carries the result, so no callback is needed.
Callback on completion
Coming soonPOST the result to your URL when a run finishes.
Signed payloads
Coming soonVerify that a delivery came from Datafor.
Retries and delivery log
Coming soonAutomatic retries when your endpoint is down.
Credits
How credits work.
Pricing is not set. Synchronous runs cost the script’s normal price.
Each run is charged when it starts. If the worker fails or times out, the credit is refunded automatically and the run is marked as refunded. Every response shows the cost and your remaining balance.
See pricingFAQ
Questions about Webhooks.
How long can a synchronous call take?
It depends on the script: timeouts range from 60 seconds (Trendyol product detail) to 180 seconds (Amazon search). Set your HTTP client timeout accordingly.
When will webhooks ship?
There is no date yet. Tell us about your use case at hello@datafor.dev.
Related
Other products.
Webhooks isn’t live yet. These are.
SERP, Keyword Planner, URL Scraper and the e-commerce scrapers work today.