You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 82ee01f
Browse filesBrowse the repository at this point in the historyBrowse files
Most methods named `list` or `list_something` in the Apify client return a <ApiLinkto="class/ListPage">`ListPage`</ApiLink> object. This object provides a consistent interface for working with paginated data and includes the following properties:
20
18
@@ -45,7 +43,7 @@ The <ApiLink to="class/ListPage">`ListPage`</ApiLink> interface offers several k
45
43
46
44
## Generator-based iteration
47
45
48
-
For most use cases, `iterate_items()` is the recommended way to process all items in a dataset. It handles pagination automatically using a Python generator, fetching items in batches behind the scenes so you don't need to manage offsets or limits yourself.
46
+
You can also use the `list` methods directly in iteration. It handles pagination automatically, fetching items in batches behind the scenes so you don't need to manage offsets or limits yourself.
@@ -60,6 +58,4 @@ For most use cases, `iterate_items()` is the recommended way to process all item
60
58
</TabItem>
61
59
</Tabs>
62
60
63
-
`iterate_items()` accepts the same filtering parameters as `list_items()` (`clean`, `fields`, `omit`, `unwind`, `skip_empty`, `skip_hidden`), so you can combine automatic pagination with data filtering.
64
-
65
61
Similarly, `KeyValueStoreClient` provides an `iterate_keys()` method for iterating over all keys in a key-value store without manual pagination.
0 commit comments