Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
symbolic link 77 lines (61 sloc) 1.88 KB

Build Status

VirusTotal C API library This libary is designed to work with both the:

Runtime Dependencies

  • curl or libcurl (curl-devel package on some distributions)
  • janson version 2.2 (min) (2.5 or newer recommeded. janson-devel on some distros)

Compiling Dependencies

  • automake, autoconf (might be autotools package on your platform)
  • gcc
  • libtool

Debian or Ubuntu Dependencies:

sudo apt-get install automake autoconf libtool libjansson-dev libcurl4-openssl-dev

Redhat, Fedora, Centos or RPM based distros:

yum install libtool jansson-devel libcurl-devel

To compile on Linux, BSD, or Mac OS X:

autoreconf -fi
sudo make install

If you wish to build the examples in the 'examples' directory:

autoreconf -fi
./configure --enable-examples
sudo make install

If you have doxygen installed on your system you may optionally generate developer doxygen docs:

make doxygen-doc

Usage on MS Windows is partially functioal now, but requires more patches to be fully supported.

Windows compilation:

* Installl mingw
  *  mingw32 gcc-g++
  *  mingw32-autoconf
  *  mingw32-automake
* compile libcurl  (See their docs on windows compile)

Windows compilation (MS Visual Studio)

  • install MS Visual Studio 2013
  • install CMake
  • Compile jansson (see janson docs)
  • Compile curl (see janson docs)

See Examples in examples/ For some example test programs using API.

url --apikey=YOUR_KEY --scan
url --apikey=YOUR_KEY --report

scan --help
./scan --apikey YOUR_KEY --filescan /bin/ls
./scan --apikey YOUR_KEY --report HASH