# VirusTotal — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Threat intelligence platform — scan files by hash, URLs, domains, and IPs against 70+ antivirus engines and security tools.

**Category:** Security | **Website:** [www.virustotal.com](https://www.virustotal.com) | **Docs:** [docs.virustotal.com/reference/](https://docs.virustotal.com/reference/)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/virustotal/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Also available via public x402 on Base (no account needed): [x402/virustotal.md](https://paywithlocus.com/x402/virustotal.md)

> Also available via MPP (no account needed): [mpp/virustotal.md](https://paywithlocus.com/mpp/virustotal.md)

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### File Report

Check a file hash for malware with a scan report from 70+ antivirus engines, sandbox analysis, detection results, and threat context.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `hash` | string | Yes | SHA-256, SHA-1, or MD5 hash of the file |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/file-report \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"hash":"275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f"}'
```

### URL Report

Get a URL scan report. Returns detection results from 70+ antivirus engines/blocklists and threat context.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | URL to look up (e.g. "https://example.com") |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/url-report \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'
```

### Domain Report

Get a domain reputation report. Returns detection results, DNS records, WHOIS data, and threat context.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `domain` | string | Yes | Domain name (e.g. "google.com") |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/domain-report \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"domain":"example.com"}'
```

### IP Address Report

Get an IP address reputation report. Returns detection results, ASN info, geolocation, and threat context.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ip` | string | Yes | IP address (e.g. "8.8.8.8") |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/ip-report \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"ip":"8.8.8.8"}'
```

### Scan URL

Submit a URL for scanning. Returns an analysis ID that can be checked with the analysis endpoint.

**Estimated cost:** $0.085

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | URL to scan (e.g. "https://suspicious-site.com") |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/url-scan \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'
```

### Analysis Status

Check the status and results of a scan analysis. Use the analysis ID returned by url-scan.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Analysis ID from a scan submission |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/analysis \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"id":"<from virustotal/url-scan>"}'
```

### Search

Look up a file hash, URL, domain, IP address, or comment tag in VirusTotal. Advanced corpus search modifiers require the separate Intelligence API.

**Estimated cost:** $0.085

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | A file hash, URL, domain name, IP address, or comment tag (for example example.com). Advanced corpus search modifiers are not supported by this endpoint. |
| `limit` | number | No | Max results to return (default 10) |
| `descriptors_only` | boolean | No | Return only object IDs and types, not full objects |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/search \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"example.com","limit":1}'
```

### DNS Resolution

Get a DNS resolution record. The ID is the IP address concatenated with the domain (e.g. "8.8.8.8google.com").

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Resolution ID: IP + domain concatenated (e.g. "8.8.8.8google.com") |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/dns-resolution \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"id":"8.8.8.8google.com"}'
```

### File Comments

Get community comments on a file by hash.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `hash` | string | Yes | SHA-256, SHA-1, or MD5 hash |
| `limit` | number | No | Max comments to return (default 10) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/file-comments \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"hash":"275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f","limit":1}'
```

### Domain Comments

Get community comments on a domain.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `domain` | string | Yes | Domain name |
| `limit` | number | No | Max comments to return (default 10) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/domain-comments \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"domain":"example.com"}'
```

### IP Comments

Get community comments on an IP address.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ip` | string | Yes | IP address |
| `limit` | number | No | Max comments to return (default 10) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/ip-comments \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"ip":"8.8.8.8"}'
```

### Popular Threat Categories

Get the most popular threat categories currently trending on VirusTotal.

**Estimated cost:** $0.055

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/popular-threat-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### URL Comments

Get community comments on a URL.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | URL to look up comments for |
| `limit` | number | No | Max comments to return (default 10) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/url-comments \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'
```

### File Votes

Get community votes (harmless/malicious) on a file by hash.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `hash` | string | Yes | SHA-256, SHA-1, or MD5 hash |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/file-votes \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"hash":"275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f"}'
```

### URL Votes

Get community votes (harmless/malicious) on a URL.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | URL to look up votes for |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/url-votes \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'
```

### Domain Votes

Get community votes (harmless/malicious) on a domain.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `domain` | string | Yes | Domain name |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/domain-votes \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"domain":"example.com"}'
```

### IP Votes

Get community votes (harmless/malicious) on an IP address.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ip` | string | Yes | IP address |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/ip-votes \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"ip":"8.8.8.8"}'
```

### File Behaviours

Get sandbox dynamic analysis behaviour reports for a file. Includes process activity, network calls, file operations, and registry changes.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `hash` | string | Yes | SHA-256, SHA-1, or MD5 hash |
| `limit` | number | No | Max behaviour reports to return (default 10) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/file-behaviours \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"hash":"275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f","limit":1}'
```

### Latest Comments

Get the latest community comments posted across all of VirusTotal.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | number | No | Max comments to return (default 10) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/latest-comments \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"limit":1}'
```

### Attack Tactic

Get details about a MITRE ATT&CK tactic by ID (e.g. "TA0001" for Initial Access).

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | MITRE ATT&CK tactic ID (e.g. "TA0001") |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/attack-tactic \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"id":"TA0001"}'
```

### Attack Technique

Get details about a MITRE ATT&CK technique by ID (e.g. "T1059" for Command and Scripting Interpreter).

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | MITRE ATT&CK technique ID (e.g. "T1059") |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/virustotal/attack-technique \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"id":"T1059"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.