include asks for a dataset per record of the one above it, in the same task. For example: businesses from a search, each business’s reviews, and each review’s author.

Caps

A linked dataset needs a cap:
  • limit: the most records per parent record, for example 50 reviews per business.
  • max_total: the most records for the whole run, for example 100 authors in total.
The response’s tasks[].include shows the caps that apply. A linked dataset sent without max_total shows the ceiling it got:

Linked or nested

Joining on parent

Each linked record carries parent:
  • dataset is the parent’s dataset.
  • key is the field of the parent record that id matches.
  • id is that field’s value. Here, the review whose author_id is 112233445566778899001.
A record linked from several parents in one run is written once.

The result

A task with include sends one webhook for the whole tree, with queue: "GRAPH_DATA":
  • records is how many records the dataset delivered.
  • capped is true when a cap stopped it before the source ran out.
  • task_status is the top dataset’s outcome. A failure in any linked dataset fails the whole task: there is no partial result.
retrieve-data shows the same tree under result.include, each dataset with its own counts, urls and include.