Skip to main content
POST
Image Scan analyzes an uploaded image for malware, suspicious content, and embedded indicators.

Authentication

Send your API key as Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.

Request

string
required
Set this value to image.
file
The image to scan, uploaded as multipart/form-data. Send this field or content_base64. When you omit filename, the uploaded file’s name is used.
string
For a JSON body, send this field or file. The base64-encoded image. Send raw base64 only. A data URL prefix such as data:image/png;base64, returns 400.
string
The original image file name.
boolean
Set to true to include STIX 2.1 output when available. Defaults to false.

Example request

Upload the image from disk as multipart/form-data. Replace screenshot.png with the path to your image.
To send JSON instead, base64-encode the image into content_base64:

Example response

The example is shortened. A full image result can also include hashes, metadata, appended_data, steganography, ocr_text, ocr_urls, and url_scans.

Image result fields

string
The SHA-256 hash of the decoded image.
object[]
Evidence for the verdict. Each item is an object with source, malicious, detail, and optional severity.
object[]
Indicators of compromise extracted from the image.
See Malware Scan for every image field.

Errors

The API returns 400 for invalid base64 content (including a data: URL prefix) or an unsupported image, 401 for a missing or invalid API key, 402 when your account has insufficient credits, and 429 when you exceed a rate limit.

Credits

A successful scan costs 1 credit. Repeating the same scan kind and content is deduplicated for billing.