# AI Content Detector (`novashieldai/ai-content-detector`) Actor

Detect AI-generated text using statistical analysis — perplexity, burstiness, vocabulary diversity, repetition patterns, sentence uniformity, and more. No external AI API calls — purely local heuristics.

- **URL**: https://apify.com/novashieldai/ai-content-detector.md
- **Developed by:** [Ali haydar Karadaş](https://apify.com/novashieldai) (community)
- **Categories:** AI, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $40.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## AI Content Detector

AI Content Detector analyzes text to determine whether it was written by a human or generated by AI, using statistical analysis without relying on any external AI APIs. Fast, private, and accurate -- your text never leaves the processing pipeline.

### What does AI Content Detector do?

This actor takes a piece of text and runs it through multiple statistical analyses to calculate the probability that it was AI-generated. It measures perplexity, burstiness, vocabulary diversity, sentence uniformity, repetition patterns, transition word density, punctuation regularity, and known AI phrase frequency. The result is a clear verdict -- likely\_ai, likely\_human, or uncertain -- along with a confidence score and a full breakdown of every metric.

Three modes are available. **Detect** analyzes a single text. **Bulk Detect** processes multiple texts at once. **Stats** returns basic text statistics (word count, sentence count, paragraph count, etc.) without running the AI detection.

The detection runs entirely on statistical methods. There are no calls to OpenAI, GPT, or any other external service. This means your text stays private and processing is fast.

### What data do you get?

- **ai\_probability** -- overall probability the text is AI-generated (0.0 to 1.0)
- **verdict** -- likely\_ai, likely\_human, or uncertain
- **confidence** -- how confident the model is in its verdict
- **text\_length** -- character count of the input
- **perplexity\_score** -- language predictability (lower = more AI-like)
- **burstiness\_score** -- sentence length variation (uniform = AI-like)
- **vocabulary\_diversity** -- type-token ratio
- **repetition\_score** -- repeated n-gram frequency
- **transition\_word\_density** -- transition words per total words
- **ai\_phrase\_count** -- number of common AI-generated phrases detected
- **sentence\_uniformity** -- how uniform sentence lengths are
- **avg\_sentence\_length** -- average words per sentence
- **std\_sentence\_length** -- standard deviation of sentence lengths
- **unique\_word\_ratio** -- unique words divided by total words
- **punctuation\_regularity** -- regularity of punctuation patterns

Stats mode returns: **word\_count**, **sentence\_count**, **paragraph\_count**, **avg\_word\_length**, **char\_count**.

### Who is this for?

- **Content teams and editors** -- verify that submitted articles are human-written before publishing
- **Academic institutions** -- screen student submissions for AI-generated content
- **SEO professionals** -- check whether competitor content or outsourced articles are AI-generated
- **Publishers and media companies** -- maintain editorial integrity by flagging AI content
- **Developers** -- integrate AI detection into your own content management tools

### How to use it

1. Open the actor in Apify Console and choose a mode (detect, bulk\_detect, or stats).
2. Paste your text into the text field, or provide an array of texts for bulk mode.
3. Click "Start" to run the analysis.
4. Review the results in the Dataset tab -- you'll get a verdict, probability score, and detailed breakdown.
5. Export results or pull them via the Apify API for automated workflows.

### Input parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| mode | string | detect | Operation mode: detect, bulk\_detect, or stats |
| text | string | -- | Text to analyze (for detect and stats modes) |
| texts | array | -- | Array of texts to analyze in bulk (for bulk\_detect mode) |
| language | string | en | Language of the input text (currently English only) |

### Sample output

```json
{
  "text_length": 1847,
  "ai_probability": 0.82,
  "verdict": "likely_ai",
  "confidence": 0.76,
  "details": {
    "perplexity_score": 0.71,
    "burstiness_score": 0.85,
    "vocabulary_diversity": 0.43,
    "repetition_score": 0.38,
    "transition_word_density": 0.062,
    "ai_phrase_count": 7,
    "sentence_uniformity": 0.79,
    "avg_sentence_length": 18.4,
    "std_sentence_length": 3.2,
    "unique_word_ratio": 0.51,
    "punctuation_regularity": 0.67
  }
}
```

### How much does it cost?

Each result costs **$0.003**. Analyzing 1,000 texts costs $3, and 10,000 texts costs $30.

Apify gives every new user $5 in free monthly credits, so you can analyze roughly 1,600 texts for free.

### Common questions

**How accurate is the detection?**
The detector uses multiple statistical signals combined into a weighted score. It works well for standard-length content (300+ words). Very short texts or heavily edited AI content may produce uncertain results, which is why the actor returns a confidence score alongside the verdict.

**Does it send my text to any external AI service?**
No. All analysis is done locally using statistical methods. Your text never leaves the actor's runtime environment.

**Does it support languages other than English?**
Currently, the analysis is optimized for English text. The statistical models (AI phrase detection, transition word lists, etc.) are English-specific. Support for additional languages may be added in the future.

### Contact & Custom Solutions

Need a custom scraper, higher volume, or a specific integration? We're here to help.

If anything isn't working right or you need support, don't hesitate to reach out.

- Telegram: [t.me/novashield\_dev](https://t.me/novashield_dev)
- Email: novashield.dev@gmail.com

# Actor input Schema

## `mode` (type: `string`):

Operation mode: 'detect' for single text, 'bulk\_detect' for multiple texts, 'stats' for text statistics.

## `text` (type: `string`):

The text to analyze for AI-generated content. Required for 'detect' and 'stats' modes.

## `texts` (type: `array`):

Array of texts to analyze in bulk. Required for 'bulk\_detect' mode.

## `language` (type: `string`):

Language of the input text (currently only English supported).

## Actor input object example

```json
{
  "mode": "detect",
  "language": "en"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "text": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("novashieldai/ai-content-detector").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "text": "" }

# Run the Actor and wait for it to finish
run = client.actor("novashieldai/ai-content-detector").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "text": ""
}' |
apify call novashieldai/ai-content-detector --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,novashieldai/ai-content-detector"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/G1SxZR6549bR30Eb8/builds/dcepKkNOfIScbUmQx/openapi.json
