Skip to navigation

Read the items an asynchronous run produced

View as Markdown

Relays to https://api.apify.com/v2/datasets/{datasetId}/items, rewriting Authorization to the secret Apify token; a client-sent token query parameter is discarded. Answers with the items the run wrote to its default dataset, in the format the query asks for.

Ownership-gated: the dataset was registered to your account alongside the run that writes to it, and another account’s dataset id answers the same 404 an unknown id answers. The account-wide dataset list is not mounted, and neither is dataset metadata — only the items.

Reading items is never charged: the run it came from is what carries the cost.

Authentication

AuthorizationBearer

Your per-client bearer token — the API key the gateway issued to you. Present it in Authorization: Bearer <token> form. A token that is missing, unknown, or revoked draws a 401. Before the call is sent upstream the token is removed (stripped, or swapped for the upstream’s own credential); it never makes it past the gateway.

Path parameters

datasetIdstringRequired

The dataset, from data.defaultDatasetId of the create that started the run writing to it. Ownership-gated the same way the run is.

Query parameters

formatenumOptional

The serialization of the returned items. Apify defaults to json.

limitintegerOptional>=1
How many items to return.
offsetintegerOptional>=0

How many items to skip before returning any — the other half of paging through a large dataset.

fieldsstringOptional

A comma-separated list of fields to keep on each item; everything else is left out.

cleanbooleanOptional

Return only non-empty items, with each item’s hidden fields dropped.

descbooleanOptional

Return the items newest-first instead of in insertion order.

Response

The items the run wrote to its default dataset, relayed as Apify returned them. Each item’s shape is the actor’s, not the gateway’s. The default serialization is a JSON array; the format parameter selects another.

Errors

401
Unauthorized Error
404
Not Found Error