Skip to main content
Version: 1.3

ApifyEnv

Parsed representation of the APIFY_XXX environmental variables. This object is returned by the Apify.getEnv() function.

Properties

actorId

Type: string | null

ID of the actor (APIFY_ACTOR_ID)


actorRunId

Type: string | null

ID of the actor run (APIFY_ACTOR_RUN_ID)


actorTaskId

Type: string | null

ID of the actor task (APIFY_ACTOR_TASK_ID)


userId

Type: string | null

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


token

Type: string | null

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


startedAt

Type: Date | null

Date when the actor was started (APIFY_STARTED_AT)


timeoutAt

Type: Date | null

Date when the actor will time out (APIFY_TIMEOUT_AT)


defaultKeyValueStoreId

Type: string | null

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


defaultDatasetId

Type: string | null

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


memoryMbytes

Type: number | null

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