ScanMalware Search API

The search API from ScanMalware — 14 operation(s) for search.

GitHub OpenAPI

Operations 14

GET /api/v1/search/favicon/{hash_value} Search By Favicon Hash #
GET /api/v1/search Search Scans #
POST /api/v1/screenshot/search Search Similar Screenshots #
GET /api/v1/search/screenshot/{hash_type}/{hash_value} Search By Screenshot Hash #
GET /api/v1/search/fuzzy/{hash_type} Search By Fuzzy Hash #
GET /api/v1/search/ip/{ip_address} Search By Ip #
GET /api/v1/search/ip/{ip_address}/stats Get Ip Stats #
GET /api/v1/search/asn/{asn_number} Search By Asn #
GET /api/v1/search/similar Search Similar Scans #
GET /api/v1/analyzers/search/high-risk Search Analyzer High Risk Scans #
GET /api/v1/ai/search/classification Search By Classification #
GET /api/v1/ai/search/high-risk Search Ai High Risk Scans #
GET /api/v1/search/semantic Semantic Search #
GET /api/v1/similar/visual/{scan_id} Visual Similar Scans #

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-search-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-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ScanMalware Search API
  description: URL Security Scanner API
  version: 1.0.0
tags:
- name: Search
paths:
  /api/v1/search/favicon/{hash_value}:
    get:
      tags:
      - Search
      summary: Search By Favicon Hash
      description: 'Search for scans by favicon hash (MMH3 or MD5) with pagination

        Returns scan IDs that match the given favicon hash

        Only returns public scans'
      operationId: search_by_favicon_hash_api_v1_search_favicon__hash_value__get
      parameters:
      - name: hash_value
        in: path
        required: true
        schema:
          type: string
          maxLength: 64
          pattern: ^[a-fA-F0-9-]+$
          description: Hash value to search
          title: Hash Value
        description: Hash value to search
      - name: hash_type
        in: query
        required: false
        schema:
          type: string
          pattern: ^(mmh3|md5)$
          description: Type of hash to search
          default: mmh3
          title: Hash Type
        description: Type of hash to search
      - name: page
        in: query
        required: false
        schema:
          type: integer
          maximum: 10000
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Items per page
          default: 20
          title: Limit
        description: Items per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/search:
    get:
      tags:
      - Search
      summary: Search Scans
      description: Search scans by URL, domain, title, or all fields using optimized queries with pagination. Only returns public scans.
      operationId: search_scans_api_v1_search_get
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
          minLength: 3
          description: Search query (minimum 3 characters)
          title: Q
        description: Search query (minimum 3 characters)
      - name: type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            pattern: ^(url|domain|title|technology|yara|all)$
          - type: 'null'
          description: Search type
          default: all
          title: Type
        description: Search type
      - name: page
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Items per page
          default: 20
          title: Limit
        description: Items per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/screenshot/search:
    post:
      tags:
      - Search
      summary: Search Similar Screenshots
      description: 'Search for visually similar screenshots using perceptual hashing.


        Returns public scans whose screenshot hash is within `max_distance` bits of the one given,

        closest first. `hash_type` is one of phash, ahash, dhash, whash.'
      operationId: search_similar_screenshots_api_v1_screenshot_search_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageSearchRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ImageSimilarityResponse'
                type: array
                title: Response Search Similar Screenshots Api V1 Screenshot Search Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/search/screenshot/{hash_type}/{hash_value}:
    get:
      tags:
      - Search
      summary: Search By Screenshot Hash
      description: 'Search for scans by screenshot hash with pagination

        Supports exact match and similarity search for perceptual hashes

        Returns scan IDs that match the given screenshot hash

        Only returns public scans'
      operationId: search_by_screenshot_hash_api_v1_search_screenshot__hash_type___hash_value__get
      parameters:
      - name: hash_type
        in: path
        required: true
        schema:
          type: string
          pattern: ^(ahash|phash|dhash|whash|color_hash|crop_resistant)$
          title: Hash Type
      - name: hash_value
        in: path
        required: true
        schema:
          type: string
          maxLength: 512
          pattern: ^[#a-fA-F0-9,]+$
          description: Hash value to search, any case. A color_hash is 11 hex digits (e.g. 07000000000); a '#rrggbb' color hash (the form stored before 2026-11-08, not an image hash) returns 400. Commas allowed for multi-segment hashes (crop_resistant produces 3-12 comma-joined 16-char chunks)
          title: Hash Value
        description: Hash value to search, any case. A color_hash is 11 hex digits (e.g. 07000000000); a '#rrggbb' color hash (the form stored before 2026-11-08, not an image hash) returns 400. Commas allowed for multi-segment hashes (crop_resistant produces 3-12 comma-joined 16-char chunks)
      - name: similarity_threshold
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            maximum: 64
            minimum: 0
          - type: 'null'
          description: 'Hamming distance threshold for similarity search (ahash, phash, dhash and whash only, otherwise 400; the hash must be 16 hex characters or 64 bits). Results are ordered by distance, then newest first, and capped at the 10,000 nearest scans: a `total` of 10001 means more than 10,000'
          title: Similarity Threshold
        description: 'Hamming distance threshold for similarity search (ahash, phash, dhash and whash only, otherwise 400; the hash must be 16 hex characters or 64 bits). Results are ordered by distance, then newest first, and capped at the 10,000 nearest scans: a `total` of 10001 means more than 10,000'
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Items per page
          default: 20
          title: Limit
        description: Items per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/search/fuzzy/{hash_type}:
    get:
      tags:
      - Search
      summary: Search By Fuzzy Hash
      description: Search for scans by fuzzy hash (TLSH, ssdeep, or sdhash). Only returns public scans.
      operationId: search_by_fuzzy_hash_api_v1_search_fuzzy__hash_type__get
      parameters:
      - name: hash_type
        in: path
        required: true
        schema:
          type: string
          pattern: ^(tlsh|ssdeep|sdhash)$
          description: Hash type to search
          title: Hash Type
        description: Hash type to search
      - name: hash_value
        in: query
        required: true
        schema:
          type: string
          minLength: 10
          description: Hash value to search
          title: Hash Value
        description: Hash value to search
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Items per page
          default: 20
          title: Limit
        description: Items per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/search/ip/{ip_address}:
    get:
      tags:
      - Search
      summary: Search By Ip
      description: Search for scans containing a specific IP address. Only returns public scans.
      operationId: search_by_ip_api_v1_search_ip__ip_address__get
      parameters:
      - name: ip_address
        in: path
        required: true
        schema:
          type: string
          description: IP address to search for
          title: Ip Address
        description: IP address to search for
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Items per page
          default: 20
          title: Limit
        description: Items per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/search/ip/{ip_address}/stats:
    get:
      tags:
      - Search
      summary: Get Ip Stats
      description: Get detailed statistics and enrichment data for an IP address
      operationId: get_ip_stats_api_v1_search_ip__ip_address__stats_get
      parameters:
      - name: ip_address
        in: path
        required: true
        schema:
          type: string
          description: IP address to get statistics for
          title: Ip Address
        description: IP address to get statistics for
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          description: Items per page
          default: 50
          title: Limit
        description: Items per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/search/asn/{asn_number}:
    get:
      tags:
      - Search
      summary: Search By Asn
      description: Search for scans by AS number - uses indexed ASN columns for fast lookup with pagination
      operationId: search_by_asn_api_v1_search_asn__asn_number__get
      parameters:
      - name: asn_number
        in: path
        required: true
        schema:
          type: integer
          description: AS number to search for
          title: Asn Number
        description: AS number to search for
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          description: Items per page
          default: 50
          title: Limit
        description: Items per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/search/similar:
    get:
      tags:
      - Search
      summary: Search Similar Scans
      description: 'Find scans similar to a given scan using multiple hash methods with pagination.

        Combines results from screenshot, favicon, and fuzzy hash matching.

        Only returns public scans.'
      operationId: search_similar_scans_api_v1_search_similar_get
      parameters:
      - name: scan_id
        in: query
        required: true
        schema:
          type: string
          description: Base scan ID to find similar scans for
          title: Scan Id
        description: Base scan ID to find similar scans for
      - name: methods
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          description: 'Methods to use for similarity: screenshot, favicon, fuzzy'
          default:
          - screenshot
          title: Methods
        description: 'Methods to use for similarity: screenshot, favicon, fuzzy'
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Items per page
          default: 20
          title: Limit
        description: Items per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/analyzers/search/high-risk:
    get:
      tags:
      - Search
      summary: Search Analyzer High Risk Scans
      description: 'Search for scans with high risk scores from security analyzer.


        `min_risk_score` is on the rule engine''s **0-100** scale. The AI equivalent,

        `/api/v1/ai/search/high-risk`, uses a **0-10** scale.'
      operationId: search_analyzer_high_risk_scans_api_v1_analyzers_search_high_risk_get
      parameters:
      - name: min_risk_score
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 0
          description: 'Minimum rule-engine risk score, on a 0-100 scale (security_verdict.overall_score). NOTE: /api/v1/ai/search/high-risk takes a min_risk_score on a 0-10 scale instead -- the two engines score on different scales and the parameter is not interchangeable.'
          default: 50
          title: Min Risk Score
        description: 'Minimum rule-engine risk score, on a 0-100 scale (security_verdict.overall_score). NOTE: /api/v1/ai/search/high-risk takes a min_risk_score on a 0-10 scale instead -- the two engines score on different scales and the parameter is not interchangeable.'
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Items per page
          default: 20
          title: Limit
        description: Items per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/ai/search/classification:
    get:
      tags:
      - Search
      summary: Search By Classification
      description: Search scans by AI classification.
      operationId: search_by_classification_api_v1_ai_search_classification_get
      parameters:
      - name: classification
        in: query
        required: true
        schema:
          type: string
          pattern: ^(LEGITIMATE|LOW_RISK|MODERATE_RISK|HIGH_RISK|CONFIRMED_SCAM)$
          title: Classification
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          default: 100
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/ai/search/high-risk:
    get:
      tags:
      - Search
      summary: Search Ai High Risk Scans
      description: 'Search for high-risk scans with configurable thresholds.


        Scale caveat: `min_risk_score` here is on the AI engine''s **0-10** scale,

        while the rule-engine endpoint `/api/v1/analyzers/search/high-risk` takes

        **0-100**. `min_confidence` is a **0-100** percentage on this endpoint.'
      operationId: search_ai_high_risk_scans_api_v1_ai_search_high_risk_get
      parameters:
      - name: min_risk_score
        in: query
        required: false
        schema:
          type: integer
          maximum: 10
          minimum: 0
          description: 'Minimum AI risk score, on a 0-10 scale (analysis.risk_score). NOTE: /api/v1/analyzers/search/high-risk takes a min_risk_score on a 0-100 scale instead -- the two engines score on different scales and the parameter is not interchangeable.'
          default: 7
          title: Min Risk Score
        description: 'Minimum AI risk score, on a 0-10 scale (analysis.risk_score). NOTE: /api/v1/analyzers/search/high-risk takes a min_risk_score on a 0-100 scale instead -- the two engines score on different scales and the parameter is not interchangeable.'
      - name: min_confidence
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 0
          description: Minimum AI confidence, as a 0-100 percentage (analysis.confidence_percentage). Unlike min_risk_score this one really is a percentage, so 70 means 70%.
          default: 70
          title: Min Confidence
        description: Minimum AI confidence, as a 0-100 percentage (analysis.confidence_percentage). Unlike min_risk_score this one really is a percentage, so 70 means 70%.
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          description: Maximum results
          default: 100
          title: Limit
        description: Maximum results
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/search/semantic:
    get:
      tags:
      - Search
      summary: Semantic Search
      description: 'Search for websites using natural language descriptions, matched against screenshots.

        Examples: "login page", "e-commerce checkout", "news website", "social media feed"


        With `per_site`, `within` or a `sort` other than `similarity`, results come from the 1,000 nearest screenshots

        and `total_results` counts them exactly; `capped` is true when more matches lie beyond those 1,000.'
      operationId: semantic_search_api_v1_search_semantic_get
      parameters:
      - name: query
        in: query
        required: true
        schema:
          type: string
          minLength: 3
          maxLength: 200
          description: Natural language query to search for visually similar websites
          title: Query
        description: Natural language query to search for visually similar websites
      - name: threshold
        in: query
        required: false
        schema:
          type: number
          maximum: 1.0
          minimum: -1.0
          description: Similarity threshold (-1 to 1, higher = more similar). Similarity is 1 - L2 distance between the text and image embeddings; text-to-image scores typically fall between -0.4 and 0.1, so useful thresholds are around -0.3 to 0.
          default: -0.2
          title: Threshold
        description: Similarity threshold (-1 to 1, higher = more similar). Similarity is 1 - L2 distance between the text and image embeddings; text-to-image scores typically fall between -0.4 and 0.1, so useful thresholds are around -0.3 to 0.
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Results per page
          default: 20
          title: Limit
        description: Results per page
      - name: per_site
        in: query
        required: false
        schema:
          type: boolean
          description: 'One result per site: the closest scan of each host (without "www."), with `site` and `site_scans`, the number of matching scans of that site'
          default: false
          title: Per Site
        description: 'One result per site: the closest scan of each host (without "www."), with `site` and `site_scans`, the number of matching scans of that site'
      - name: within
        in: query
        required: false
        schema:
          anyOf:
          - type: number
            maximum: 2
            exclusiveMinimum: 0
          - type: 'null'
          description: Keep only results whose similarity is at most this much below the best match's (for example 0.03). Scores of a text search depend on the description, so a distance from the best match behaves the same for every query where a fixed threshold does not
          title: Within
        description: Keep only results whose similarity is at most this much below the best match's (for example 0.03). Scores of a text search depend on the description, so a distance from the best match behaves the same for every query where a fixed threshold does not
      - name: sort
        in: query
        required: false
        schema:
          type: string
          description: 'Order of the results: `similarity` (closest first, the default), `newest` or `oldest` (by submission time; with `per_site` each site is shown by its newest or oldest matching scan), or `site_scans` (sites with the most matching scans first; needs `per_site`). Any order but `similarity` reorders the 1,000 nearest screenshots, and each result''s `similarity_rank` gives its place by similarity among the matches'
          enum:
          - similarity
          - newest
          - oldest
          - site_scans
          default: similarity
          title: Sort
        description: 'Order of the results: `similarity` (closest first, the default), `newest` or `oldest` (by submission time; with `per_site` each site is shown by its newest or oldest matching scan), or `site_scans` (sites with the most matching scans first; needs `per_site`). Any order but `similarity` reorders the 1,000 nearest screenshots, and each result''s `similarity_rank` gives its place by similarity among the matches'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/similar/visual/{scan_id}:
    get:
      tags:
      - Search
      summary: Visual Similar Scans
      description: 'Find public scans whose screenshot looks like this scan''s.


        404 when the scan does not exist, is not public, or has no image embedding yet.

        The base scan is never returned as its own neighbour.'
      operationId: visual_similar_scans_api_v1_similar_visual__scan_id__get
      parameters:
      - name: scan_id
        in: path
        required: true
        schema:
          type: string
          title: Scan Id
      - name: threshold
        in: query
        required: false
        schema:
          type: number
          maximum: 1.0
          minimum: -1.0
          description: 'Similarity threshold (-1 to 1). Similarity is 1 - L2 distance between the two screenshots'' image embeddings: identical renders score 1.0 and unrelated pages about 0.0.'
          default: -0.2
          title: Threshold
        description: 'Similarity threshold (-1 to 1). Similarity is 1 - L2 distance between the two screenshots'' image embeddings: identical renders score 1.0 and unrelated pages about 0.0.'
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Maximum similar scans to return
          default: 20
          title: Limit
        description: Maximum similar scans to return
      - name: per_site
        in: query
        required: false
        schema:
          type: boolean
          description: 'One result per site: the closest scan of each host (without "www."), with `site` and `site_scans`, the number of similar scans of that site among the nearest 300'
          default: false
          title: Per Site
        description: 'One result per site: the closest scan of each host (without "www."), with `site` and `site_scans`, the number of similar scans of that site among the nearest 300'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ImageSearchRequest:
      properties:
        hash_value:
          anyOf:
          - type: integer
          - type: string
          title: Hash Value
        hash_type:
          type: string
          pattern: ^(phash|ahash|dhash|whash)$
          title: Hash Type
          default: phash
        max_distance:
          type: integer
          maximum: 10.0
          minimum: 0.0
          title: Max Distance
          default: 3
        limit:
          type: integer
          maximum: 100.0
          minimum: 1.0
          title: Limit
          default: 20
      type: object
      required:
      - hash_value
      title: ImageSearchRequest
      description: 'Body for POST /api/v1/screenshot/search.


        `hash_value` takes either form, and the type is what disambiguates them — a JSON

        NUMBER is the hash''s numeric value, a JSON STRING is the 16-char hex that

        `imagehash` prints and that GET /api/v1/search/screenshot/{type}/{hash} expects.

        The string form was added because every other screenshot-hash surface speaks hex,

        and a caller holding `b83898c3c3c7ce3c` had to convert it by hand.


        `max_distance` allows 0 (exact match). It used to start at 1, which was the exact

        inverse of /api/v1/screenshot/duplicates where 0 is the ONLY accepted value — so

        the two fuzzy-adjacent endpoints rejected each other''s entire input range.'
    ImageSimilarityResponse:
      properties:
        scan_id:
          type: string
          title: Scan Id
        url:
          type: string
          title: Url
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        submitted_at:
          type: string
          title: Submitted At
        screenshot:
          anyOf:
          - type: string
          - type: 'null'
          title: Screenshot
        distance:
          type: integer
          title: Distance
        hash_match_type:
          type: string
          title: Hash Match Type
        similarity_score:
          type: number
          title: Similarity Score
      type: object
      required:
      - scan_id
      - url
      - title
      - submitted_at
      - screenshot
      - distance
      - hash_match_type
      - similarity_score
      title: ImageSimilarityResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    OptionalHTTPBearer:
      type: http
      scheme: bearer
    HTTPBearer:
      type: http
      scheme: bearer