ScanForAI Scan API

The scan API from ScanForAI — 6 operation(s) for scan.

GitHub OpenAPI

Operations 6

POST /api/scan Scan Endpoint #
POST /api/extract Extract Endpoint #
POST /api/fetch-url Fetch Url Endpoint #
POST /api/verify Verify Endpoint #
GET /api/config Config #
POST /api/scan/image Scan Image #

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/scanforai-com:scanforai-com-scan-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

scanforai-com-scan-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ScanForAI Scan API
  description: 'Detect AI-written text and clean it up. Public endpoints: **scan** a document for AI-writing signals, and **cleanup** (strip machine typography, no rewriting). Authenticate with an `at_sk_` API key: `Authorization: Bearer `. The score is a signal, not a verdict.'
  version: '1'
tags:
- name: Scan
paths:
  /api/scan:
    post:
      tags:
      - Scan
      summary: Scan Endpoint
      operationId: scan_endpoint_api_scan_post
      parameters:
      - name: format
        in: query
        required: false
        schema:
          type: string
          default: json
          title: Format
      - name: use_model
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Use Model
      - name: include_fixes
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Include Fixes
      - name: background
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Background
      - name: text_language
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: 'The language the text is written in: "auto" (the default) or the code of a language this api scores, from /api/config `languages` (for example "en" or "es"). Also accepted as `text_language` in a JSON body. A text clearly in another language is still read as that language, and the result says so in `text_language` (`picked`, `read_as`, `applied`).'
          title: Text Language
        description: 'The language the text is written in: "auto" (the default) or the code of a language this api scores, from /api/config `languages` (for example "en" or "es"). Also accepted as `text_language` in a JSON body. A text clearly in another language is still read as that language, and the result says so in `text_language` (`picked`, `read_as`, `applied`).'
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
      responses:
        '200':
          description: 'The scan result. It carries `outcome` (`scored`, `too_short`, `unsupported_language`, `deep_required` or `deep_failed`) and an `i18n` block (see `I18nBlock`). When the request named a `text_language` other than `auto`, it also carries `text_language`: `picked` (the code asked for), `read_as` (the language the text was read in, null when it was not scored for language reasons) and `applied` (false when the text said otherwise, or the language is not available right now).'
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          headers:
            Content-Language:
              description: Language of `message`; sent only when the request named a language.
              schema:
                type: string
  /api/extract:
    post:
      tags:
      - Scan
      summary: Extract Endpoint
      description: 'Pull plain text out of an uploaded file so the client can drop it INTO the

        textarea and review it before scanning (not an auto-scan). Nothing is stored.'
      operationId: extract_endpoint_api_extract_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      parameters:
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
  /api/fetch-url:
    post:
      tags:
      - Scan
      summary: Fetch Url Endpoint
      description: 'Fetch a public web page''s text for the textarea (review before scanning).

        SSRF-guarded (see services/urlfetch); nothing is stored.'
      operationId: fetch_url_endpoint_api_fetch_url_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      parameters:
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
  /api/verify:
    post:
      tags:
      - Scan
      summary: Verify Endpoint
      description: 'Trade a Turnstile token for a scan pass. Proving browser-ness is now its own

        step, not a passenger on the first scan.


        It used to only happen INSIDE /api/scan, which forced the client to hold the

        scan until a token existed — www waits up to 2.8s for the widget and then scans

        without one anyway, so a slow link silently bought the weak engine. Verification

        can now finish while the user is still typing, and the pass applies from the

        first scan onward.


        Returns the pass in the BODY as well as a cookie: the cookie is third-party for

        every one of our clients (page scanforai.com, API api.scanforai.com), so it is

        the copy most likely to be discarded. Clients keep the string and send it back

        as X-Scan-Pass.


        Never an error path for the caller: a bad token answers 200 with ok=false, and

        the scan endpoint still degrades rather than rejecting, so a client that cannot

        verify at all keeps working on the unverified quota.'
      operationId: verify_endpoint_api_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyIn'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          headers:
            Content-Language:
              description: Language of `message`; sent only when the request named a language.
              schema:
                type: string
      parameters:
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
  /api/config:
    get:
      tags:
      - Scan
      summary: Config
      description: Limits the UI needs (counter cap, min-words hint, monthly quota) - no secrets.
      operationId: config_api_config_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      parameters:
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
  /api/scan/image:
    post:
      tags:
      - Scan
      summary: Scan Image
      description: 'Check what an image **declares** about AI generation.


        Reads C2PA Content Credentials, IPTC digital-source-type, EXIF/XMP software

        tags and generation-prompt blocks. `declared: true` is a certainty — the

        file says so itself. `declared: false` only means the file carries no

        disclosure; most platforms strip metadata, so absence is not evidence a

        person made the picture.'
      operationId: scan_image_api_scan_image_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      parameters:
      - $ref: '#/components/parameters/XUILang'
      - $ref: '#/components/parameters/LangQuery'
components:
  parameters:
    XUILang:
      name: X-UI-Lang
      in: header
      required: false
      description: Language of the answer's `message` fields (a language code such as `en` or `es`; only the part before any `-` is used). Without it, the answer is English as always and error bodies carry no `message`.
      schema:
        type: string
        maxLength: 16
    LangQuery:
      name: lang
      in: query
      required: false
      description: The same as the `X-UI-Lang` header, for requests a browser makes without custom headers. If both are sent, `lang` wins.
      schema:
        type: string
        maxLength: 16
  schemas:
    VerifyIn:
      properties:
        turnstile_token:
          type: string
          title: Turnstile Token
          default: ''
      type: object
      title: VerifyIn
    ErrorBody:
      type: object
      required:
      - detail
      - code
      - params
      properties:
        detail:
          description: The error in English, exactly as it has always read. A list of field problems for status 422.
          anyOf:
          - type: string
          - type: array
            items:
              type: object
        code:
          type: string
          description: Stable identifier of the error, for programs. Never changes wording.
          example: err.rate_limit.scan
        params:
          type: object
          additionalProperties: true
          description: The values the error is about (for example the seconds to wait as `retry`).
        message:
          type: string
          description: The error in the language the request named. Present only when it named one.