Skip to main content

ANY.RUN logo


PyPI version Downloads

ANY.RUN SDK

This is the official Python client library for ANY.RUN, supporting the cybersecurity solutions like the Interactive Sandbox, TI Lookup, and TI Feeds.
With this library you can interact with the ANY.RUN REST API and automate your workflow quickly and efficiently.

Available features

  • Built-in objects iterator and exception handling
  • Synchronous and asynchronous interface
  • Python 3.9-3.13 support

Sandbox API

ANY.RUN Sandbox is an online interactive sandbox for malware analysis, a tool for detection, monitoring, and research of cyber threats in real time.

  • Submit files and URLs for analysis
  • Monitor analysis progress in real-time
  • Get detailed reports
  • Manage the tasks

TI Lookup is a searchable database of IOCs, IOAs, IOBs, and events for threat hunting and a service for browsing malicious files by their content. Perform deep searches, look up threats online, and enrich your security solutions.

  • Look up URLs and file hashes
  • Search for IOCs using YARA rules
  • Get threat intelligence data
  • Monitor search progress in real time
  • Get detailed analysis results

TI Feeds API

Threat Intelligence Feeds provide data on the known indicators of compromise: malicious IPs, URLs, Domains Supports the TAXII STIX feed format.

Note:

You can access ANY.RUN services using an API key without a prefix. Legacy access methods are supported for backward compatibility but will be removed in future releases.

API key format: WmNfqnpo...2Sjon7mtvm8e 

The library public interface overview

import os
from anyrun.connectors import SandboxConnector


def main():
    with SandboxConnector.android(api_key) as connector:
        # Initialize the url analysis
        analysis_id = connector.run_url_analysis('https://any.run')
        print(f'Analysis successfully initialized. Analysis uuid: {analysis_id}')
        
        # View analysis status in real time
        for status in connector.get_task_status(analysis_id):
            print(status)
        
        # Get analysis verdict
        verdict = connector.get_analysis_verdict(analysis_id)
        
        if verdict in ('Suspicious', 'Malicious'):
            # Get analysis report
            connector.get_analysis_report(analysis_id, report_format='html', filepath='.')
        
        # Remove the analysis from history
        connector.delete_task(analysis_id)


if __name__ == '__main__':
    # Setup ANY.RUN api key
    api_key = os.getenv('ANY_RUN_Sandbox_API_KEY')
    main()

You can find additional usage examples here

Installation Guide

You can install the SDK using pip or any other package manager

$ pip install anyrun-sdk

Also, you can install the SDK manually using pyproject.toml

$ git clone git@github.com:anyrun/anyrun-sdk.git
$ cd anyrun-sdk
$ python -m pip install .

Useful links

Sandbox API documentation
TI Lookup API documentation
TI Feeds API documentation

Contact us

Sales, demo and trial inquiries - sales@any.run
Technical support - techsupport@any.run
Public relations and partnerships – pr@any.run

Metadata

Release files for anyrun-sdk 1.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anyrun-sdk 1.16.0
File Size Uploaded Provenance Actions
anyrun_sdk-1.16.0.tar.gz 37.6 kB With provenance Details for anyrun_sdk-1.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anyrun-sdk 1.16.0
File Interpreter ABI Platform Actions
anyrun_sdk-1.16.0-py3-none-any.whl Python 3 none any Details for anyrun_sdk-1.16.0-py3-none-any.whl

Total release size: 93.7 kB

Release files / anyrun_sdk-1.16.0.tar.gz

Download URL anyrun_sdk-1.16.0.tar.gz
Size 37.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b56b5b635e76e37d60f358a342c156c97110211b9d744a08a159f0b45d36a305
BLAKE2b-256 checksum
How to use checksums
ef170d2c4f7ff63ad26ea0a0d2111def1f4cdcd02d6a15ac995a298cb129545d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / anyrun_sdk-1.16.0-py3-none-any.whl

Download URL anyrun_sdk-1.16.0-py3-none-any.whl
Size 56.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47a73fea8f76f4e6767c610fea78c45b078c7c3871bdfc9faa92d6b819664468
BLAKE2b-256 checksum
How to use checksums
b8684ad801dd7f133a8acbe78ae9c62a232770ae69127ae33c1add88684ecf41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for anyrun-sdk 1.16.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for anyrun_sdk-1.16.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.16.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page