Upload a file

🚧

IoC scanning and dataset inclusion

Any IoC submitted or queried via the API will be scanned and added to the Google Threat Intelligence dataset, making it accessible to the community. Do not submit or query indicators containing sensitive, confidential, or personally identifiable information (PII).

Upload and analyse a file

📘

File size

If the file to be uploaded is bigger than 32MB, please use the /files/upload_url endpoint instead which admits files up to 650MB.

Quota counts are not impacted if the submitted file is unique and has no prior record in the our database.

Password-Protected Archives and Documents

To upload and scan password-protected archives (.zip, .7z, .rar) or encrypted documents (.pdf, Microsoft Office files), pass the optional password multipart form parameter (a UTF-8 string up to 128 characters).

Google TI uses the supplied password to:

  • Decrypt the archive and extract all inner files, indexing them under the bundled_files relationship.
  • Analyze encrypted archives and documents in supported dynamic analysis sandboxes.
curl --request POST \
     --url https://www.virustotal.com/api/v3/files \
     --header "x-apikey: YOUR_API_KEY" \
     --header "accept: application/json" \
     --header "content-type: multipart/form-data" \
     --form "file=@/path/to/archive.zip" \
     --form "password=infected"
Body Params

File to scan

file
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 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