Get dataset items
get-dataset-itemsRetrieve dataset items with pagination, sorting, and field selection. Use dot notation for nested fields and clean to skip empty items.
Instructions
Retrieve dataset items with pagination, sorting, and field selection. For nested fields use dot notation (e.g., fields="metadata.url") — the server auto-flattens parent prefixes. Defaults limit to 20. Use clean=true to skip empty items and hidden fields.
The results will include items along with pagination info (limit, offset) and total count.
USAGE:
Use when you need to read data from a dataset (all items or only selected fields).
USAGE EXAMPLES:
user_input: Get first 20 items from dataset abd123
user_input: Get only metadata.url and title from dataset username~my-dataset
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datasetId | Yes | Dataset ID or username~dataset-name. | |
| clean | No | If true, returns only non-empty items and skips hidden fields (starting with #). Shortcut for skipHidden=true and skipEmpty=true. | |
| offset | No | Number of items to skip at the start. Default is 0. | |
| limit | No | Maximum number of items to return. Defaults to 20. | |
| fields | No | Comma-separated list of fields to include in results. Fields in output are sorted as specified. Use dot notation for nested objects (e.g. "metadata.url"); the server auto-flattens parent prefixes. | |
| omit | No | Comma-separated list of fields to exclude from results. | |
| desc | No | If true, results are returned in reverse order (newest to oldest). | |
| flatten | No | Comma-separated list of fields to flatten (e.g. flatten="metadata" turns {"metadata":{"url":"x"}} into {"metadata.url":"x"}). Normally derived automatically from dot-notation in `fields`; specify only as a diagnostic override. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datasetId | Yes | Dataset ID | |
| apifyConsoleUrl | No | Personalized Apify Console link to the dataset; present only for Console sessions | |
| items | Yes | Dataset items | |
| itemCount | Yes | Number of items returned | |
| totalItemCount | Yes | Total items in dataset | |
| offset | Yes | Offset used for pagination | |
| limit | Yes | Limit used for pagination | |
| summary | Yes | Summary of the result | |
| nextStep | Yes | One follow-up action with tool name |