Skip to content
Coming soon

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

    Live

    Live today: the response to POST /v1/run carries the result, so no callback is needed.

  • Callback on completion

    Coming soon

    POST the result to your URL when a run finishes.

  • Signed payloads

    Coming soon

    Verify that a delivery came from Datafor.

  • Retries and delivery log

    Coming soon

    Automatic 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 pricing

FAQ

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

Live

URL Scraper

Any URL to Markdown, cleaned HTML, links, images or screenshots.
View product
Live

SERP API

Google organic results plus shopping cards, by country and language.
View product

Webhooks isn’t live yet. These are.

SERP, Keyword Planner, URL Scraper and the e-commerce scrapers work today.