Requests written in the earlier format, with publisher_key, scrape_type and params at the top level, keep working while you move over. You can switch one integration at a time.

What changes

You keep calling POST /api/v1/request-data with your API key in the body. Only the request body changes.
Change tracking carries over. The first run in the new format is compared with your last run in the earlier one, so new, changed, unchanged and removed stay correct.

The steps

1

Keep the request's own fields

api_key and external_request_id stay where they are, inside data.
2

Remove the top-level publisher fields

Remove publisher_key, scrape_type and params.
3

Add a publishers map

Use the old publisher_key as the key of an entry, for example aquis.eu. Put scrape_type inside it.
4

Move the scope

Move whatever was under params.scope into the entry’s scope, unchanged. Your scope keys (categories, documents and so on) are still accepted.
5

Read the task ids from tasks

Each entry is one task. Read each id from tasks[].task_id.

Before and after

Before:
Now:
The response, from a live run:

Do not keep params in an entry

An entry takes scrape_type, scope, limit, listing_only, options, include and output. A leftover params is refused, not ignored:

Collecting the result

Nothing changes. Wait for the webhook, or poll retrieve-data with the same external_request_id, the publisher key and the entry’s scrape_type.

Checklist

  • Request body built with a publishers map, one entry per publisher.
  • params.scope moved into each entry’s scope, unchanged. No params left in an entry.
  • Task ids read from tasks[].task_id.
  • One test request sent, and its webhook or retrieve-data result checked.
  • Scheduled jobs and scripts switched over.
The earlier format will be retired later. We will confirm the date with you in advance.