# VirusTotal API reference

> The VirusTotal API v3 returns what VirusTotal holds on a file, URL, domain or IP address: the latest verdicts of its antivirus engines and URL scanners, community reputation and votes, and context such as WHOIS, DNS records, HTTPS certificates and file metadata. Related objects (passive DNS…

Source: https://osinttools.io/apis/virustotal/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/virustotal/

- Base URL: https://www.virustotal.com/api/v3
- Authentication: API key in the `x-apikey` header. Get a key: https://www.virustotal.com/gui/my-apikey Your personal API key is shown in your VirusTotal account.
- Free tier: yes
- Pricing: On request
- Rate limits: Public API: 500 requests per day and 4 requests per minute (daily quotas reset at 00:00 UTC). Premium API: the rate and daily quota of your licence.
- Vendor docs: https://docs.virustotal.com/reference/overview
- Python SDK: vt-py, https://github.com/VirusTotal/vt-py
- Go SDK: vt-go, https://github.com/VirusTotal/vt-go

## Overview

The VirusTotal API v3 returns what VirusTotal holds on a file, URL, domain or IP address: the latest verdicts of its antivirus engines and URL scanners, community reputation and votes, and context such as WHOIS, DNS records, HTTPS certificates and file metadata. Related objects (passive DNS resolutions, subdomains, files that talk to a domain or IP, historical WHOIS and certificates) are read through relationship endpoints.

An investigator uses it to check a hash, link, domain or address against many engines at once and to pivot from one indicator to related infrastructure and samples. Submitting a URL makes VirusTotal fetch and scan it; looking up a report does not.

Calls go to `https://www.virustotal.com/api/v3` with your key in the `x-apikey` header and return JSON objects under `data` (`type`, `id`, `attributes`). Lists are paged with `limit` and a `cursor` from `meta.cursor`. The docs warn that any indicator submitted or queried through the API is scanned and added to the VirusTotal dataset, visible to the community, so do not send sensitive or personal data.

The free Public API allows 500 requests a day at 4 a minute and must not be used in commercial products or services or in business workflows that do not contribute new files. The Premium API has the request rate and daily quota of your licence and adds fields and relationships (sample downloads, sandbox behaviour, more threat context).

## Errors

| Status | Meaning |
| --- | --- |
| 400 | BadRequestError, InvalidArgumentError, NotAvailableYet, UnselectiveContentQueryError or UnsupportedContentQueryError: the request or its arguments are invalid |
| 401 | AuthenticationRequiredError, UserNotActiveError or WrongCredentialsError: no key, an inactive account or a wrong key |
| 403 | ForbiddenError: you are not allowed to perform the operation |
| 404 | NotFoundError: the requested resource was not found |
| 409 | AlreadyExistsError: the resource already exists |
| 424 | FailedDependencyError: a request this one depended on failed |
| 429 | QuotaExceededError (minute, daily or monthly quota used up) or TooManyRequestsError |
| 503 | TransientError: temporary server error; retrying may work |
| 504 | DeadlineExceededError: the operation took too long |

## Files

### Get the report on a file by its SHA-256, SHA-1 or MD5 hash

`GET /files/{id}`

- Takes: File
- Footprint: passive (the target is not contacted)
- Plan: Public and Premium API

Returns the File object: hashes, names, size, type, submission dates, the latest result of each antivirus engine and the count of verdicts per category, community reputation and votes. Some attributes (capabilities tags, downloadable) are Premium API only.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | SHA-256, SHA-1 or MD5 identifying the file Example: 4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e |

Response fields:

- `data.id` (string): The file's SHA-256
- `data.type` (string): Always "file"
- `data.attributes.md5` (string): MD5 of the file
- `data.attributes.sha1` (string): SHA-1 of the file
- `data.attributes.sha256` (string): SHA-256 of the file
- `data.attributes.meaningful_name` (string): The most informative of the file's names
- `data.attributes.names[]` (string): All names the file has been seen with
- `data.attributes.size` (integer): Size in bytes
- `data.attributes.type_description` (string): Human-readable file type
- `data.attributes.first_submission_date` (integer): UTC timestamp of the first submission to VirusTotal
- `data.attributes.last_analysis_date` (integer): UTC timestamp of the most recent scan
- `data.attributes.last_analysis_stats` (object): Number of engines per verdict category (malicious, suspicious, undetected, harmless, timeout, ...)
- `data.attributes.last_analysis_results` (object): Latest result per engine, keyed by engine name: category, engine_name, engine_version, engine_update, method, result
- `data.attributes.reputation` (integer): Score from community votes
- `data.attributes.times_submitted` (integer): How many times the file was submitted
- `data.attributes.threat_verdict` (string): Overall verdict: unknown, undetected, suspicious or malicious

```bash
curl 'https://www.virustotal.com/api/v3/files/4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e' \
  -H 'x-apikey: YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": {
    "type": "file",
    "id": "4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e",
    "links": {
      "self": "https://www.virustotal.com/api/v3/files/4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e"
    },
    "attributes": {
      "md5": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
      "sha1": "1a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d",
      "sha256": "4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e",
      "meaningful_name": "invoice_example.exe",
      "names": [
        "invoice_example.exe",
        "sample.exe"
      ],
      "size": 204800,
      "type_description": "Win32 EXE",
      "type_tag": "peexe",
      "first_submission_date": 1700000000,
      "last_analysis_date": 1700086400,
      "last_analysis_stats": {
        "malicious": 3,
        "suspicious": 0,
        "undetected": 2,
        "harmless": 0,
        "timeout": 0,
        "confirmed-timeout": 0,
        "failure": 0,
        "type-unsupported": 0
      },
      "last_analysis_results": {
        "ExampleAV": {
          "category": "malicious",
          "engine_name": "ExampleAV",
          "engine_version": "1.0.0",
          "engine_update": "20231115",
          "method": "blacklist",
          "result": "Trojan.Example.1"
        }
      },
      "reputation": 0,
      "times_submitted": 2
    }
  }
}
```

### List objects related to a file (contacted domains and IPs, dropped files, and more)

`GET /files/{id}/{relationship}`

- Takes: File
- Footprint: passive (the target is not contacted)

Returns a paged list of the objects related to a file through the named relationship. The relationships table is in the File object docs; some relationships are Premium API only.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | SHA-256, SHA-1 or MD5 identifying the file Example: 4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e |
| `relationship` | path | string | yes | Relationship name, from the File object's relationships table Example: contacted_domains |
| `limit` | query | integer | no | Maximum number of related objects to retrieve Example: 10 |
| `cursor` | query | string | no | Continuation cursor from meta.cursor of the previous page |

Response fields:

- `data[]` (object): Related objects, each with type, id and attributes
- `meta.cursor` (string): Cursor for the next page
- `links.next` (string): URL of the next page

```bash
curl 'https://www.virustotal.com/api/v3/files/4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e/contacted_domains' \
  -H 'x-apikey: YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": [
    {
      "type": "domain",
      "id": "malware.example.com",
      "attributes": {
        "reputation": -5,
        "last_analysis_stats": {
          "harmless": 50,
          "malicious": 4,
          "suspicious": 1,
          "timeout": 0,
          "undetected": 20
        }
      }
    }
  ],
  "meta": {
    "cursor": "EXAMPLECURSOR"
  },
  "links": {
    "self": "https://www.virustotal.com/api/v3/files/4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e/contacted_domains?limit=10"
  }
}
```

## URLs

### Submit a URL for scanning; returns an analysis ID

`POST /urls`

- Takes: URL
- Footprint: active (contacts the target)
- Plan: Public and Premium API

VirusTotal fetches and scans the URL. The response carries an analysis ID to read with GET /analyses/{id}. The docs warn that the URL is added to the VirusTotal dataset and becomes visible to the community: do not submit URLs containing sensitive or personal data.

Response fields:

- `data.type` (string): "analysis"
- `data.id` (string): Analysis ID, for GET /analyses/{id}

```bash
curl -X POST 'https://www.virustotal.com/api/v3/urls' \
  -H 'x-apikey: YOUR_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d '{
  "url": "https://www.example.com/login"
}'
```

Example response (200):

```json
{
  "data": {
    "type": "analysis",
    "id": "u-EXAMPLE-ANALYSIS-ID-1700000000"
  }
}
```

### Get the report on a URL VirusTotal has already scanned

`GET /urls/{id}`

- Takes: URL
- Footprint: passive (the target is not contacted)
- Plan: Public and Premium API

Returns the URL object: scanner verdicts, categories, final URL after redirects, redirection chain, last HTTP response code, headers and content hash, page title, outgoing links, trackers and community votes. The id is the URL encoded as unpadded URL-safe base64, or VirusTotal's URL identifier.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | URL identifier, or the base64 representation of the URL without padding Example: aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vbG9naW4 |

Response fields:

- `data.attributes.url` (string): The original URL
- `data.attributes.last_final_url` (string): Where the URL ends up after redirects
- `data.attributes.redirection_chain[]` (string): Redirects followed, excluding the final URL
- `data.attributes.last_http_response_code` (integer): HTTP status of the last response
- `data.attributes.title` (string): The page title
- `data.attributes.categories` (object): Category assigned by each categorisation partner
- `data.attributes.last_analysis_stats` (object): Scanner verdict counts: harmless, malicious, suspicious, timeout, undetected
- `data.attributes.last_analysis_results` (object): Result per scanner, keyed by scanner name
- `data.attributes.outgoing_links[]` (string): Links to other domains found on the page
- `data.attributes.first_submission_date` (integer): UTC timestamp of the first submission
- `data.attributes.times_submitted` (integer): How many times the URL was checked
- `data.attributes.reputation` (integer): Score from community votes

```bash
curl 'https://www.virustotal.com/api/v3/urls/aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vbG9naW4' \
  -H 'x-apikey: YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": {
    "type": "url",
    "id": "7b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c",
    "attributes": {
      "url": "https://www.example.com/login",
      "last_final_url": "https://www.example.com/account/login",
      "redirection_chain": [
        "https://www.example.com/login"
      ],
      "last_http_response_code": 200,
      "title": "Example login",
      "categories": {
        "ExampleCategorizer": "business"
      },
      "last_analysis_stats": {
        "harmless": 60,
        "malicious": 2,
        "suspicious": 0,
        "timeout": 0,
        "undetected": 10
      },
      "outgoing_links": [
        "https://cdn.example.org/app.js"
      ],
      "first_submission_date": 1700000000,
      "times_submitted": 3,
      "reputation": -2
    }
  }
}
```

### Get a URL or file analysis by its analysis ID

`GET /analyses/{id}`

- Footprint: passive (the target is not contacted)
- Plan: Public and Premium API

Returns the Analysis object for a submission: status (queued, in-progress or completed), the per-engine results and the verdict counts. While queued, results and stats are empty; while in progress they are partial.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Analysis identifier, as returned when submitting a URL or file Example: u-EXAMPLE-ANALYSIS-ID-1700000000 |

Response fields:

- `data.attributes.status` (string): queued, in-progress or completed
- `data.attributes.date` (integer): UTC Unix timestamp of the analysis
- `data.attributes.stats` (object): Verdict counts (harmless, malicious, suspicious, undetected, timeout, ...)
- `data.attributes.results` (object): Per-engine results keyed by engine name: category, engine_name, method, result

```bash
curl 'https://www.virustotal.com/api/v3/analyses/u-EXAMPLE-ANALYSIS-ID-1700000000' \
  -H 'x-apikey: YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": {
    "type": "analysis",
    "id": "u-EXAMPLE-ANALYSIS-ID-1700000000",
    "attributes": {
      "status": "completed",
      "date": 1700000000,
      "stats": {
        "harmless": 60,
        "malicious": 2,
        "suspicious": 0,
        "timeout": 0,
        "undetected": 10
      },
      "results": {
        "ExampleScanner": {
          "category": "malicious",
          "engine_name": "ExampleScanner",
          "method": "blacklist",
          "result": "phishing"
        }
      }
    }
  }
}
```

## Domains

### Get the report on a domain: verdicts, DNS records, WHOIS, certificate, categories

`GET /domains/{domain}`

- Takes: Domain
- Footprint: passive (the target is not contacted)
- Plan: Public and Premium API

Returns the Domain object: URL scanner verdicts, categories from partners, last DNS records, last HTTPS certificate, raw WHOIS and registrar, creation date, popularity ranks, JARM hash, tags and community reputation. The favicon hashes are for Premium users only.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `domain` | path | string | yes | Domain name Example: example.com |

Response fields:

- `data.id` (string): The domain
- `data.attributes.registrar` (string): Registrar of the domain
- `data.attributes.creation_date` (integer): Creation date from WHOIS (UTC timestamp)
- `data.attributes.whois` (string): Raw WHOIS text
- `data.attributes.last_dns_records[]` (object): DNS records from the last scan: type, value, ttl and type-specific fields
- `data.attributes.last_https_certificate` (object): SSL certificate retrieved in the last analysis
- `data.attributes.categories` (object): Category assigned by each categorisation service
- `data.attributes.last_analysis_stats` (object): Scanner verdict counts
- `data.attributes.popularity_ranks` (object): Rank in popularity lists, each with rank and timestamp
- `data.attributes.jarm` (string): JARM hash
- `data.attributes.reputation` (integer): Community score; negative suggests malicious
- `data.attributes.tags[]` (string): Representative attributes

```bash
curl 'https://www.virustotal.com/api/v3/domains/example.com' \
  -H 'x-apikey: YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": {
    "type": "domain",
    "id": "example.com",
    "attributes": {
      "registrar": "Example Registrar Inc.",
      "creation_date": 1106675546,
      "whois": "Domain Name: EXAMPLE.COM\nRegistrar: Example Registrar Inc.\n...",
      "last_dns_records": [
        {
          "type": "A",
          "value": "192.0.2.10",
          "ttl": 300
        },
        {
          "type": "MX",
          "value": "mail.example.com",
          "priority": 10,
          "ttl": 3600
        }
      ],
      "last_dns_records_date": 1700000000,
      "categories": {
        "ExampleCategorizer": "business"
      },
      "last_analysis_stats": {
        "harmless": 65,
        "malicious": 0,
        "suspicious": 0,
        "timeout": 0,
        "undetected": 20
      },
      "popularity_ranks": {
        "ExampleRank": {
          "rank": 1200,
          "timestamp": 1700000000
        }
      },
      "reputation": 0,
      "tags": []
    }
  }
}
```

### List objects related to a domain: resolutions, subdomains, WHOIS history, files and more

`GET /domains/{domain}/{relationship}`

- Takes: Domain
- Footprint: passive (the target is not contacted)
- Plan: Depends on the relationship (see description)

Paged list of objects related to the domain. Available to everyone: comments, communicating_files, graphs, historical_ssl_certificates, historical_whois, immediate_parent, parent, referrer_files, related_comments, resolutions, siblings, subdomains, user_votes. VT Enterprise only: caa_records, cname_records, downloaded_files, mx_records, ns_records, related_references, related_threat_actors, soa_records, urls.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `domain` | path | string | yes | Domain name Example: example.com |
| `relationship` | path | string | yes | Relationship name Example: resolutions One of: comments, communicating_files, graphs, historical_ssl_certificates, historical_whois, immediate_parent, parent, referrer_files, related_comments, resolutions, siblings, subdomains, user_votes, caa_records, cname_records, downloaded_files, mx_records, ns_records, related_references, related_threat_actors, soa_records, urls |
| `limit` | query | integer | no | Maximum number of related objects to retrieve Example: 10 |
| `cursor` | query | string | no | Continuation cursor from meta.cursor of the previous page |

Response fields:

- `data[]` (object): Related objects, each with type, id and attributes
- `data[].attributes.host_name` (string): For resolutions: the domain or subdomain resolved
- `data[].attributes.ip_address` (string): For resolutions: the IP address it resolved to
- `data[].attributes.date` (integer): For resolutions: UTC timestamp of the resolution
- `data[].attributes.resolver` (string): For resolutions: the source of the resolution
- `meta.cursor` (string): Cursor for the next page

```bash
curl 'https://www.virustotal.com/api/v3/domains/example.com/resolutions' \
  -H 'x-apikey: YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": [
    {
      "type": "resolution",
      "id": "192.0.2.10example.com",
      "attributes": {
        "date": 1700000000,
        "host_name": "example.com",
        "ip_address": "192.0.2.10",
        "resolver": "VirusTotal"
      }
    }
  ],
  "meta": {
    "cursor": "EXAMPLECURSOR"
  },
  "links": {
    "self": "https://www.virustotal.com/api/v3/domains/example.com/resolutions?limit=10",
    "next": "https://www.virustotal.com/api/v3/domains/example.com/resolutions?limit=10&cursor=EXAMPLECURSOR"
  }
}
```

## IP addresses

### Get the report on an IP address: verdicts, ASN, country, WHOIS, certificate

`GET /ip_addresses/{ip}`

- Takes: IP address
- Footprint: passive (the target is not contacted)
- Plan: Public and Premium API

Returns the IP address object: scanner verdicts, AS number and owner, network range, country and continent, regional internet registry, raw WHOIS, last HTTPS certificate, JARM hash, tags and community reputation. Port scan summaries (port_info) are Premium API / VT Enterprise only.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip` | path | string | yes | IP address Example: 203.0.113.7 |

Response fields:

- `data.id` (string): The IP address
- `data.attributes.asn` (integer): Autonomous System Number
- `data.attributes.as_owner` (string): Owner of the Autonomous System
- `data.attributes.network` (string): IP range the address belongs to
- `data.attributes.country` (string): Country code
- `data.attributes.continent` (string): Continent code
- `data.attributes.regional_internet_registry` (string): RIR responsible for the address
- `data.attributes.whois` (string): Raw WHOIS text
- `data.attributes.last_analysis_stats` (object): Scanner verdict counts
- `data.attributes.reputation` (integer): Score from community votes
- `data.attributes.port_info[]` (object): Observed ports (Premium API / VT Enterprise)

```bash
curl 'https://www.virustotal.com/api/v3/ip_addresses/203.0.113.7' \
  -H 'x-apikey: YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": {
    "type": "ip_address",
    "id": "203.0.113.7",
    "attributes": {
      "asn": 64500,
      "as_owner": "Example Networks",
      "network": "203.0.113.0/24",
      "country": "NL",
      "continent": "EU",
      "regional_internet_registry": "RIPE NCC",
      "whois": "inetnum: 203.0.113.0 - 203.0.113.255\n...",
      "last_analysis_stats": {
        "harmless": 60,
        "malicious": 1,
        "suspicious": 0,
        "timeout": 0,
        "undetected": 25
      },
      "reputation": 0,
      "tags": []
    }
  }
}
```

### List objects related to an IP: resolutions, communicating files, WHOIS history and more

`GET /ip_addresses/{ip}/{relationship}`

- Takes: IP address
- Footprint: passive (the target is not contacted)
- Plan: Depends on the relationship (see description)

Paged list of objects related to the IP address. Available to everyone: comments, communicating_files, graphs, historical_ssl_certificates, historical_whois, related_comments, referrer_files, resolutions. VT Enterprise only: downloaded_files, related_references, related_threat_actors, urls.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip` | path | string | yes | IP address Example: 203.0.113.7 |
| `relationship` | path | string | yes | Relationship name Example: resolutions One of: comments, communicating_files, graphs, historical_ssl_certificates, historical_whois, related_comments, referrer_files, resolutions, downloaded_files, related_references, related_threat_actors, urls |
| `limit` | query | integer | no | Maximum number of related objects to retrieve Example: 10 |
| `cursor` | query | string | no | Continuation cursor from meta.cursor of the previous page |

