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)