Search results
Submit a batch
POST /v1/ioc/bulk screens a mixed list of MD5, SHA-1 or SHA-256 hashes, domains, IP addresses and complete URLs. Use an API key with lightweight IOC lookup access. To investigate a match in more detail, use single-indicator lookup.
Send 1–1,000 entries per request. For a text file, use one indicator per line. Spaces and tabs also separate entries. To send a list from code, use application/json with an array of strings. Split larger lists into batches and back off on HTTP 429.
beacon.example
192.0.2.10
beacon.exampleEnable JavaScript to switch languages. The cURL example remains available.
POSIX shell · cURL 7.76+.
curl --fail-with-body --silent --show-error --header "Content-Type: text/plain" --data-binary @indicators.txt "https://api.virussign.com/v1/ioc/bulk" \
--connect-timeout 5 --max-time 30 \
--header "x-api-key: ${VIRUSSIGN_API_KEY:?Set VIRUSSIGN_API_KEY}"Python 3 · Install requests: python -m pip install requests.
import os
import requests
from pathlib import Path
response = requests.post(
"https://api.virussign.com/v1/ioc/bulk",
headers={"x-api-key": os.environ["VIRUSSIGN_API_KEY"], "Content-Type": "text/plain"},
data=Path("indicators.txt").read_bytes(),
timeout=(5, 30),
allow_redirects=False,
)
if response.status_code != 200:
raise RuntimeError(f"HTTP {response.status_code}")
else:
print(response.json())Node.js 22+ · Save as lookup.mjs; run node lookup.mjs. Server-side only.
import { readFile } from "node:fs/promises";
const key = process.env.VIRUSSIGN_API_KEY;
if (!key) throw new Error("Set VIRUSSIGN_API_KEY");
const endpoint = new URL("https://api.virussign.com/v1/ioc/bulk");
const response = await fetch(endpoint, {
method: "POST", body: await readFile("indicators.txt"),
headers: {"x-api-key": key, "Content-Type": "text/plain"},
signal: AbortSignal.timeout(30000),
redirect: "error",
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
} else {
console.log(await response.json());
}JDK 17+ · Save as Lookup.java; run java Lookup.java.
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
public class Lookup {
public static void main(String[] args) throws Exception {
String key = System.getenv("VIRUSSIGN_API_KEY");
if (key == null || key.isBlank()) {
throw new IllegalStateException("Set VIRUSSIGN_API_KEY");
}
String endpoint = "https://api.virussign.com/v1/ioc/bulk";
HttpClient client = HttpClient.newBuilder()
.connectTimeout(Duration.ofSeconds(5)).build();
HttpRequest request = HttpRequest.newBuilder(URI.create(endpoint))
.timeout(Duration.ofSeconds(30))
.header("x-api-key", key).header("Content-Type", "text/plain").POST(HttpRequest.BodyPublishers.ofFile(java.nio.file.Path.of("indicators.txt"))).build();
HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString(StandardCharsets.UTF_8));
if (response.statusCode() != 200) {
throw new java.io.IOException("HTTP " + response.statusCode());
} else {
System.out.println(response.body());
}
}
}Go 1.24+ · Save as lookup.go; run go run lookup.go. Standard library only.
package main
import (
"fmt"
"io"
"net/http"
"os"
"time"
)
func main() {
if err := lookup(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
func lookup() error {
key := os.Getenv("VIRUSSIGN_API_KEY")
if key == "" { return fmt.Errorf("Set VIRUSSIGN_API_KEY") }
endpoint := "https://api.virussign.com/v1/ioc/bulk"
file, err := os.Open("indicators.txt")
if err != nil { return err }
defer file.Close()
request, err := http.NewRequest(http.MethodPost, endpoint, file)
if err != nil { return err }
request.Header.Set("x-api-key", key)
request.Header.Set("Content-Type", "text/plain")
client := &http.Client{
Timeout: 30 * time.Second,
CheckRedirect: func(req *http.Request, via []*http.Request) error {
return http.ErrUseLastResponse
},
}
response, err := client.Do(request)
if err != nil { return err }
defer response.Body.Close()
if response.StatusCode != 200 { return fmt.Errorf("HTTP %d", response.StatusCode) }
_, err = io.Copy(os.Stdout, response.Body)
return err
}.NET 8+ · Create a console app with dotnet new console, replace Program.cs, then dotnet run.
using System;
using System.Net;
using System.Net.Http;
string? key = Environment.GetEnvironmentVariable("VIRUSSIGN_API_KEY");
if (string.IsNullOrWhiteSpace(key))
throw new InvalidOperationException("Set VIRUSSIGN_API_KEY");
string endpoint = "https://api.virussign.com/v1/ioc/bulk";
using var handler = new HttpClientHandler { AllowAutoRedirect = false };
using var client = new HttpClient(handler) { Timeout = TimeSpan.FromSeconds(30) };
client.DefaultRequestHeaders.Add("x-api-key", key);
using var content = new StreamContent(System.IO.File.OpenRead("indicators.txt"));
content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("text/plain");
using var response = await client.PostAsync(endpoint, content);
if (response.StatusCode != HttpStatusCode.OK)
throw new HttpRequestException($"HTTP {(int)response.StatusCode}");
else
{
Console.WriteLine(await response.Content.ReadAsStringAsync());
}PHP 8.3+ with the cURL extension · Save as lookup.php; run php lookup.php.
<?php
$key = getenv('VIRUSSIGN_API_KEY');
if (!$key) { throw new RuntimeException('Set VIRUSSIGN_API_KEY'); }
$endpoint = "https://api.virussign.com/v1/ioc/bulk";
$input = file_get_contents("indicators.txt");
if ($input === false) { throw new RuntimeException("Cannot read indicators.txt"); }
$curl = curl_init($endpoint);
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $input,
CURLOPT_HTTPHEADER => ['x-api-key: ' . $key, "Content-Type: text/plain"],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_CONNECTTIMEOUT => 5,
CURLOPT_TIMEOUT => 30,
]);
$body = curl_exec($curl);
if ($body === false) { throw new RuntimeException(curl_error($curl)); }
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
unset($curl);
if ($status !== 200) {
throw new RuntimeException("HTTP " . $status);
} else {
echo $body, PHP_EOL;
}Read the matches
Only matching records appear in items. Use each record’s indices to find its input positions, starting at zero. In the illustrative response, [0, 2] refers to both occurrences of beacon.example. Results can arrive in a different order from the input. An omitted indicator has no reported match in this scan. Its safety remains undetermined.
Cost per batch
Each request uses one query unit per started block of 50 submitted indicators, including duplicates and unmatched entries. At the standard rate, 1–50 entries cost 1 credit, 51–100 cost 2, and 1,000 cost 20. Each batch rounds up separately. Remove duplicates before submitting to conserve quota. See credits and usage for account-specific rates.
* Prices and credit rates are subject to change.Fields are conditional unless stated otherwise. Types below describe populated values; optional values may also be null. Access labels describe capability, not guaranteed data for every indicator.
Responses
metaobjectBatch usage and response metadata.
| Field | Type | Meaning |
|---|---|---|
request_id | string | Request identifier for support. |
timestamp | string | Response time. ISO 8601 timestamp with timezone. |
took_ms | integer | Processing time in milliseconds. |
quota_remaining | integer | Credits or cycle quota remaining after this request. |
requested | integer | Number of input entries, including duplicates. |
returned | integer | Number of records in items. |
items[]array<object>Matching records only.
| Field | Type | Meaning |
|---|---|---|
indices | array<integer> | Zero-based input positions for this match. |
type | string | Indicator type. |
family | array<string> | Reported family names or classification labels. |
severity | string | Reported severity level. |
confidence | number | Confidence in the assessment. Scale: 0–100; not a probability. |
detections | number | Percentage of reporting engines with a positive detection. Scale: 0–100; not a probability. |
Illustrative response
Illustrative data showing the response structure. Optional fields may be omitted.
{
"meta": {
"request_id": "example-request",
"timestamp": "2026-01-15T12:00:00Z",
"quota_remaining": 99,
"took_ms": 12,
"requested": 3,
"returned": 1
},
"items": [
{
"indices": [
0,
2
],
"type": "domain",
"family": [
"ExampleFamily"
],
"severity": "high",
"confidence": 70,
"detections": 45
}
]
}