Response fields:

- `data[]` (object): Related objects, each with type, id and attributes
- `data[].attributes.host_name` (string): For resolutions: the hostname that resolved to the IP
- `data[].attributes.date` (integer): For resolutions: UTC timestamp of the resolution
- `meta.cursor` (string): Cursor for the next page

```bash
curl 'https://www.virustotal.com/api/v3/ip_addresses/203.0.113.7/resolutions' \
  -H 'x-apikey: YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": [
    {
      "type": "resolution",
      "id": "203.0.113.7shop.example.org",
      "attributes": {
        "date": 1700000000,
        "host_name": "shop.example.org",
        "ip_address": "203.0.113.7",
        "resolver": "VirusTotal"
      }
    }
  ],
  "meta": {
    "cursor": "EXAMPLECURSOR"
  },
  "links": {
    "self": "https://www.virustotal.com/api/v3/ip_addresses/203.0.113.7/resolutions?limit=10"
  }
}
```

## Search

### Search for a file hash, URL, domain or IP address, or comments by tag

`GET /search`

- Takes: File, URL, Domain, IP address
- Footprint: passive (the target is not contacted)
- Plan: Public and Premium API

Returns the matching objects in data[]: a File object for a hash, a URL object for a URL, a Domain object for a domain, an IP address object for an IP, or Comment objects for a tag. The docs warn that queried indicators are added to the VirusTotal dataset.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `query` | query | string | yes | Search query: a file hash, URL, domain, IP address or comment tag Example: example.com |

