Skip to main content
Version: 3.1

ApifyEnv

Parsed representation of the Apify environment variables. This object is returned by the Actor.getEnv function.

Index

Properties

actorId

actorId: null | string

ID of the actor (ACTOR_ID)

actorRunId

actorRunId: null | string

ID of the actor run (ACTOR_RUN_ID)

actorTaskId

actorTaskId: null | string

ID of the actor task (ACTOR_TASK_ID)

defaultDatasetId

defaultDatasetId: null | string

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

defaultKeyValueStoreId

defaultKeyValueStoreId: null | string

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

memoryMbytes

memoryMbytes: null | number

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

startedAt

startedAt: null | Date

Date when the actor was started (ACTOR_STARTED_AT)

timeoutAt

timeoutAt: null | Date

Date when the actor will time out (ACTOR_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)