Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/virustotal:virustotal-ioc-investigation-files-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: VirusTotal API v3 - IoC Investigation IoC Investigation…
version: '3.0'
description: Investigate files, URLs, IP addresses, and domains. Submit and analyse samples, retrieve reports, get comments and votes, view sandbox behaviour, traverse the relationships graph.
contact:
name: VirusTotal / Google Threat Intelligence
url: https://docs.virustotal.com/reference/overview
license:
name: VirusTotal Terms of Service
url: https://www.virustotal.com/gui/terms-of-service
x-generated-from: https://storage.googleapis.com/gtidocresources/guides/GTI_API_v3_openapi_spec_10022025.json
x-last-validated: '2026-05-29'
servers:
- url: https://www.virustotal.com/api/v3
description: VirusTotal / GTI API v3 production.
security:
- VTApiKey: []
tags:
- name: IoC Investigation - Files
description: IoC Investigation - Files
paths:
/files/upload_url:
get:
tags:
- IoC Investigation - Files
deprecated: false
description: 'For uploading files smaller than 32MB you can simply use the POST /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 `/files`. The `POST` request should have the same format expected by the POST /files endpoint. Each upload URL can be used only once.
> 📘 Files larger than 200MBs
>
> Notice that although the actual size limit is 650MBs, files larger than 200MBs tend to be bundles of some sort, (compressed files, ISO images, etc.) in these cases it makes sense to upload the inner individual files instead for several reasons, as an example:
>
> - Engines tend to have performance issues on big files (timeouts, some may not even scan them).
> - Some engines are not able to inspect certain file types whereas they will be able to inspect the inner files if submitted.
> - When scanning a big bundle you lose context on which specific inner file is causing the detection.
```json Example response
{
"data": "http://www.virustotal.com/_ah/upload/AMmfu6b-_DXUeFe36Sb3b0F4B8mH9Nb-CHbRoUNVOPwG/"
}
```'
operationId: filesUploadUrl
parameters: []
responses:
'200':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
security:
- VTApiKey: []
summary: VirusTotal Get a URL for Uploading Large Files
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/files:
post:
tags:
- IoC Investigation - Files
description: '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.'
operationId: filesScan
parameters: []
requestBody:
content:
multipart/form-data:
encoding:
file:
contentType: application/octet-stream
example: /path/to/file
schema:
properties:
file:
format: binary
type: string
password:
description: Optional, password to decompress and scan a file contained in a protected ZIP file.
type: string
type: object
description: File to scan
required: true
responses:
'200':
content:
application/json:
examples:
Result:
value: "{\n \"data\": {\n \"type\": \"analysis\",\n \"id\": \"OTdiYWM4MjI0NGE2ZjhlNTk4NDZmZDY1YTliMWYwYjM6YzlhNzBhNDM1NzlmZjc5M2E2NGI5Mzk0NmJjNjVhOWE6MTczNzYzMjk2MQ==\",\n \"links\": {\n \"self\": \"https://www.virustotal.com/api/v3/private/analyses/OTdiYWM4MjI0NGE2ZjhlNTk4NDZmZDY1YTliMWYwYjM6YzlhNzBhNDM1NzlmZjc5M2E2NGI5Mzk0NmJjNjVhOWE6MTczNzYzMjk2MQ==\"\n }\n }}"
schema:
properties:
data:
properties:
id:
type: string
type:
type: string
links:
properties:
self:
type: string
type: object
type: object
description: The analysis ID. Use [/analyses/<analysis_ID>](ref:analysis) API call to check the analysis status.
'401':
content:
application/json:
examples:
Result:
value: "{\n \"error\": {\n \"code\": \"WrongCredentialsError\",\n \"message\": \"Wrong API key\"\n }}"
schema:
properties:
error:
properties:
code:
type: string
message:
type: string
type: object
type: object
description: If password was provided and the file isn't a ZIP, it contains more than one file, the password is incorrect, or the file is corrupt.
summary: VirusTotal Upload a File
security:
- VTApiKey: []
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/files/{id}:
get:
tags:
- IoC Investigation - Files
deprecated: false
description: Returns a File object.
operationId: fileInfo
parameters:
- description: SHA-256, SHA-1 or MD5 identifying the file
in: path
name: id
required: true
schema:
type: string
- description: The name of your tool or service. This is required to obtain the gti_assesment data
in: header
name: x-tool
required: false
schema:
type: string
responses:
'200':
content:
application/json:
examples:
Result:
value: ''
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
security:
- VTApiKey: []
summary: VirusTotal Get a File Report
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/files/{id}/analyse:
post:
tags:
- IoC Investigation - Files
deprecated: false
description: '> ❗️ Caution
>
> This API endpoint has the potential to produce a denial of service on the scanning infrastructure if abused. Please contact us if you are going to be rescanning more than 50K files per day.
Files that have been already uploaded to Google TI can be re-analysed without uploading them again, you can use this endpoint for that purpose. The response is an object descriptor for the new analysis as in the POST /files endpoint. The ID contained in the descriptor can be used with the GET /analyses/{id} endpoint to get information about the analysis.
```json Example response
{
"data": {
"type": "analysis",
"id": "NjY0MjRlOTFjMDIyYTkyNWM0NjU2NWQzYWNlMzFmZmI6MTQ3NTA0ODI3Nw=="
}
}
```'
operationId: filesAnalyse
parameters:
- description: SHA-256, SHA-1 or MD5 identifying the file
in: path
name: id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
security:
- VTApiKey: []
summary: VirusTotal Request a File Rescan (re-analyze)
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/files/{id}/comments:
get:
tags:
- IoC Investigation - Files
deprecated: false
description: Returns a list of Comment objects.
operationId: filesCommentsGet
parameters:
- description: SHA-256, SHA-1 or MD5 identifying the file
in: path
name: id
required: true
schema:
type: string
- description: Maximum number of comments to retrieve
in: query
name: limit
schema:
default: 10
format: int32
type: integer
- description: Continuation cursor
in: query
name: cursor
schema:
type: string
responses:
'200':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
security:
- VTApiKey: []
summary: VirusTotal Get Comments on a File
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
post:
tags:
- IoC Investigation - Files
deprecated: false
description: 'With this endpoint you can post a comment for a given file. The body for the `POST` request must be the JSON representation of a comment object. Notice however that you don''t need to provide an ID for the object, as they are automatically generated for new comments.
Any word starting with # in your comment''s text will be considered a tag, and added to the comment''s tag attribute.
Returns a Comment object.
```json Example request
{
"data": {
"type": "comment",
"attributes": {
"text": "Lorem #ipsum dolor sit ..."
}
}
}
```'
operationId: filesCommentsPost
parameters:
- description: SHA-256, SHA-1 or MD5 identifying the file
in: path
name: id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
properties:
data:
default: '{"type": "comment", "attributes": {"text": "Lorem ipsum dolor sit ..."}}'
description: A comment object
format: json
type: string
required:
- data
type: object
responses:
'200':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
security:
- VTApiKey: []
summary: VirusTotal Add a Comment to a File
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/files/{id}/download:
get:
tags:
- IoC Investigation - Files
deprecated: false
description: This endpoint is similar to GET /files/{id}/download_url, but it redirects you to the download URL. The download URL you are redirected to can be reused as many times as you want for a period of 1 hour. After that period the URL expires and can't be used anymore.
operationId: filesDownload
parameters:
- description: SHA-256, SHA-1 or MD5 identifying the file
in: path
name: id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
security:
- VTApiKey: []
summary: VirusTotal Download a File
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/files/{id}/download_url:
get:
tags:
- IoC Investigation - Files
deprecated: false
description: 'This endpoint returns a signed URL from where you can download the specified file. Getting the URL counts as a file download in your quota, even if you don''t actually download the file, but once you have the URL you can use it to download the file multiple times without consuming any quota at all. The URL expires after 1 hour.
```json Example response
{
"data": "https://vtsamples.commondatastorage.googleapis.com/275a..fd0f?GoogleAccessId=758681729565-rc7fcckv235v1@developer.gserviceaccount.com&Expires=1524733537&Signature=GRs9WLy...oHA%3D"
}
```'
operationId: filesDownloadUrl
parameters:
- description: SHA-256, SHA-1 or MD5 identifying the file
in: path
name: id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
security:
- VTApiKey: []
summary: VirusTotal Get a File’s Download URL
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/files/{id}/relationships/{relationship}:
get:
tags:
- IoC Investigation - Files
deprecated: false
description: This endpoint is the same as /files/{id}/{relationship} except it returns just the related object's IDs (and context attributes, if any) instead of returning all attributes.
operationId: filesRelationshipsIds
parameters:
- description: SHA-256, SHA-1 or MD5 identifying the file
in: path
name: id
required: true
schema:
type: string
- description: Relationship name (see [table](ref:object-files#relationships))
in: path
name: relationship
required: true
schema:
type: string
- description: Maximum number of related objects to retrieve
in: query
name: limit
schema:
default: '10'
type: string
- description: Continuation cursor
in: query
name: cursor
schema:
type: string
responses:
'200':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
security:
- VTApiKey: []
summary: VirusTotal Get Object Descriptors Related to a File
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/files/{id}/votes:
get:
tags:
- IoC Investigation - Files
deprecated: false
description: Returns a list of Vote objects.
operationId: filesVotesGet
parameters:
- description: SHA-256, SHA-1 or MD5 identifying the file
in: path
name: id
required: true
schema:
type: string
- description: Maximum number of votes to retrieve
in: query
name: limit
schema:
default: 10
format: int32
type: integer
- description: Continuation cursor
in: query
name: cursor
schema:
type: string
responses:
'200':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
security:
- VTApiKey: []
summary: VirusTotal Get Votes on a File
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
post:
tags:
- IoC Investigation - Files
deprecated: false
description: 'With this endpoint you can post a vote for a given file. The body for the `POST` request must be the JSON representation of a vote object. Notice however that you don''t need to provide an ID for the object, as they are automatically generated for new votes.
The verdict attribute must have be either `harmless` or `malicious`.
Returns a Vote object.
```json Example request
{
"data": {
"type": "vote",
"attributes": {
"verdict": "harmless"
}
}
}
```'
operationId: filesVotesPost
parameters:
- description: SHA-256, SHA-1 or MD5 identifying the file
in: path
name: id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
properties:
data:
default: '{"type": "vote", "attributes": {"verdict": "malicious"}}'
description: A vote object
format: json
type: string
required:
- data
type: object
responses:
'200':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
'409':
content:
application/json:
examples:
Result:
value: "{\n \"error\": {\n \"code\": \"AlreadyExistsError\",\n \"message\": \"User \\\"username\\\" already voted \\\"malicious\\\" for this file\"\n }\n}"
schema:
properties:
error:
properties:
code:
type: string
message:
type: string
type: object
type: object
description: '409'
security:
- VTApiKey: []
summary: VirusTotal Add a Vote on a File
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/files/{id}/{relationship}:
get:
tags:
- IoC Investigation - Files
deprecated: false
description: 'File objects have many relationships to other files and objects. As mentioned in the Relationships section, those related objects can be retrieved by sending `GET` requests to the relationship URL.
Some relationships are accessible only to users who have access to VirusTotal Enterprise package.
More common relationships are described in the File object documentation and you can use the metadata endpoint to get the full list of relationships.'
operationId: filesRelationships
parameters:
- description: SHA-256, SHA-1 or MD5 identifying the file
in: path
name: id
required: true
schema:
type: string
- description: Relationship name (see [table](ref:object-files#relationships))
in: path
name: relationship
required: true
schema:
type: string
- description: Maximum number of related objects to retrieve
in: query
name: limit
schema:
default: 10
format: int32
type: integer
- description: Continuation cursor
in: query
name: cursor
schema:
type: string
responses:
'200':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
security:
- VTApiKey: []
summary: VirusTotal Get Objects Related to a File
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/sigma_rules/{id}:
get:
tags:
- IoC Investigation - Files
deprecated: false
description: Returns a Sigma Rule object.
operationId: getSigmaRules
parameters:
- description: Rule ID
in: path
name: id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
security:
- VTApiKey: []
summary: VirusTotal Get a Crowdsourced Sigma Rule Object
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/yara_rulesets/{id}:
get:
tags:
- IoC Investigation - Files
deprecated: false
description: Returns a YARA Ruleset object used in our crowdsourced YARA results.
operationId: getYaraRulesets
parameters:
- description: Ruleset ID to fetch.
in: path
name: id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '200'
'400':
content:
application/json:
examples:
Result:
value: '{}'
schema:
properties: {}
type: object
description: '400'
security:
- VTApiKey: []
summary: VirusTotal Get a Crowdsourced YARA Ruleset
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
components:
securitySchemes:
VTApiKey:
type: apiKey
in: header
name: x-apikey
description: Personal VirusTotal / GTI API key. Found in the user menu of your VirusTotal account.