Response fields:

- `data[]` (object): Matching objects, each with type, id, attributes and links
- `meta.cursor` (string): Cursor for the next page
- `links.next` (string): URL of the next page

```bash
curl 'https://www.virustotal.com/api/v3/search?query=example.com' \
  -H 'x-apikey: YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": [
    {
      "type": "domain",
      "id": "example.com",
      "attributes": {
        "reputation": 0,
        "last_analysis_stats": {
          "harmless": 65,
          "malicious": 0,
          "suspicious": 0,
          "timeout": 0,
          "undetected": 20
        }
      },
      "links": {
        "self": "https://www.virustotal.com/api/v3/domains/example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.virustotal.com/api/v3/search?query=example.com"
  }
}
```

## Account

### Get a user's API usage per endpoint over a date range

`GET /users/{id}/api_usage`

- Footprint: passive (the target is not contacted)

Daily and total call counts per endpoint, split into calls that consume quota and calls that do not. The default range is the last 30 days; the maximum range is 30 days, and only the last 60 days are available. Looking up by API key works only for that user or an administrator of one of the user's groups.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | User ID or API key Example: example_user |
| `start_date` | query | string | no | First day of the range, YYYYMMDD Example: 20231101 |
| `end_date` | query | string | no | Last day of the range, YYYYMMDD Example: 20231130 |

Response fields:

- `daily` (object): Per day, the number of calls per endpoint that consumed quota
- `daily_endpoints_not_consuming_quota` (object): Per day, calls per endpoint that did not consume quota
- `total` (object): Total calls per endpoint that consumed quota
- `total_endpoints_not_consuming_quota` (object): Total calls per endpoint that did not consume quota

```bash
curl 'https://www.virustotal.com/api/v3/users/example_user/api_usage' \
  -H 'x-apikey: YOUR_API_KEY'
```

Example response (200):

```json
{
  "daily": {
    "2023-11-20": {
      "/api/v3/(file_relationships)": 12
    }
  },
  "daily_endpoints_not_consuming_quota": {
    "2023-11-20": {
      "/api/v3/(files)": 3
    }
  },
  "total": {
    "/api/v3/(file_relationships)": 140
  },
  "total_endpoints_not_consuming_quota": {
    "/api/v3/(files)": 41
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
