List private analyses

🚧

Premium feature

Private Scanning is only available to VirusTotal Enterprise users with a Private Scanning license.

Returns a list of the most recent private analyses. By default (when filter is omitted), this endpoint returns private analyses—both files and URLs—in your VirusTotal group that you have access to according to sharing permissions (as owner, group administrator, editor, or viewer, including analyses shared with your group), without filtering by submitter or item type. The analyses are sorted by most recent first (order=date-, the default). You can use ?order=date+ (or ?order=date) to reverse the order (oldest first).

Filtering analyses (filter)

Use the optional filter query parameter to narrow the returned analyses. Only the following two modifiers are supported:

ModifierDescription
owner:<user_id>Filters by the user who submitted the analysis (submitter). Must be the literal user_id of an existing user. If <user_id> differs from the authenticated user, both users must belong to the same group with Private Scanning access; otherwise the request fails with 403 ForbiddenError (also returned if the user does not exist). owner:me is not supported (there is no me alias).
item_type:<file|url>Filters by the type of analyzed item: file or url. Because there is no GET /api/v3/private/urls listing endpoint, use filter=item_type:url to list private URL analyses.

Syntax and validation rules

  • Combining modifiers: You can combine owner:<user_id> and item_type:<file|url> separated by a space for an implicit logical AND (for example, filter=owner:<user_id> item_type:url).
  • No boolean operators: Boolean operators (OR, NOT, AND, -) are not supported.
  • No repeated modifiers: Specifying the same modifier more than once (for example, two owner: or two item_type: modifiers) returns 400 BadRequestError.
  • Unknown modifiers: Any unrecognized modifier in filter is silently ignored and does not return a 400 error.

Examples

cURL

# List private URL analyses submitted by a specific user in your group
curl --request GET \
  --url "https://www.virustotal.com/api/v3/private/analyses?filter=owner%3Aanalyst_username%20item_type%3Aurl&limit=10" \
  --header "x-apikey: YOUR_API_KEY"

Python

import requests

api_key = "YOUR_API_KEY"
url = "https://www.virustotal.com/api/v3/private/analyses"
headers = {"x-apikey": api_key}

# List private URL analyses submitted by a specific user in your group
params = {
    "filter": "owner:analyst_username item_type:url",
    "limit": 10,
}

response = requests.get(url, headers=headers, params=params)
response.raise_for_status()
data = response.json()

Response

{
  "meta": {
    "cursor": <string>,
    "count": <int>
  },
  "data": {
    <PRIVATE_ANALYSIS_OBJECT>,
    <PRIVATE_ANALYSIS_OBJECT>,
    ...
  },
  "links": {
    "self": <string>,
    "next": <string>
  }
}
{
	"meta": {
		"count": 90,
		"cursor": "1"
	},
	"data": [
		{
			"attributes": {
				"status": "completed",
				"sandbox_status": {
					"Zenbox": {
						"status": "finished",
						"in_progress_percent": 100
					}
				},
				"sandbox_configuration": {
					"enable_internet": false,
					"command_line": ""
				},
				"date": 1666170912
			},
			"type": "private_analysis",
			"id": "NTJjNTM1MThmMzhiNWRiNGE1ZWQ5ZDhiZjQyNWY2NzM6NTJjMjllYmQ3MThjODM2OWRjNmFiNmIzOTc2MmM3OTY6MTY2NjE3MDkxMg==",
			"links": {
				"item": "https://www.virustotal.com/api/v3/private/files/16f6c6439c5b971218b9cd1d616ba40c7cad08c94984ecfde443dfa3c61c6152",
				"self": "https://www.virustotal.com/api/v3/private/analyses/NTJjNTM1MThmMzhiNWRiNGE1ZWQ5ZDhiZjQyNWY2NzM6NTJjMjllYmQ3MThjODM2OWRjNmFiNmIzOTc2MmM3OTY6MTY2NjE3MDkxMg=="
			}
		}
	],
	"links": {
		"self": "https://www.virustotal.com/api/v3/private/analyses?limit=1",
		"next": "https://www.virustotal.com/api/v3/private/analyses?cursor=1&limit=1"
	}
}

Error responses

HTTP statusError codeDescription
400BadRequestError or InvalidArgumentErrorInvalid query parameters, a filter modifier (owner: or item_type:) specified more than once (BadRequestError), or an unsupported item_type value (InvalidArgumentError).
403ForbiddenErrorCaller lacks Private Scanning access, does not belong to a group with Private Scanning access, or owner:<user_id> specifies a non-existent user or a user outside the caller's Private Scanning group.
Query Params
int32
0 to 40
Defaults to 10

Maximum number of analyses to retrieve (40 max)

string

Continuation cursor

string
Defaults to date-

Sorting order: date- (most recent first, default) or date+ / date (oldest first).

string

Optional space-separated filter supporting only owner:<user_id> (literal user ID; owner:me is not supported) and item_type:<file|url>. Combining both applies an implicit AND. Boolean operators (OR, NOT, AND, -) are not supported; repeating a modifier returns 400; unrecognized modifiers are silently ignored.

Headers
string
required

Your API key

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json