A run is asynchronous
A scrape is not a request that returns data. It is a job you submit and collect later.Requests and tasks
One request can cover several publishers. Itspublishers map has one entry per publisher, and each entry becomes one task with its own task_id.
The ids
Repeating an id
reviews: every request starts a new run, even with the sameexternal_request_id.retrieve-dataanswers with the newest one. Use a new id per run, for example the business and the date.- Every other type: sending the same
external_request_idagain while the first run is still going returns the existing task, with"duplicate": true. No second run starts. Once that run has finished, the same id starts a new one.
The states of a task
state says whether the run finished. outcome_code says what it found.
Strict requests
Unknown fields are refused. A field an entry or its scope does not take, such as a misspeltcategoriez, is a 422 naming it, and no task is created. A typo never turns into a run that quietly ignores it.
