# ApifyEnv<!-- -->

Parsed representation of the Apify environment variables. This object is returned by the [Actor.getEnv](https://docs.apify.com/sdk/js/reference/class/Actor.md#getEnv) function.

## Index[**](#Index)

### Properties

* [**actorBuildId](#actorBuildId)
* [**actorBuildNumber](#actorBuildNumber)
* [**actorEventsWsUrl](#actorEventsWsUrl)
* [**actorId](#actorId)
* [**actorMaxPaidDatasetItems](#actorMaxPaidDatasetItems)
* [**actorPermissionLevel](#actorPermissionLevel)
* [**actorRunId](#actorRunId)
* [**actorTaskId](#actorTaskId)
* [**apiBaseUrl](#apiBaseUrl)
* [**apiPublicBaseUrl](#apiPublicBaseUrl)
* [**chromeExecutablePath](#chromeExecutablePath)
* [**containerPort](#containerPort)
* [**containerUrl](#containerUrl)
* [**dedicatedCpus](#dedicatedCpus)
* [**defaultDatasetId](#defaultDatasetId)
* [**defaultKeyValueStoreId](#defaultKeyValueStoreId)
* [**defaultRequestQueueId](#defaultRequestQueueId)
* [**disableOutdatedWarning](#disableOutdatedWarning)
* [**fact](#fact)
* [**headless](#headless)
* [**inputKey](#inputKey)
* [**inputSecretsPrivateKeyFile](#inputSecretsPrivateKeyFile)
* [**inputSecretsPrivateKeyPassphrase](#inputSecretsPrivateKeyPassphrase)
* [**isAtHome](#isAtHome)
* [**localStorageDir](#localStorageDir)
* [**logFormat](#logFormat)
* [**logLevel](#logLevel)
* [**memoryMbytes](#memoryMbytes)
* [**metaOrigin](#metaOrigin)
* [**proxyHostname](#proxyHostname)
* [**proxyPassword](#proxyPassword)
* [**proxyPort](#proxyPort)
* [**proxyStatusUrl](#proxyStatusUrl)
* [**sdkLatestVersion](#sdkLatestVersion)
* [**startedAt](#startedAt)
* [**systemInfoIntervalMillis](#systemInfoIntervalMillis)
* [**timeoutAt](#timeoutAt)
* [**token](#token)
* [**userId](#userId)
* [**userIsPaying](#userIsPaying)
* [**workflowKey](#workflowKey)

## Properties<!-- -->[**](#Properties)

### [**](#actorBuildId)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L134)actorBuildId

**actorBuildId: null | string

ID of the Actor build used in the run. (ACTOR_BUILD_ID)

### [**](#actorBuildNumber)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L246)actorBuildNumber

**actorBuildNumber: null | string

### [**](#actorEventsWsUrl)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L247)actorEventsWsUrl

**actorEventsWsUrl: null | string

### [**](#actorId)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L119)actorId

**actorId: null | string

ID of the Actor (ACTOR_ID)

### [**](#actorMaxPaidDatasetItems)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L248)actorMaxPaidDatasetItems

**actorMaxPaidDatasetItems: null | number

### [**](#actorPermissionLevel)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L139)actorPermissionLevel

**actorPermissionLevel: null | ACTOR_PERMISSION_LEVEL

[Permission level](https://docs.apify.com/platform/actors/development/permissions) the Actor is run under. (ACTOR_PERMISSION_LEVEL)

### [**](#actorRunId)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L124)actorRunId

**actorRunId: null | string

ID of the Actor run (ACTOR_RUN_ID)

### [**](#actorTaskId)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L129)actorTaskId

**actorTaskId: null | string

ID of the Actor task (ACTOR_TASK_ID)

### [**](#apiBaseUrl)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L209)apiBaseUrl

**apiBaseUrl: null | string

### [**](#apiPublicBaseUrl)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L210)apiPublicBaseUrl

**apiPublicBaseUrl: null | string

### [**](#chromeExecutablePath)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L211)chromeExecutablePath

**chromeExecutablePath: null | string

### [**](#containerPort)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L249)containerPort

**containerPort: null | number

### [**](#containerUrl)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L250)containerUrl

**containerUrl: null | string

### [**](#dedicatedCpus)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L212)dedicatedCpus

**dedicatedCpus: null | string

### [**](#defaultDatasetId)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L178)defaultDatasetId

**defaultDatasetId: null | string

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

### [**](#defaultKeyValueStoreId)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L172)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)

### [**](#defaultRequestQueueId)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L251)defaultRequestQueueId

**defaultRequestQueueId: null | string

### [**](#disableOutdatedWarning)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L213)disableOutdatedWarning

**disableOutdatedWarning: null | 1

### [**](#fact)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L214)fact

**fact: null | string

### [**](#headless)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L190)headless

**headless: null | string

If set to "1", the web browsers inside the Actor should run in headless mode because there is no windowing system available. (APIFY_HEADLESS)

### [**](#inputKey)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L242)inputKey

**inputKey: null | string

The key of the input record in the Actor’s default key-value store (ACTOR_INPUT_KEY)

### [**](#inputSecretsPrivateKeyFile)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L215)inputSecretsPrivateKeyFile

**inputSecretsPrivateKeyFile: null | string

### [**](#inputSecretsPrivateKeyPassphrase)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L216)inputSecretsPrivateKeyPassphrase

**inputSecretsPrivateKeyPassphrase: null | string

### [**](#isAtHome)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L196)isAtHome

**isAtHome: null | string

Is set to "1" if the Actor is running on Apify servers. (APIFY_IS_AT_HOME)

### [**](#localStorageDir)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L224)localStorageDir

**localStorageDir: null | string

Defines the path to a local directory where KeyValueStore, Dataset, and RequestQueue store their data. Typically, it is set to ./storage. If omitted, you should define the APIFY_TOKEN environment variable instead. See more info on combination of this and APIFY_TOKEN [here](https://docs.apify.com/sdk/js/docs/concepts/environment-variables.md#combinations-of-apify_local_storage_dir-and-apify_token)(CRAWLEE_STORAGE_DIR)

### [**](#logFormat)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L231)logFormat

**logFormat: null | string

### [**](#logLevel)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L230)logLevel

**logLevel: null | string

Specifies the minimum log level, which can be one of the following values (in order of severity): DEBUG, INFO, WARNING and ERROR (APIFY_LOG_LEVEL)

### [**](#memoryMbytes)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L184)memoryMbytes

**memoryMbytes: null | number

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

### [**](#metaOrigin)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L237)metaOrigin

**metaOrigin: null | string

Origin for the Actor run, i.e. how it was started. See [here](https://docs.apify.com/platform/actors/running/runs-and-builds#origin) for more details. (APIFY_META_ORIGIN)

### [**](#proxyHostname)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L202)proxyHostname

**proxyHostname: null | string

### [**](#proxyPassword)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L201)proxyPassword

**proxyPassword: null | string

The Apify Proxy password of the user who started the Actor. (APIFY_PROXY_PASSWORD)

### [**](#proxyPort)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L203)proxyPort

**proxyPort: null | string

### [**](#proxyStatusUrl)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L208)proxyStatusUrl

**proxyStatusUrl: null | string

You can visit this page to troubleshoot your proxy connection. (APIFY_PROXY_STATUS_URL)

### [**](#sdkLatestVersion)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L243)sdkLatestVersion

**sdkLatestVersion: null | string

### [**](#startedAt)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L161)startedAt

**startedAt: null | Date

Date when the Actor was started (ACTOR_STARTED_AT)

### [**](#systemInfoIntervalMillis)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L244)systemInfoIntervalMillis

**systemInfoIntervalMillis: null | string

### [**](#timeoutAt)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L166)timeoutAt

**timeoutAt: null | Date

Date when the Actor will time out (ACTOR_TIMEOUT_AT)

### [**](#token)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L156)token

**token: null | string

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

### [**](#userId)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L145)userId

**userId: null | string

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

### [**](#userIsPaying)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L150)userIsPaying

**userIsPaying: null | string

If it is `1`, it means that the user who started the Actor is a paying user. (APIFY_USER_IS_PAYING)

### [**](#workflowKey)[**](https://github.com/apify/apify-sdk-js/blob/1c7a00f44bba808a75a9793059bf83398937c5f2/src/actor.ts#L245)workflowKey

**workflowKey: null | string
