Skip to content
OSINTtools.io

VirusTotal API

Google-owned service that checks files, URLs, domains and IPs against many antivirus engines and threat feeds.

Base URL
https://www.virustotal.com/api/v3
Sign-in
API key
Free tier
Free tier
Pricing
On request
Format
REST
Endpoints
11

Compiled by OSINTtools.io editors from docs.virustotal.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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).

Quick start

  1. Get a key

    Create an account with VirusTotal and copy your api key (free tier). Where to get it

  2. Make your first request

    Get the report on a file by its SHA-256, SHA-1 or MD5 hash. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://www.virustotal.com/api/v3/files/4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e' \
      -H 'x-apikey: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this, shortened.

    {
      "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,
    …

Authentication

Send your API key in the x-apikey header of every request.

Your personal API key is shown in your VirusTotal account.

Get a key from VirusTotal

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

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.

Free tier. Pricing: on request.

  • VT CommunityFree · File and URL scanning, public API (4 requests/min, 500/day), community features
  • VT Lite$5,000/year · Advanced search, YARA hunting, file downloads, private API and scanning, low API volume
  • VT DuetContact sales · Full feature set, high API quota, for large organizations

Plans from blog.virustotal.com, checked Nov 25, 2026.

Errors

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

Files

  • Takes: File
  • 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.

Path parameters

idstringrequiredtakes your file

SHA-256, SHA-1 or MD5 identifying the file

Example: 4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e
Response fields · 16Show

idstring

The file's SHA-256

typestring

Always "file"

md5string

MD5 of the file

sha1string

SHA-1 of the file

sha256string

SHA-256 of the file

meaningful_namestring

The most informative of the file's names

names[]string

All names the file has been seen with

sizeinteger

Size in bytes

type_descriptionstring

Human-readable file type

first_submission_dateinteger

UTC timestamp of the first submission to VirusTotal

last_analysis_dateinteger

UTC timestamp of the most recent scan

last_analysis_statsobject

Number of engines per verdict category (malicious, suspicious, undetected, harmless, timeout, ...)

last_analysis_resultsobject

Latest result per engine, keyed by engine name: category, engine_name, engine_version, engine_update, method, result

reputationinteger

Score from community votes

times_submittedinteger

How many times the file was submitted

threat_verdictstring

Overall verdict: unknown, undetected, suspicious or malicious

curl 'https://www.virustotal.com/api/v3/files/4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e' \
  -H 'x-apikey: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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
    }
  }
}

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.

Path parameters

idstringrequiredtakes your file

SHA-256, SHA-1 or MD5 identifying the file

Example: 4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e
relationshipstringrequired

Relationship name, from the File object's relationships table

Example: contacted_domains

Query parameters

limitinteger

Maximum number of related objects to retrieve

Example: 10Default: 10
cursorstring

Continuation cursor from meta.cursor of the previous page

Response fields · 3Show

data[]object

Related objects, each with type, id and attributes

cursorstring

Cursor for the next page

nextstring

URL of the next page

curl 'https://www.virustotal.com/api/v3/files/4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e/contacted_domains' \
  -H 'x-apikey: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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

  • Takes: URL
  • 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.

Request body (form) · 1Show

urlstringalways present

URL to scan

Response fields · 2Show

typestring

"analysis"

idstring

Analysis ID, for GET /analyses/{id}

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"
}'
Replace YOUR_API_KEY with your key
Response
{
  "data": {
    "type": "analysis",
    "id": "u-EXAMPLE-ANALYSIS-ID-1700000000"
  }
}
  • Takes: URL
  • 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.

Path parameters

idstringrequired

URL identifier, or the base64 representation of the URL without padding

Example: aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vbG9naW4
Response fields · 12Show

urlstring

The original URL

last_final_urlstring

Where the URL ends up after redirects

redirection_chain[]string

Redirects followed, excluding the final URL

last_http_response_codeinteger

HTTP status of the last response

titlestring

The page title

categoriesobject

Category assigned by each categorisation partner

last_analysis_statsobject

Scanner verdict counts: harmless, malicious, suspicious, timeout, undetected

last_analysis_resultsobject

Result per scanner, keyed by scanner name

outgoing_links[]string

Links to other domains found on the page

first_submission_dateinteger

UTC timestamp of the first submission

times_submittedinteger

How many times the URL was checked

reputationinteger

Score from community votes

curl 'https://www.virustotal.com/api/v3/urls/aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vbG9naW4' \
  -H 'x-apikey: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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
    }
  }
}
  • 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.

Path parameters

idstringrequired

Analysis identifier, as returned when submitting a URL or file

