Skip to main content

Get dataset items for last run

GET 

/v2/actor-tasks/:actorTaskId/runs/last/dataset/items

Returns items from the default dataset of the last actor task run. Redispatches to Get dataset items. Supports the same query parameters.

Using the status query parameter you can ensure to only get a run with a certain status (e.g. status=SUCCEEDED). Only the most recent run with that status is used.

Request

Path Parameters

    actorTaskId string required

    Task ID or a tilde-separated owner's username and Actor task name.


    Example: janedoe~my-task

Query Parameters

    status string

    Filter for the run status. Only the most recent run with this status is used.


    Example: SUCCEEDED
    format string

    Format of the results, possible values are json, jsonl, csv, html, xlsx, xml and rss.


    Default value: json
    clean boolean

    If true, returns only non-empty items and skips hidden fields.

    offset number

    Number of items that should be skipped at the start.

    limit number

    Maximum number of items to return.

    fields string

    Comma-separated list of fields to include in the results.

    omit string

    Comma-separated list of fields to omit from the results.

    unwind string

    Name of a field to unwind. If the field is an array, each element becomes a separate record.

    flatten string

    Comma-separated list of fields to flatten. Nested objects are merged into the parent.

    desc boolean

    If true, results are returned in descending order.

    attachment boolean

    If true, the response will be returned as a file attachment.

Status 200

Response Headers
    [
    {}
    ]