Get environment variable
GEThttps://api.apify.com/v2/acts/:actorId/versions/:versionNumber/env-vars/:envVarName
ClientsGets 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
- 200
Response Headers
- application/json
- Schema
- Example (auto)
- Example
Schema
data objectrequired
{
"data": {
"name": "MY_ENV_VAR",
"value": "my-value",
"isSecret": false
}
}
{
"data": {
"name": "MY_ENV_VAR",
"value": "my-value",
"isSecret": false
}
}
Authorization: http
name: httpBearertype: httpscheme: bearerdescription: API authentication token.
- CLI
- JavaScript
- Python
- PHP
- Java
- C
- C#
- Go
- Rust
- Node.js
- Ruby
- PowerShell
- Dart
- Objective-C
- OCaml
- R
- Swift
- Kotlin
- CURL
curl -L 'https://api.apify.com/v2/acts/:actorId/versions/:versionNumber/env-vars/:envVarName' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>'
ResponseClear