Skip to main content
Version: 3.0

ApifyEnv

Parsed representation of the APIFY_XXX environmental variables. This object is returned by the Actor.getEnv function.

Index

Properties

actorId

actorId: null | string

ID of the actor (APIFY_ACTOR_ID)

actorRunId

actorRunId: null | string

ID of the actor run (APIFY_ACTOR_RUN_ID)

actorTaskId

actorTaskId: null | string

ID of the actor task (APIFY_ACTOR_TASK_ID)

defaultDatasetId

defaultDatasetId: null | string

ID of the dataset where input and output data of this actor is stored (APIFY_DEFAULT_DATASET_ID)

defaultKeyValueStoreId

defaultKeyValueStoreId: null | string

ID of the key-value store where input and output data of this actor is stored (APIFY_DEFAULT_KEY_VALUE_STORE_ID)

memoryMbytes

memoryMbytes: null | number

Amount of memory allocated for the actor, in megabytes (APIFY_MEMORY_MBYTES)

startedAt

startedAt: null | Date

Date when the actor was started (APIFY_STARTED_AT)

timeoutAt

timeoutAt: null | Date

Date when the actor will time out (APIFY_TIMEOUT_AT)

token

token: null | string

Authentication token representing privileges given to the actor run, it can be passed to various Apify APIs (APIFY_TOKEN)

userId

userId: null | string

ID of the user who started the actor - note that it might be different than the owner ofthe actor (APIFY_USER_ID)