Get version
GEThttps://api.apify.com/v2/acts/:actorId/versions/:versionNumber
ClientsGets a Version object that contains all the details about a specific version of an Actor.
Request
Path Parameters
actorId stringrequired
Actor ID or a tilde-separated owner's username and Actor name.
versionNumber stringrequired
Actor major and minor version of the Actor.
Responses
- 200
Response Headers
- application/json
- Schema
- Example (auto)
Schema
data objectrequired
{
"data": {
"versionNumber": "0.0",
"envVars": [
{
"name": "MY_ENV_VAR",
"value": "my-value",
"isSecret": false
}
],
"applyEnvVarsToBuild": false,
"buildTag": "latest",
"sourceFiles": [
{
"format": "TEXT",
"content": "console.log('This is the main.js file');",
"name": "src/main.js"
},
{
"name": "src/placeholder",
"folder": true
}
]
}
}
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' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>'
ResponseClear