Search results
Your first query
Request an API key and confirm its permissions with VirusSign. Use the public API base URL below. Use your own issued key in the examples.
https://api.virussign.comSet VIRUSSIGN_API_KEY in your local environment, then query an indicator. The examples use example.com as a placeholder.
Choose a language below. Run these examples locally or on your server; keep the key out of public browser code. Each example makes one request and prints the response.
Enable JavaScript to switch languages. The cURL example remains available.
POSIX shell · cURL 7.76+.
curl --fail-with-body --silent --show-error --get "https://api.virussign.com/v1/ioc/domains/example.com" \
--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
response = requests.get(
"https://api.virussign.com/v1/ioc/domains/example.com",
headers={"x-api-key": os.environ["VIRUSSIGN_API_KEY"]},
timeout=(5, 30),
allow_redirects=False,
)
if response.status_code == 404:
print("No available record; this does not mean safe.")
elif 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.
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/domains/example.com");
const response = await fetch(endpoint, {
headers: {"x-api-key": key},
signal: AbortSignal.timeout(30000),
redirect: "error",
});
if (response.status === 404) {
console.log("No available record; this does not mean safe.");
} else 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/domains/example.com";
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).GET().build();
HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString(StandardCharsets.UTF_8));
if (response.statusCode() == 404) {
System.out.println("No available record; this does not mean safe.");
} else 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/domains/example.com"
request, err := http.NewRequest(http.MethodGet, endpoint, nil)
if err != nil { return err }
request.Header.Set("x-api-key", key)
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 == 404 {
fmt.Println("No available record; this does not mean safe.")
return nil
}
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/domains/example.com";
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 response = await client.GetAsync(endpoint);
if (response.StatusCode == HttpStatusCode.NotFound)
Console.WriteLine("No available record; this does not mean safe.");
else 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/domains/example.com";
$curl = curl_init($endpoint);
curl_setopt_array($curl, [
CURLOPT_HTTPHEADER => ['x-api-key: ' . $key],
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 === 404) {
echo "No available record; this does not mean safe.\n";
} elseif ($status !== 200) {
throw new RuntimeException("HTTP " . $status);
} else {
echo $body, PHP_EOL;
}Use the OpenAPI specification
The OpenAPI 3.1 specification (JSON) describes the API’s endpoints, parameters, authentication and response structures. Import it into an API client such as Postman to prepare requests, or use it with compatible tools to generate integration code. It contains no intelligence records or API keys.
Get started in Postman
- Download the JSON file using Download OpenAPI.
- In Postman, select Import and choose the file. Import it as a collection, or generate a collection from the imported specification.
- Check that the API base URL is
https://api.virussign.com. Set the collection’s API Key authorization header tox-api-keyand use a local secret variable for your issued key. - Choose an endpoint, replace its example or placeholder indicator, and send the request. The request must be within your key’s permissions and uses your API quota.
Downloading or importing the specification does not make API requests or grant access. You can also follow the language examples directly without downloading it. Generated clients may need adjustments for optional response fields and pagination.
Authentication & access
You can also connect your API key to this website to investigate indicators using your account’s permissions and quota. Queries made with your connected key and direct API requests share your account’s quota.
Send your API key in the x-api-key HTTP header over HTTPS. Keep the key in server-side configuration or an environment variable. Do not embed it in public JavaScript, page URLs or source control.
| Access | Behavior |
|---|---|
| IOC and relationship queries | Use /v1/ioc/… with your issued API key. Available fields depend on the indicator, requested view and your account permissions. |
| Feed events | Use /v1/feed/events with a key that has feed permission. IOC access alone does not include feed access. |
| Account scope | Your account defines permissions, field availability, quota and expiry. |
Public website reports can include selected behavioral, technical and investigation context without a connected key. This does not grant Pro API access; direct API requests use the permissions of your issued key.
The website presents selected intelligence. The API provides authorized structured responses for integration; website display and export limits do not define API field availability.
The public website and the API are separate access surfaces. Website access does not grant permission to redistribute intelligence or integrate it into a commercial service.
Explore the reference
- IOC lookup
Query file hashes, IP addresses, domains and URLs. Understand shared response fields, detection signals and actor context.
- Files
Reference file hashes, PE metadata, signatures, behavior, MITRE ATT&CK and MBC mappings, DNS activity and potential C2 connections.
- IP addresses
Reference IP geolocation, network ownership, service observations, certificates and passive DNS fields.
- Domains
Reference domain profiles, DGA signals, registration data, DNS records, certificate summaries and passive DNS fields.
- URLs
Reference URL identifiers, host information, HTTP observations and threat assessments.
- Relationships
Explore connected indicators and page through related files, hosts, URLs, WHOIS, certificates and resolution records.
- Intelligence feeds
Integrate VirusSign feed events, snapshots and STIX 2.1 output with field references, examples and continuation checkpoints.
- Usage & errors
Understand query credit costs, feed billing, error responses, retries and production integration practices.
JSON examples use illustrative data to show fields and usage.