# ANY.RUN API reference

> ANY.RUN publishes two APIs under one host: a Sandbox API for interactive malware analysis (submit a file or URL, read the report, IOCs and AI summary) and a Threat Intelligence API (TI Lookup search over indicators, YARA search, TAXII 2 feeds). This reference covers the read endpoints useful in an…

Source: https://osinttools.io/apis/any-run/ (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/any-run/

- Base URL: https://api.any.run
- Authentication: API key in the `Authorization` header. Value is "API-Key YOUR_API_KEY", including the prefix.
- Rate limits: Not stated in the docs as a fixed figure; GET /v1/user/ returns the account's per-minute, hour, day and month API limits.
- Vendor docs: https://any.run/api-documentation/
- Python SDK: anyrun-sdk, https://github.com/anyrun/anyrun-sdk

## Overview

ANY.RUN publishes two APIs under one host: a Sandbox API for interactive malware analysis (submit a file or URL, read the report, IOCs and AI summary) and a Threat Intelligence API (TI Lookup search over indicators, YARA search, TAXII 2 feeds).

This reference covers the read endpoints useful in an investigation: task history, a task report and its IOCs, the environment and limits listings, and the TI Lookup search. Submitting a file or URL for analysis (`POST /v1/analysis/`) is a multipart form upload and is not described here; TAXII feeds and YARA search are also left out. See the [official reference](https://any.run/api-documentation/) for them.

Requests go to `https://api.any.run` with the header `Authorization: API-Key YOUR_API_KEY` (the literal prefix `API-Key ` is part of the value). The Sandbox spec also lists HTTP Basic authentication. The TI Lookup spec lists 400, 401, 402 (payment required), 403, 429 and 500 responses.

## Errors

| Status | Meaning |
| --- | --- |
| 400 | Bad request |
| 401 | Unauthorized |
| 402 | Payment required (TI Lookup) |
| 403 | Forbidden |
| 429 | Too many requests |
| 500 | Internal server error |

## Threat Intelligence

### Search TI Lookup by IP, domain, URL, file hash or a structured field query.

`POST /v1/intelligence/api/search`

- Takes: IP address, Domain, URL, File
- Footprint: passive (the target is not contacted)

Returns related incidents, files, DNS records, URLs, network threats, destination IPs and source analyses associated with the indicator. The query accepts an indicator or a structured field query with boolean operators.

Response fields:

- `destinationPort` (array): Destination port numbers
- `destinationIPgeo` (array): Destination IP countries
- `destinationIpAsn[].asn` (string): Destination IP autonomous system
- `relatedTasks` (array): Links to related ANY.RUN sandbox analyses
- `threatName[].threatName` (string): Threat name
- `threatName[].count` (number): Count for the threat name
- `submissionCountries[].countryName` (string): Country of submissions
- `industries[].industryName` (string): Industry
- `relatedIncidents[].task` (string): Link to the sandbox analysis
- `relatedIncidents[].time` (string): Creation time
- `relatedIncidents[].MITRE` (array): MITRE technique ids

```bash
curl -X POST 'https://api.any.run/v1/intelligence/api/search' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"query":"example.com","startDate":"2026-01-01","endDate":"2026-11-29"}'
```

Example response (200):

```json
{
  "destinationPort": [
    443
  ],
  "destinationIPgeo": [
    "NL"
  ],
  "relatedTasks": [
    "https://app.any.run/tasks/00000000-0000-0000-0000-000000000000"
  ],
  "threatName": [
    {
      "threatName": "example-family",
      "count": 3
    }
  ],
  "relatedIncidents": [
    {
      "task": "https://app.any.run/tasks/00000000-0000-0000-0000-000000000000",
      "time": "2026-05-01T10:00:00Z",
      "MITRE": [
        "T1071"
      ]
    }
  ]
}
```

## Sandbox

### List the account's last analysis tasks (up to 100) with basic information.

`GET /v1/analysis/`

- Footprint: passive (the target is not contacted)

Use team=true to read the team's history.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `team` | query | boolean | no | Set to true to receive team history Example: false |
| `skip` | query | integer | no | Number of elements to skip Example: 0 |
| `limit` | query | integer | no | Number of elements returned Example: 25 |

Response fields:

- `[].uuid` (string): Task UUID
- `[].verdict` (string): Overall threat level
- `[].name` (string): Name of the main object
- `[].related` (string): URL of the analysis report
- `[].json` (string): URL of the JSON report
- `[].date` (string): Creation time of the analysis
- `[].tags` (array): Tags
- `[].hashes.sha256` (string): SHA256 of the object

```bash
curl 'https://api.any.run/v1/analysis/' \
  -H 'Authorization: YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "uuid": "00000000-0000-0000-0000-000000000000",
    "verdict": "No threats detected",
    "name": "sample.exe",
    "related": "https://app.any.run/tasks/00000000-0000-0000-0000-000000000000",
    "date": "2026-05-01T10:00:00Z",
    "tags": [
      "example"
    ],
    "hashes": {
      "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
    }
  }
]
```

### Get the analysis report of a submission by its task ID.

`GET /v1/analysis/{taskUuid}`

- Footprint: passive (the target is not contacted)

Returns the full report under data; the schema in the docs does not break the report down further.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `taskUuid` | path | string | yes | Task UUID Example: 00000000-0000-0000-0000-000000000000 |

Response fields:

- `error` (boolean): False for a successful request
- `data` (object): Report data

```bash
curl 'https://api.any.run/v1/analysis/00000000-0000-0000-0000-000000000000' \
  -H 'Authorization: YOUR_API_KEY'
```

Example response (200):

```json
{
  "error": false,
  "data": {
    "analysis": {
      "uuid": "00000000-0000-0000-0000-000000000000"
    }
  }
}
```

### Get the IOCs extracted from a submission's analysis.

`GET /report/{taskUuid}/ioc/json`

- Footprint: passive (the target is not contacted)

Returns indicators of compromise with category, type, value and reputation.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `taskUuid` | path | string | yes | Task UUID Example: 00000000-0000-0000-0000-000000000000 |

Response fields:

- `[].category` (string): IOC category
- `[].type` (string): IOC type
- `[].name` (string): IOC name
- `[].ioc` (string): IOC value
- `[].reputation` (integer): Numeric reputation

```bash
curl 'https://api.any.run/report/00000000-0000-0000-0000-000000000000/ioc/json' \
  -H 'Authorization: YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "category": "network",
    "type": "domain",
    "name": "example.com",
    "ioc": "example.com",
    "reputation": 0
  }
]
```

## Account

### List the sandbox environment configurations available.

`GET /v1/environment/`

- Footprint: passive (the target is not contacted)

Operating system, version, bitness, build and installed software for each environment.

Response fields:

- `[].os` (string): Operating system name
- `[].version` (string): Major version
- `[].bitness` (integer): 32 or 64 bit
- `[].build` (integer): Build number
- `[].software.apps[].name` (string): Installed application

```bash
curl 'https://api.any.run/v1/environment/' \
  -H 'Authorization: YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "os": "Windows",
    "version": "10",
    "bitness": 64,
    "build": 19044,
    "software": {
      "apps": [
        {
          "name": "Example App",
          "version": "1.0"
        }
      ]
    }
  }
]
```

### Get the account's API, web and parallel-run limits.

`GET /v1/user/`

- Footprint: passive (the target is not contacted)

A value of -1 means unlimited.

Response fields:

- `web.minute` (integer): Interactive usage limit per minute
- `api.minute` (integer): API usage limit per minute
- `api.day` (integer): API usage limit per day
- `parallels.total` (integer): Total parallel runs
- `parallels.available` (integer): Parallel runs available

```bash
curl 'https://api.any.run/v1/user/' \
  -H 'Authorization: YOUR_API_KEY'
```

Example response (200):

```json
{
  "web": {
    "minute": 5,
    "hour": 50,
    "day": 100,
    "month": 1000
  },
  "api": {
    "minute": 5,
    "hour": 50,
    "day": 100,
    "month": 1000
  },
  "parallels": {
    "total": 2,
    "available": 2
  }
}
```

---

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/