Example: u-EXAMPLE-ANALYSIS-ID-1700000000
Response fields · 4Show

statusstring

queued, in-progress or completed

dateinteger

UTC Unix timestamp of the analysis

statsobject

Verdict counts (harmless, malicious, suspicious, undetected, timeout, ...)

resultsobject

Per-engine results keyed by engine name: category, engine_name, method, result

curl 'https://www.virustotal.com/api/v3/analyses/u-EXAMPLE-ANALYSIS-ID-1700000000' \
  -H 'x-apikey: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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

  • Takes: Domain
  • 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.

Path parameters

domainstringrequiredtakes your domain

Domain name

Example: example.com
Response fields · 12Show

idstring

The domain

registrarstring

Registrar of the domain

creation_dateinteger

Creation date from WHOIS (UTC timestamp)

whoisstring

Raw WHOIS text

last_dns_records[]object

DNS records from the last scan: type, value, ttl and type-specific fields

last_https_certificateobject

SSL certificate retrieved in the last analysis

categoriesobject

Category assigned by each categorisation service

last_analysis_statsobject

Scanner verdict counts

popularity_ranksobject

Rank in popularity lists, each with rank and timestamp

jarmstring

JARM hash

reputationinteger

Community score; negative suggests malicious

tags[]string

Representative attributes

curl 'https://www.virustotal.com/api/v3/domains/example.com' \
  -H 'x-apikey: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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": []
    }
  }
}
  • Takes: Domain
  • 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.

Path parameters

domainstringrequiredtakes your domain

Domain name

Example: example.com
relationshipstringrequired

Relationship name

Example: resolutionsOne 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

Query parameters

limitinteger

Maximum number of related objects to retrieve

Example: 10Default: 10
cursorstring

Continuation cursor from meta.cursor of the previous page

Response fields · 6Show

data[]object

Related objects, each with type, id and attributes

host_namestring

For resolutions: the domain or subdomain resolved

ip_addressstring

For resolutions: the IP address it resolved to

dateinteger

For resolutions: UTC timestamp of the resolution

resolverstring

For resolutions: the source of the resolution

cursorstring

Cursor for the next page

curl 'https://www.virustotal.com/api/v3/domains/example.com/resolutions' \
  -H 'x-apikey: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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

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.

Path parameters

ipstringrequiredtakes your ip address

IP address

Example: 203.0.113.7
Response fields · 11Show

idstring

The IP address

asninteger

Autonomous System Number

as_ownerstring

Owner of the Autonomous System

networkstring

IP range the address belongs to

countrystring

Country code

continentstring

Continent code

regional_internet_registrystring

RIR responsible for the address

whoisstring

Raw WHOIS text

last_analysis_statsobject

Scanner verdict counts

reputationinteger

Score from community votes

port_info[]object

Observed ports (Premium API / VT Enterprise)

curl 'https://www.virustotal.com/api/v3/ip_addresses/203.0.113.7' \
  -H 'x-apikey: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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": []
    }
  }
}
  • Takes: IP address
  • 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.

Path parameters

ipstringrequiredtakes your ip address

IP address

Example: 203.0.113.7
relationshipstringrequired

Relationship name

Example: resolutionsOne of: comments, communicating_files, graphs, historical_ssl_certificates, historical_whois, related_comments, referrer_files, resolutions, downloaded_files, related_references, related_threat_actors, urls

Query parameters

limitinteger

Maximum number of related objects to retrieve

Example: 10Default: 10
cursorstring

Continuation cursor from meta.cursor of the previous page

Response fields · 4Show

data[]object

Related objects, each with type, id and attributes

host_namestring

For resolutions: the hostname that resolved to the IP

dateinteger

For resolutions: UTC timestamp of the resolution

cursorstring

Cursor for the next page

curl 'https://www.virustotal.com/api/v3/ip_addresses/203.0.113.7/resolutions' \
  -H 'x-apikey: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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"
  }
}

Account

  • 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.

Path parameters

idstringrequired

User ID or API key

Example: example_user

Query parameters

start_datestring

First day of the range, YYYYMMDD

Example: 20231101
end_datestring

Last day of the range, YYYYMMDD

Example: 20231130
Response fields · 4Show

dailyobject

Per day, the number of calls per endpoint that consumed quota

daily_endpoints_not_consuming_quotaobject

Per day, calls per endpoint that did not consume quota

totalobject

Total calls per endpoint that consumed quota

total_endpoints_not_consuming_quotaobject

Total calls per endpoint that did not consume quota

curl 'https://www.virustotal.com/api/v3/users/example_user/api_usage' \
  -H 'x-apikey: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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
  }
}