Get a URL for uploading large files

🚧

Special privileges required

Private Scanning is only available to users with the Google Threat Intelligence Enterprise or Enterprise Plus licenses.

For uploading files smaller than 32MB you can simply use the POST /private/files endpoint, but for larger files you need to obtain a special upload URL first, and then send the POST request to the upload URL instead of sending it to /private/files. The POST request should have the same format expected by the POST /private/files endpoint. Each upload URL can be used only once.

Password-Protected Archives and Documents

For password-protected archives (.zip, .7z, .rar) or encrypted documents larger than 32 MB (up to 650 MB), the optional password parameter (a UTF-8 string up to 128 characters) can be supplied:

  1. Recommended: As a multipart/form-data field when sending the POST request with the file to the returned upload URL (recommended to avoid exposing decryption passwords in URL query strings):

    curl --request POST \
         --url "UPLOAD_URL" \
         --header "x-apikey: YOUR_API_KEY" \
         --form "file=@/path/to/large_archive.zip" \
         --form "password=infected"
  2. As a query parameter (GET ?password=) when requesting the upload URL (also supported):

    curl --request GET \
         --url "https://www.virustotal.com/api/v3/private/files/upload_url?password=infected" \
         --header "x-apikey: YOUR_API_KEY" \
         --header "accept: application/json"

Google TI uses the password to stage extracted inner files privately under bundled_files as files you may choose to analyze, and to analyze encrypted samples in supported private dynamic analysis sandboxes.

Query Params
string

Optional password (up to 128 UTF-8 characters) to decrypt password-protected archives (ZIP, 7z, RAR) and encrypted documents (PDF, Office), extract bundled inner files, and analyze them in supported private dynamic analysis sandboxes.

Headers
string
required

Your API key

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json