Get list of user's Actor builds
GET/v2/actor-builds
Gets a list of all builds for a user. The response is a JSON array of objects, where each object contains basic information about a single build.
The endpoint supports pagination using the limit and offset parameters
and it will not return more than 1000 records.
By default, the records are sorted by the startedAt field in ascending
order. Therefore, you can use pagination to incrementally fetch all builds while
new ones are still being started. To sort the records in descending order, use
the desc=1 parameter.
Request
Query Parameters
Number of items that should be skipped at the start. The default value is 0.
0Maximum number of items to return. The default value as well as the maximum is 1000.
1000If true or 1 then the objects are sorted by the startedAt field in
descending order. By default, they are sorted in ascending order.
trueStatus 200
Response Headers
- X-Apify-Pagination-Offset
The offset of the first item in the current page.
- X-Apify-Pagination-Limit
The maximum number of items returned per page.
- X-Apify-Pagination-Count
The number of items returned in the current page.
- X-Apify-Pagination-Total
The total number of items available.
- X-Apify-Pagination-Desc
Whether the items are sorted in descending order.
{
"data": {
"total": 1,
"offset": 0,
"limit": 1000,
"desc": false,
"count": 1,
"items": [
{
"id": "HG7ML7M8z78YcAPEB",
"actId": "janedoe~my-actor",
"userId": "klmdEpoiojmdEMlk3",
"status": "READY",
"startedAt": "2019-11-30T07:34:24.202Z",
"finishedAt": "2019-12-12T09:30:12.202Z",
"usageTotalUsd": 0.02,
"buildNumber": "0.1.1",
"buildNumberInt": 10000,
"meta": {
"origin": "DEVELOPMENT",
"clientIp": "172.234.12.34",
"userAgent": "Mozilla/5.0 (iPad)",
"githubActionsRunUrl": "https://github.com/apify/my-actor/actions/runs/123456789",
"actorRunId": "HG7ML7M8z78YcAPEB",
"webhookDispatchId": "Zib4xbZsmvZeK55ua"
}
}
]
}
}
Schema
data object required
Common pagination fields for list responses.
- total integer required
The total number of items available across all pages.
Possible values:
Example:>= 01 - offset integer required
The starting position for this page of results.
Possible values:
Example:>= 00 - limit integer required
The maximum number of items returned per page.
Possible values:
Example:>= 11000 - desc boolean required
Whether the results are sorted in descending order.
Example:false - count integer required
The number of items returned in this response.
Possible values:
Example:>= 01 items object[] required
- id string requiredExample:
HG7ML7M8z78YcAPEB - actId stringExample:
janedoe~my-actor - userId stringExample:
klmdEpoiojmdEMlk3 - status ActorJobStatus (string) required
Status of an Actor job (run or build).
Possible values: [
READY,RUNNING,SUCCEEDED,FAILED,TIMING-OUT,TIMED-OUT,ABORTING,ABORTED] - startedAt string<date-time> requiredExample:
2019-11-30T07:34:24.202Z - finishedAt string,null<date-time> nullableExample:
2019-12-12T09:30:12.202Z - usageTotalUsd number
Total cost in USD for this build. Requires authentication token to access.
Example:0.02 - buildNumber string required
Possible values: Value must match regular expression
Example:^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])(\.[1-9][0-9]{0,4})$0.1.1 - buildNumberInt integerExample:
10000 meta object
- origin RunOrigin (string) required
Possible values: [
DEVELOPMENT,WEB,API,SCHEDULER,TEST,WEBHOOK,ACTOR,CLI,CI,STANDBY,MCP,APIFY_AI] - clientIp string
IP address of the client that started the build.
Example:172.234.12.34 - userAgent string
User agent of the client that started the build. Returned only to the Actor owner.
Example:Mozilla/5.0 (iPad) - githubActionsRunUrl string
URL of the GitHub Actions run that started the build. Present only for builds started from CI.
Example:https://github.com/apify/my-actor/actions/runs/123456789 - actorRunId string
ID of the Actor run that started the build. Returned only to the Actor owner.
Example:HG7ML7M8z78YcAPEB - webhookDispatchId string
ID of the webhook dispatch that started the build. Returned only to the Actor owner.
Example:Zib4xbZsmvZeK55ua
- origin RunOrigin (string) required
- id string requiredExample:
- total integer required
Status 400
Bad request - invalid input parameters or request body.
{
"error": {
"type": "invalid-input",
"message": "Invalid input: The request body contains invalid data."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 401
Unauthorized - the authentication token is missing or not valid.
The request doesn't include an API token.
{
"error": {
"type": "token-not-provided",
"message": "Authentication token was not provided"
}
}
The API token isn't valid, or its user no longer exists.
{
"error": {
"type": "user-or-token-not-found",
"message": "User was not found or authentication token is not valid"
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 403
Forbidden - insufficient permissions to perform this action.
{
"error": {
"type": "insufficient-permissions",
"message": "You do not have permission to perform this action."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 405
Method not allowed.
{
"error": {
"type": "method-not-allowed",
"message": "This API end-point can only be accessed using the following HTTP methods: OPTIONS,GET"
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 429
Too many requests - rate limit exceeded.
{
"error": {
"type": "rate-limit-exceeded",
"message": "You have exceeded the rate limit. Please try again later."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)