Skip to main content

Get build

GET 

/v2/acts/:actorId/builds/:buildId

deprecated

API endpoints related to build of the Actor were moved under new namespace actor-builds. Gets an object that contains all the details about a specific build of an Actor.

By passing the optional waitForFinish parameter the API endpoint will synchronously wait for the build to finish. This is useful to avoid periodic polling when waiting for an Actor build to finish.

This endpoint does not require the authentication token. Instead, calls are authenticated using a hard-to-guess ID of the build. However, if you access the endpoint without the token, certain attributes, such as usageUsd and usageTotalUsd, will be hidden.

Request

Path Parameters

    actorId string required

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


    Example: janedoe~my-actor
    buildId string required

    ID of the build you want to get, found in the build's Info tab.


    Example: soSkq9ekdmfOslopH

Query Parameters

    waitForFinish double

    The maximum number of seconds the server waits for the build to finish. By default it is 0, the maximum value is 60. If the build finishes in time then the returned build object will have a terminal status (e.g. SUCCEEDED), otherwise it will have a transitional status (e.g. RUNNING).


    Example: 60

Status 200

Response Headers
    {
    "data": {
    "id": "HG7ML7M8z78YcAPEB",
    "actId": "janedoe~my-actor",
    "userId": "klmdEpoiojmdEMlk3",
    "startedAt": "2019-11-30T07:34:24.202Z",
    "finishedAt": "2019-12-12T09:30:12.202Z",
    "status": "SUCCEEDED",
    "meta": {
    "origin": "WEB",
    "clientIp": "172.234.12.34",
    "userAgent": "Mozilla/5.0 (iPad)"
    },
    "stats": {
    "durationMillis": 1000,
    "runTimeSecs": 45.718,
    "computeUnits": 0.012699444444444444
    },
    "options": {
    "useCache": false,
    "betaPackages": false,
    "memoryMbytes": 1024,
    "diskMbytes": 2048
    },
    "usage": {
    "ACTOR_COMPUTE_UNITS": 0.08
    },
    "usageTotalUsd": 0.02,
    "usageUsd": {
    "ACTOR_COMPUTE_UNITS": 0.02
    },
    "inputSchema": "{\\n \\\"title\\\": \\\"Schema for ... }",
    "readme": "# Magic Actor\\nThis Actor is magic.",
    "buildNumber": "0.1.1"
    }
    }