{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Writing Signal Analyzer — Text Pattern Report",
    "description": "Analyze text for AI-writing signals, repetition, burstiness, vocabulary patterns, and evidence snippets with careful non-definitive confidence labels.",
    "version": "1.0",
    "x-build-id": "fT6jbbgOb8y3e5tes"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/junipr~ai-content-detector/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-junipr-ai-content-detector",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/junipr~ai-content-detector/runs": {
      "post": {
        "operationId": "runs-sync-junipr-ai-content-detector",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/junipr~ai-content-detector/run-sync": {
      "post": {
        "operationId": "run-sync-junipr-ai-content-detector",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "texts": {
            "title": "Texts",
            "type": "array",
            "description": "List of texts to analyze for AI content. Each can be a plain string or an object with text, id, and metadata fields.",
            "default": [
              "The quick brown fox jumps over the lazy dog. This is a simple sentence written naturally.",
              "In the realm of artificial intelligence, large language models have demonstrated remarkable capabilities in generating human-like text across a wide variety of domains and applications. Furthermore, it is important to note that these systems exhibit consistent patterns."
            ]
          },
          "analyzePerplexity": {
            "title": "Analyze Perplexity",
            "type": "boolean",
            "description": "Analyze word-level perplexity (predictability). AI text tends to have uniformly low perplexity.",
            "default": true
          },
          "analyzeBurstiness": {
            "title": "Analyze Burstiness",
            "type": "boolean",
            "description": "Analyze sentence length variation. Human text has high burstiness; AI text is more uniform.",
            "default": true
          },
          "analyzeVocabulary": {
            "title": "Analyze Vocabulary",
            "type": "boolean",
            "description": "Analyze vocabulary diversity (type-token ratio). AI text often has lower vocabulary diversity.",
            "default": true
          },
          "analyzeRepetition": {
            "title": "Analyze Repetition",
            "type": "boolean",
            "description": "Detect phrase repetition patterns and filler phrases common in AI text.",
            "default": true
          },
          "analyzeStyle": {
            "title": "Analyze Style",
            "type": "boolean",
            "description": "Analyze stylistic uniformity (paragraph length variation, punctuation patterns).",
            "default": true
          },
          "paragraphLevel": {
            "title": "Paragraph Level Analysis",
            "type": "boolean",
            "description": "Analyze each paragraph separately to detect mixed human+AI content.",
            "default": true
          },
          "aiThreshold": {
            "title": "Signal Threshold",
            "type": "number",
            "description": "Signal threshold used for cautious writing-signal banding, not authorship proof.",
            "default": 0.65
          },
          "includeSignalDetails": {
            "title": "Include Signal Details",
            "type": "boolean",
            "description": "Include detailed breakdown of each analysis signal.",
            "default": true
          },
          "onlyAiDetected": {
            "title": "Only Elevated Writing Signals",
            "type": "boolean",
            "description": "Only output texts with elevated AI-writing signal bands.",
            "default": false
          },
          "onlyHumanDetected": {
            "title": "Only Low Writing Signals",
            "type": "boolean",
            "description": "Only output texts with low AI-writing signal bands.",
            "default": false
          },
          "maxChargeUsd": {
            "title": "Max Charge USD",
            "minimum": 0,
            "type": "number",
            "description": "Stop before paid output would exceed the configured max charge.",
            "default": 10
          },
          "debugMode": {
            "title": "Debug Mode",
            "type": "boolean",
            "description": "Write extra free diagnostics to the key-value store.",
            "default": false
          },
          "saveRawHtmlToKvs": {
            "title": "Save Raw HTML to KVS",
            "type": "boolean",
            "description": "Save raw snapshots as free debug artifacts when enabled.",
            "default": false
          },
          "requestTimeout": {
            "title": "Request Timeout (ms)",
            "minimum": 1000,
            "maximum": 120000,
            "type": "integer",
            "description": "Maximum time to wait for a request or page load.",
            "default": 30000
          },
          "maxRetries": {
            "title": "Max Retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Maximum retry attempts per source.",
            "default": 1
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Maximum concurrent requests. High-risk marketplace and SERP actors default to a low value.",
            "default": 1
          },
          "maxTextCharacters": {
            "title": "Max Text Characters",
            "type": "integer",
            "description": "Run setting used to control cost, runtime, and output size."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Run setting used to control cost, runtime, and output size."
          },
          "includeEvidence": {
            "title": "Include Evidence",
            "type": "string",
            "description": "Run setting used to control cost, runtime, and output size."
          },
          "thresholdMode": {
            "title": "Threshold Mode",
            "enum": [
              "cautious",
              "standard"
            ],
            "type": "string",
            "description": "Controls cautious signal banding, not definitive AI attribution.",
            "default": "cautious"
          },
          "minimumWordCount": {
            "title": "Minimum Word Count",
            "minimum": 20,
            "maximum": 1000,
            "type": "integer",
            "description": "Texts below this threshold return insufficient_text diagnostics instead of definitive labels.",
            "default": 150
          },
          "sourceMode": {
            "title": "Source Mode",
            "enum": [
              "livePublic",
              "suppliedSnapshot",
              "provider"
            ],
            "type": "string",
            "description": "Use public live targets, supplied snapshots, or provider-backed source data when supported.",
            "default": "livePublic"
          },
          "suppliedSnapshotHtml": {
            "title": "Supplied Snapshot HTML",
            "type": "string",
            "description": "Optional HTML snapshot for deterministic public-data extraction tests or controlled source capture."
          },
          "suppliedSnapshotJson": {
            "title": "Supplied Snapshot JSON",
            "type": "string",
            "description": "Optional JSON snapshot/provider response for deterministic public-data extraction tests or controlled source capture."
          },
          "suppliedSnapshotText": {
            "title": "Supplied Snapshot Text",
            "type": "string",
            "description": "Optional plain text snapshot for text-analysis actors."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}