Pagination, includes and one honest request count
10 min
Two knobs decide how many requests a build makes: page size and include depth.
Cursors over offsets
The delivery API returns a nextCursor. Loop until it is null and you have walked the
collection exactly once, with no risk of skipping or repeating an entry that moved.
Fetch wide, assemble in memory
For a build, fetching each type once and joining the results locally beats fetching per page. Three requests build a hundred pages. The per-page version makes three hundred.