---
title: "Get last task run's dataset items"
method: GET
path: "/v2/actor-tasks/{actorTaskId}/runs/last/dataset/items"
tags: ["Last Actor task run's default dataset"]
---

# Get last task run's dataset items

`GET /v2/actor-tasks/{actorTaskId}/runs/last/dataset/items`

Returns data stored in the default dataset of the last Actor task run in the desired format.

This endpoint is a shortcut that resolves the last task run's `defaultDatasetId` and proxies to the
[Get dataset items](/api/v2/dataset-items-get) endpoint.

## Path parameters

- `actorTaskId` string, required

## Query parameters

- `status` string
- `origin` 'DEVELOPMENT' | 'WEB' | 'API' | 'SCHEDULER' | 'TEST' | 'WEBHOOK' | 'ACTOR' | 'CLI' | 'CI' | 'STANDBY' | 'MCP'
- `format` string
- `clean` boolean
- `offset` number, double
- `limit` number, double
- `fields` string
- `outputFields` string
- `omit` string
- `unwind` string
- `flatten` string
- `desc` boolean
- `attachment` boolean
- `delimiter` string
- `bom` boolean
- `xmlRoot` string
- `xmlRow` string
- `skipHeaderRow` boolean
- `skipHidden` boolean
- `skipEmpty` boolean
- `simplified` boolean
- `view` string
- `skipFailedPages` boolean
- `feedTitle` string
- `feedDescription` string
- `signature` string

## Response `200`

- object[]

## Other responses

- `400` — Bad request - invalid input parameters or request body.
- `401` — Unauthorized - authentication required or invalid token.
- `402` — Payment required - the user has exceeded their usage limit, does not have enough credits, or the request lacks authentication and payment credentials.
- `403` — Forbidden - insufficient permissions to perform this action.
- `404` — Not found - the requested resource does not exist.
- `405` — Method not allowed.
- `429` — Too many requests - rate limit exceeded.

## Changes

- **2026-08-28** `0a98d6a098a4` — 7 warning
  - added the new `cannot-publish-actor-task` enum value to the `error/type` response property for the response status `400`
  - added the new `cannot-publish-actor-task` enum value to the `error/type` response property for the response status `401`
  - added the new `cannot-publish-actor-task` enum value to the `error/type` response property for the response status `402`
  - added the new `cannot-publish-actor-task` enum value to the `error/type` response property for the response status `403`
  - …3 more
- **2026-07-26** `b94a8abdfff1` — 7 warning
  - added the new `cannot-monetize-without-payout-billing-info` enum value to the `error/type` response property for the response status `400`
  - added the new `cannot-monetize-without-payout-billing-info` enum value to the `error/type` response property for the response status `401`
  - added the new `cannot-monetize-without-payout-billing-info` enum value to the `error/type` response property for the response status `402`
  - added the new `cannot-monetize-without-payout-billing-info` enum value to the `error/type` response property for the response status `403`
  - …3 more

[Change history](https://skmtc.dev/apify/apis/apify-api/changes/v2/actor-tasks/:actorTaskId/runs/last/dataset/items/get.md)

---

[API](https://skmtc.dev/apify/apis/apify-api.md) · [All operations](https://skmtc.dev/apify/apis/apify-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apify/apify-api/revisions/0a98d6a098a4/schema)
