Skip to main content

Get dataset for last run

GET 

/v2/acts/:actorId/runs/last/dataset

Returns the default dataset of the last Actor run. Redispatches to Get dataset.

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

    actorId string required

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


    Example: janedoe~my-actor

Query Parameters

    status string

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


    Example: SUCCEEDED

Status 200

Response Headers
    {
    "data": {
    "id": "WkzbQMuFYuamGv3YF",
    "name": "d7b9MDYsbtX5L7XAj",
    "userId": "wRsJZtadYvn4mBZmm",
    "createdAt": "2019-12-12T07:34:14.202Z",
    "modifiedAt": "2019-12-13T08:36:13.202Z",
    "accessedAt": "2019-12-14T08:36:13.202Z",
    "itemCount": 7,
    "cleanItemCount": 5,
    "actId": "string",
    "actRunId": "string",
    "fields": "Unknown Type: array,null",
    "schema": {
    "actorSpecification": 1,
    "title": "My dataset",
    "views": {
    "overview": {
    "title": "Overview",
    "transformation": {
    "fields": [
    "linkUrl"
    ]
    },
    "display": {
    "component": "table",
    "properties": {
    "linkUrl": {
    "label": "Link URL",
    "format": "link"
    }
    }
    }
    }
    }
    },
    "consoleUrl": "https://console.apify.com/storage/datasets/27TmTznX9YPeAYhkC",
    "itemsPublicUrl": "https://api.apify.com/v2/datasets/WkzbQMuFYuamGv3YF/items?signature=abc123",
    "urlSigningSecretKey": "string",
    "generalAccess": "RESTRICTED",
    "stats": {
    "readCount": 22,
    "writeCount": 3,
    "storageBytes": 783
    }
    }
    }