Vertopal
API Menu

Get File from Download URL

POST /v1/download/url/get

Gets the file content from the generated URL of the Generate Download URL task.

Request

The example code of this section shows the structure of the Get File from Download URL request. You may see the other request structure keys such as data keys and see how the request is authenticated.
HTTP
cURL
CLI
Python
PHP
POST https://api.vertopal.com/v1/download/url/get
Authorization: Bearer [APP_TOKEN]

data={
    "app": "[APP_ID]",
    "connector": "[CONNECTOR]"
}
curl -L -X POST 'https://api.vertopal.com/v1/download/url/get' \
-H 'Authorization: Bearer [APP_TOKEN]' \
-F 'data={
    "app": "[APP_ID]",
    "connector": "[CONNECTOR]"
}'
vertopal api -v 1 download/url/get \
--app "[APP_ID]" \
--token "[APP_TOKEN]" \
-F data='{
    "app": "%app-id%",
    "connector": "[CONNECTOR]"
}'
from vertopal.api.v1 import API

API.download(
    app="[APP_ID]",
    token="[APP_TOKEN]",
    connector="[CONNECTOR]",
)
use Vertopal\API\Credential;
use Vertopal\API\V1;

require "vendor/autoload.php";

$credential = new Credential("[APP_ID]", "[APP_TOKEN]");

V1::downloadFile($credential, "[CONNECTOR]", "output.jpg")

Response

HTTP Status Codes

OK 200

The task has been executed successfully without any errors.

Loading, Please Wait...