Skip to main content

Get environment variable

GET 

https://api.apify.com/v2/acts/:actorId/versions/:versionNumber/env-vars/:envVarName

ClientsApify API Python Client ReferenceGets a EnvVar object that contains all the details about a specific environment variable of an Actor.

If isSecret is set to true, then value will never be returned.

Request

Path Parameters

    actorId stringrequired

    Actor ID or a tilde-separated owner's username and Actor name.

    versionNumber stringrequired

    Actor version

    envVarName stringrequired

    The name of the environment variable

Responses

Response Headers
    Schema
      data objectrequired
      namestringrequired
      Example: MY_ENV_VAR
      valuestringrequired
      Example: my-value
      isSecretbooleannullable
      Example: false

    Authorization: http

    name: httpBearertype: httpscheme: bearerdescription: API authentication token.
    curl -L 'https://api.apify.com/v2/acts/:actorId/versions/:versionNumber/env-vars/:envVarName' \
    -H 'Accept: application/json' \
    -H 'Authorization: Bearer <token>'
    Request Collapse all
    Base URL
    https://api.apify.com
    Auth
    Parameters
    — pathrequired
    — pathrequired
    — pathrequired
    ResponseClear

    Click the Send API Request button above and see the response here!