Run Apify Actor
type: "io.kestra.plugin.apify.actor.Run"Examples
Save dataset with given id as temp file.
 id: run_actor
 namespace: company.team
 tasks:
   - id: run_actor
     type: io.kestra.plugin.apify.actor.Run
     actorId: GdWCkxBtKWOsKjdch
     maxItems: 1
     apiToken: "{{ secret('APIFY_API_TOKEN') }}"
     input:
       excludePinnedPosts: false
       hashtags: ["fyp"]
       resultsPerPage: 2
Properties
actorId *Requiredstring
Actor ID
Actor ID or a tilde-separated owner's username and Actor name.
apiToken *Requiredstring
Apify API token
Api Token for Apify. You can find it in your Apify account settings.
build string
Build
Specifies the Actor build to run. It can be either a build tag or build number. By default, the run uses the build specified in the default run configuration for the Actor (typically latest).
input object
Input
Input for the Actor run. The input is optional and can be used to pass data to the Actor.If no value is provided then the Actor will run with default run configuration for the Actor.
maxItems integerstring
Max items
The maximum number of items that the Actor run should return. This is useful for pay-per-result Actors, as it allows you to limit the number of results that will be charged to your subscription.
maxTotalChargeUsd numberstring
Max total charge USD
Specifies the maximum cost of the Actor run. This parameter is useful for pay-per-event Actors, as it allows you to limit the amount charged to your subscription.
memory numberstring
Memory
Memory limit for the run, in megabytes. The amount of memory can be set to a power of 2 with a minimum of 128. By default, the run uses a memory limit specified in the default run configuration for the Actor.
options Non-dynamicHttpConfiguration
The HTTP client configuration.
requestTimeout numberstring
Timeout
Optional timeout for the run, in seconds. By default, the run uses a timeout specified in the default run configuration for the Actor.
waitForFinish numberstring
Wait for finish
The maximum number of seconds the server waits for the run to finish. By default, it is 0, the maximum value is 60. If the run finishes in time then the returned run object will have a terminal status (e.g. SUCCEEDED), otherwise it will have a transitional status (e.g. RUNNING).
webhooks string
Webhooks
Specifies optional webhooks associated with the Actor run, which can be used to receive a notification e.g. when the Actor finished or failed. The value is a Base64-encoded JSON array of objects defining the webhooks.
Outputs
actId string
actorTaskId string
buildId string
buildNumber string
chargedEventCounts object
containerUrl string
defaultDatasetId string
defaultKeyValueStoreId string
defaultRequestQueueId string
exitCode number
finishedAt string
generalAccess string
FOLLOW_USER_SETTINGRESTRICTEDANYONE_WITH_ID_CAN_READgitBranchName string
id string
isContainerServerReady boolean
meta ActorRunMeta
options ActorRunOptions
pricingInfo PricePerEventActorPricingInfoPricePerDatasetItemActorPricingInfoFlatPricePerMonthActorPricingInfoFreeActorPricingInfo
startedAt string
stats ActorRunStats
status string
READYRUNNINGSUCCEEDEDFAILEDTIMING_OUTTIMED_OUTABORTINGABORTEDstatusMessage string
usage ActorRunUsage
usageTotalUsd string
usageUsd ActorRunUsage
userId string
Definitions
io.kestra.core.http.client.configurations.TimeoutConfiguration
connectTimeout string
durationThe time allowed to establish a connection to the server before failing.
readIdleTimeout string
PT5MdurationThe time allowed for a read connection to remain idle before closing it.
io.kestra.plugin.apify.actor.pricinginfo.FreeActorPricingInfo
apifyMarginPercentage number
createdAt string
notifiedAboutChangeAt string
notifiedAboutFutureChangeAt string
pricingModel string
reasonForChange string
startedAt string
io.kestra.core.http.client.configurations.BasicAuthConfiguration
type *Requiredobject
password string
The password for HTTP basic authentication.
username string
The username for HTTP basic authentication.
io.kestra.plugin.apify.actor.ActorRunMeta
clientIp string
origin string
userAgent string
io.kestra.core.http.client.configurations.ProxyConfiguration
address string
The address of the proxy server.
password string
The password for proxy authentication.
port integerstring
The port of the proxy server.
type string
DIRECTDIRECTHTTPSOCKSThe type of proxy to use.
username string
The username for proxy authentication.
io.kestra.core.http.client.configurations.SslOptions
insecureTrustAllCertificates booleanstring
Whether to disable checking of the remote SSL certificate.
Only applies if no trust store is configured. Note: This makes the SSL connection insecure and should only be used for testing. If you are using a self-signed certificate, set up a trust store instead.
io.kestra.plugin.apify.actor.pricinginfo.PricePerEventActorPricingInfo
apifyMarginPercentage number
createdAt string
minimalMaxTotalChargeUsd number
notifiedAboutChangeAt string
notifiedAboutFutureChangeAt string
pricingModel string
pricingPerEvent PricingPerEvent
reasonForChange string
startedAt string
java.nio.charset.Charset
io.kestra.core.http.client.configurations.HttpConfiguration
allowFailed booleanstring
falseIf true, allow a failed response code (response code >= 400)
allowedResponseCodes array
List of response code allowed for this request
auth BasicAuthConfigurationBearerAuthConfiguration
The authentification to use.
defaultCharset Charsetstring
UTF-8The default charset for the request.
followRedirects booleanstring
trueWhether redirects should be followed automatically.
logs array
REQUEST_HEADERSREQUEST_BODYRESPONSE_HEADERSRESPONSE_BODYThe enabled log.
proxy ProxyConfiguration
The proxy configuration.
ssl SslOptions
The SSL request options
timeout TimeoutConfiguration
The timeout configuration.
io.kestra.plugin.apify.actor.pricinginfo.ActorChargeEvent
eventDescription string
eventPriceUsd number
eventTitle string
io.kestra.plugin.apify.actor.ActorRunUsage
ACTOR_COMPUTE_UNITS number
DATASET_READS number
DATASET_WRITES number
DATA_TRANSFER_EXTERNAL_GBYTES number
DATA_TRANSFER_INTERNAL_GBYTES number
KEY_VALUE_STORE_LISTS number
KEY_VALUE_STORE_READS number
KEY_VALUE_STORE_WRITES number
PROXY_RESIDENTIAL_TRANSFER_GBYTES number
PROXY_SERPS number
REQUEST_QUEUE_READS number
REQUEST_QUEUE_WRITES number
io.kestra.plugin.apify.actor.ActorRunStats
computeUnits number
cpuAvgUsage number
cpuCurrentUsage number
cpuMaxUsage number
durationMillis number
inputBodyLen number
memAvgBytes number
memCurrentBytes number
memMaxBytes number
metamorph number
netRxBytes number
netTxBytes number
restartCount number
resurrectCount number
runTimeSecs number
io.kestra.plugin.apify.actor.pricinginfo.FlatPricePerMonthActorPricingInfo
apifyMarginPercentage number
createdAt string
notifiedAboutChangeAt string
notifiedAboutFutureChangeAt string
pricePerUnitUsd number
pricingModel string
reasonForChange string
startedAt string
trialMinutes number
io.kestra.plugin.apify.actor.pricinginfo.PricePerDatasetItemActorPricingInfo
apifyMarginPercentage number
createdAt string
notifiedAboutChangeAt string
notifiedAboutFutureChangeAt string
pricePerUnitUsd number
pricingModel string
reasonForChange string
startedAt string
unitName string
io.kestra.plugin.apify.actor.ActorRunOptions
maxTotalChargeUsd number
io.kestra.core.http.client.configurations.BearerAuthConfiguration
type *Requiredobject
token string
The token for bearer token authentication.