> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# VirusTotal

> Threat-intelligence reports on files, URLs, domains and IP addresses: multi-engine antivirus verdicts, reputation and relationships.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/virustotal.svg?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=2191604963a52694041ec597a80907dd)

[Web Catalog · Security](https://docs.webrouter.net/data-apis.md?category=security)

Needs&#x20;

`VIRUSTOTAL_API_KEY`

Endpoints

5

Auth

Key in header

[Vendor docs](https://docs.virustotal.com/reference/overview)

&#x20;·&#x20;

[Pricing](https://docs.virustotal.com/reference/public-vs-premium-api)

## Setup

| Variable | | What it is |
| - | - | - |
| `VIRUSTOTAL_API_KEY` | required | A VirusTotal API key (sign in > API key). Sent in the x-apikey header. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Public (free) API: 4 requests per minute and 500 per day, and it must not be used in commercial products or services or in business workflows that do not contribute new files. Premium keys lift both.
* Everything you submit or query joins the VirusTotal dataset, visible to its community and partners: never send sensitive or personal data (private URLs with tokens, internal hostnames).

## Endpoints

GET

Get a file report

Antivirus verdicts, file type, names, signatures and reputation for a file hash.

[Open](#virustotal-files-get)

GET

Get a URL report

Latest analysis verdicts, categories and reputation for a URL.

[Open](#virustotal-urls-get)

GET

Get an analysis

Status and results of a scan submitted with urls.scan (or a file upload).

[Open](#virustotal-analyses-get)

GET

Get a domain report

Security verdicts, categories and reputation of a domain.

[Open](#virustotal-domains-get)

GET

Get an IP address report

Security verdicts, network owner and reputation of an IP address.

[Open](#virustotal-ip-get)

### Get a file report

GET

`/files/{id}`

`virustotal.files.get`

Antivirus verdicts, file type, names, signatures and reputation for a file hash.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        SHA-256, SHA-1 or MD5 of the file.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.virustotal.com/reference/file-info) · Same job: [AlienVault OTX (LevelBlue Open Threat Exchange)](https://docs.webrouter.net/data-apis/alienvault-otx.md#alienvault-otx-indicators-file), [Hybrid Analysis](https://docs.webrouter.net/data-apis/hybrid-analysis.md#hybrid-analysis-search-hash)

> [!NOTE]
>
> * 404 means VirusTotal has never seen the file; nothing is uploaded by this call.

### Get a URL report

GET

`/urls/{id}`

`virustotal.urls.get`

Latest analysis verdicts, categories and reputation for a URL.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`id` required</td><td>string</td><td>path</td><td>URL identifier: the URL base64url-encoded without '=' padding, or the SHA-256 id VirusTotal returned. Example `aHR0cDovL3d3dy5zb21lZG9tYWluLmNvbS90aGlzL2lzL215L3VybA`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.virustotal.com/reference/url-info) · Same job: [urlscan.io](https://docs.webrouter.net/data-apis/urlscan.md#urlscan-result-get)

```python Python theme={null}
router.call_data_api("virustotal.urls.get", {'id': 'aHR0cDovL3d3dy5zb21lZG9tYWluLmNvbS90aGlzL2lzL215L3VybA'})
```

```text MCP theme={null}
call_data_api(endpoint="virustotal.urls.get", params={"id": "aHR0cDovL3d3dy5zb21lZG9tYWluLmNvbS90aGlzL2lzL215L3VybA"})
```

> [!NOTE]
>
> * Build the id with base64.urlsafe\_b64encode(url.encode()).decode().strip('='); VirusTotal canonicalises it.

### Get an analysis

GET

`/analyses/{id}`

`virustotal.analyses.get`

Status and results of a scan submitted with urls.scan (or a file upload).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Analysis id from the submission.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.virustotal.com/reference/analysis) · Same job: [Hybrid Analysis](https://docs.webrouter.net/data-apis/hybrid-analysis.md#hybrid-analysis-report-state)

> [!NOTE]
>
> * Poll until the analysis is complete; mind the 4-per-minute public limit.

### Get a domain report

GET

`/domains/{domain}`

`virustotal.domains.get`

Security verdicts, categories and reputation of a domain.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`domain` required</td><td>string</td><td>path</td><td>Domain name. Example `example.com`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.virustotal.com/reference/domain-info) · Same job: [AlienVault OTX (LevelBlue Open Threat Exchange)](https://docs.webrouter.net/data-apis/alienvault-otx.md#alienvault-otx-indicators-domain)

```python Python theme={null}
router.call_data_api("virustotal.domains.get", {'domain': 'example.com'})
```

```text MCP theme={null}
call_data_api(endpoint="virustotal.domains.get", params={"domain": "example.com"})
```

### Get an IP address report

GET

`/ip_addresses/{ip}`

`virustotal.ip.get`

Security verdicts, network owner and reputation of an IP address.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ip` required</td><td>string</td><td>path</td><td>IPv4 or IPv6 address. Example `8.8.8.8`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.virustotal.com/reference/ip-info) · Same job: [AlienVault OTX (LevelBlue Open Threat Exchange)](https://docs.webrouter.net/data-apis/alienvault-otx.md#alienvault-otx-indicators-ipv4), [Shodan](https://docs.webrouter.net/data-apis/shodan.md#shodan-host-get)

```python Python theme={null}
router.call_data_api("virustotal.ip.get", {'ip': '8.8.8.8'})
```

```text MCP theme={null}
call_data_api(endpoint="virustotal.ip.get", params={"ip": "8.8.8.8"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.