ScanMalware Files API

The files API from ScanMalware — 3 operation(s) for files.

GitHub OpenAPI

Operations 3

GET /api/v1/files/{sha256} Get File #
GET /api/v1/files/{sha256}/script Get File Script #
GET /api/v1/files/{sha256}/script/download Download File Script #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/scanmalware-com:scanmalware-com-files-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

scanmalware-com-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ScanMalware Files API
  description: URL Security Scanner API
  version: 1.0.0
tags:
- name: Files
paths:
  /api/v1/files/{sha256}:
    get:
      tags:
      - Files
      summary: Get File
      description: 'One file that a public scan delivered (a download, a direct link to the file, a page''s download link, a command

        put on the clipboard) or that was found inside such a file, with what reading it found: `profile` holds its type,

        size and hashes, its verdict and the reasons for it (`reasons`; `page_only` when the only reason is the page that

        offered it), the worst verdict anywhere inside it (`worst`), the files inside it (`tree`), Windows program details

        (`pe`: signature, version information, compiler, build time, imports and exports, debug file), what its code can

        do (`capabilities`, with ATT&CK techniques; `behaviours` and `tactics`), the libraries it contains (`libraries`, with how

        each was recognised), rules that matched, antivirus detection names, document, script,

        shortcut and installer findings (`types`), next-stage and embedded URLs, and identifiers that tie it to other

        files (`identifiers`, each with `other_files`: how many other downloads on public scans carry it). `executed` is true

        when anything in it was run during analysis; everything else was read without running it. URLs whose host is not an

        address (code fragments) are left out, and `widely_used` maps the URL hosts that are widely used sites to their rank.

        `magic` is the file''s signature description, `content_type` its type read from its content (`reliable` is false for

        text and low-confidence results, which the page does not show), `pe` adds the program''s icon (base64 PNG), fuzzy

        hashes, sections, imported libraries, resources, requested privilege level and exploit mitigations, and `code` the

        programming language and crypto algorithms found in it. Each `seen` item carries `served_as`, the Content-Type

        the server sent with the file.

        `isolated_run` is what was observed when a page''s pasted command ran in an isolated environment: `executed`, runs

        whose input this file was, and `served`, runs that were handed this file as a download (each null when none).

        `analysis_state` is `complete`, `running` or `not_run` (deeper analysis was not run) for a submitted file.

        `origin` says where a PowerShell script with no file name came from (null otherwise): `kind` `command` (the command

        itself; `source` `page` when the page showed it, `clipboard` when it put it on the clipboard, `download` when it

        offered it as a download, or null), `fetched` (a script fetched from `from_host`) or `stage` (code such a command

        ran, with the command''s `source`), and `host`, the scanned page''s host, from the first public scan that says.

        `seen` lists the public scans that delivered it (newest first), `contained_in` the files it was found inside,

        `inside` the findings of up to three of the most telling files inside it, `similar` files on public scans whose code

        or fuzzy hash is close to it or to a file inside it (similar, not proof of a link), and `related` other files on public scans that share build traits with it. `status` is `analysing` while the

        first analysis runs and `not_analysed` when it could not be analysed. Files seen only on private or unlisted

        scans are not shown.'
      operationId: get_file_api_v1_files__sha256__get
      parameters:
      - name: sha256
        in: path
        required: true
        schema:
          type: string
          description: SHA-256 of the file (64 hex characters)
          title: Sha256
        description: SHA-256 of the file (64 hex characters)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Get File Api V1 Files  Sha256  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/files/{sha256}/script:
    get:
      tags:
      - Files
      summary: Get File Script
      description: 'The text of a PowerShell script that has a file page, for signed-in users (a `Bearer` token from the website).

        `available` is false with `reason` `not_kept` when we hold no copy of it, or `not_shown` when it is one we never

        publish; otherwise `text` is the script decoded as `encoding`, at most 262,144 characters (`truncated` says when it

        was cut; the download has the whole file). Characters that make code read differently from how it runs

        (bidirectional overrides) and control characters are replaced by visible markers such as ``; `size` and

        `sha256` are those of the original bytes. It is the attacker''s code: show it as text, never run it.'
      operationId: get_file_script_api_v1_files__sha256__script_get
      security:
      - HTTPBearer: []
      parameters:
      - name: sha256
        in: path
        required: true
        schema:
          type: string
          description: SHA-256 of the file (64 hex characters)
          title: Sha256
        description: SHA-256 of the file (64 hex characters)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/files/{sha256}/script/download:
    get:
      tags:
      - Files
      summary: Download File Script
      description: 'The PowerShell script as a ZIP with the password `infected` (the usual convention for sharing malware: it keeps the

        file from being opened or quarantined by accident), for signed-in users. The archive holds `.ps1`, the

        original bytes. A script with no file name of its own is downloaded as `_.zip`

        (`clipboard-command-from-_…`, the file page''s `origin` in ASCII), any other as `.zip`. 404 when the

        file has no page, is not a PowerShell script, or is not available to view.'
      operationId: download_file_script_api_v1_files__sha256__script_download_get
      security:
      - HTTPBearer: []
      parameters:
      - name: sha256
        in: path
        required: true
        schema:
          type: string
          description: SHA-256 of the file (64 hex characters)
          title: Sha256
        description: SHA-256 of the file (64 hex characters)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    OptionalHTTPBearer:
      type: http
      scheme: bearer
    HTTPBearer:
      type: http
      scheme: bearer