By Ehsan Fazli
A lightweight Node.js wrapper for VirusTotal with:
- Multi-API key rotation
- Full support for all core VT features
- Memory-based file handling (no disk write)
- Fully compatible with Vercel
git clone https://github.com/tsshack/vir.git
cd virustotal-api-wrapper
npm installCreate a .env file:
VT_API_KEYS=your_key_1,your_key_2,your_key_3All responses are wrapped like this:
{
"author": "ehsan fazli",
"success": true,
"result": { ... }
}POST /scan/filemultipart/form-data- Body:
file
POST /scan/url- JSON Body:
{ "url": "http://example.com" }
- JSON Body:
GET /scan/url?url=http://example.com
POST /info/domain- Body:
{ "domain": "example.com" }
- Body:
GET /info/domain?domain=example.com
POST /info/ip- Body:
{ "ip": "8.8.8.8" }
- Body:
GET /info/ip?ip=8.8.8.8
POST /report/hash- Body:
{ "hash": "HASH_VALUE" }
- Body:
GET /report/hash?hash=HASH_VALUE
- Auto-rotating API keys
- Direct file upload from memory (buffer)
- Friendly for serverless platforms like Vercel
- Neat JSON response with author credit
.
├── index.js
├── vt.js
├── withAuthor.js
├── package.json
├── vercel.json
└── .env.example
Ehsan Fazli
Telegram : @abj0o
Email: ehsanfazlinejad@gmail.com
MIT © Ehsan Fazli