# Fact Checker (`muhammetakkurtt/fact-checker`) Actor

Instantly fact-check any claim in text or files (.txt, .pdf, .docx). This tool returns a clear true/false verdict with a concise explanation and supporting sources. Perfect for content verification, misinformation detection and AI hallucination checks.

- **URL**: https://apify.com/muhammetakkurtt/fact-checker.md
- **Developed by:** [Muhammet Akkurt](https://apify.com/muhammetakkurtt) (community)
- **Categories:** AI, SEO tools, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.05 / 1,000 words fact-checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Fact Checker

The Fact Checker is a powerful Apify actor that verifies statements automatically. Submit a claim as text or upload a file, and get a clear **true or false verdict**, a concise **explanation**, and **supporting sources** for every check, ideal for **content verification**, **misinformation detection**, and **research fact-checking**.

### Why Use the Fact Checker?

Checking facts by hand means searching, reading, and comparing sources one claim at a time. This tool automates that work and returns a structured, sourced answer in seconds.

- **Clear Verdict**: Every claim comes back as true or false, with no guesswork.
- **Sourced Explanation**: Each result includes a short explanation and links to supporting references.
- **Flexibility**: Supports both plain text and various file formats.
- **Large Text Support**: Automatically splits texts longer than 50,000 words into 50,000-word chunks for checking. This ensures that even very large documents can be processed smoothly.
- **Easy Integration**: Can be easily run on the Apify platform, and the results can be exported in different formats (JSON, CSV, Excel).

### Features

- Fact-checks a claim typed as text or extracted from an uploaded file.
- Supported file formats: `.txt`, `.md`, `.html`, `.pdf`, `.docx`.
- Markdown files are rendered before extraction so tables and inline HTML survive conversion to plain text.
- Text-based PDFs are supported. Scanned or image-only PDFs are rejected because OCR is not enabled in this actor.
- Returns a true/false verdict (`1` = true, `0` = false), an explanation, and source URLs for each check.
- Automatically splits large texts into parts and checks each one.
- Includes proxy support and a retry mechanism for more reliable results.
- Stores the results in a structured format in the Apify dataset.

### Use Cases

- **Content Verification**: Validate facts in articles, posts, and reports before publishing.
- **Misinformation Detection**: Flag false claims in user-generated or scraped content.
- **Research & Journalism**: Quickly check statements against referenced sources.
- **Editorial Workflows**: Screen drafts for factual accuracy.
- **AI Output Review**: Check statements produced by chatbots and AI writing tools for hallucinations.

### Usage

1. Run this actor in the Apify console.
2. Provide the necessary inputs:
   - `claim`: Enter the statement you want to verify (or upload a file below).
   - `fileUpload`: Upload a file to fact-check its text (`.txt`, `.md`, `.html`, `.pdf`, `.docx`). If you upload a file, the claim field above is ignored. Scanned or image-only PDFs require OCR and are not processed by this actor.
   - `proxyConfiguration`: It is recommended to use a proxy for faster and more reliable results.

#### Example Input

```json
{
  "claim": "The Eiffel Tower is located in Berlin and was completed in 1950.",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}
```

### Output

The collected data is saved to the Apify dataset. The output data includes the following fields:

- `claim`: The statement that was checked
- `isTrueClaim`: The verdict (`1` = true, `0` = false)
- `explanation`: A short explanation of the verdict
- `urls`: Supporting source links

### Example Output

```json
{
  "claim": "The Eiffel Tower is located in Berlin and was completed in 1950.",
  "isTrueClaim": 0,
  "explanation": "The Eiffel Tower is located in Paris, France, and was completed on March 31, 1889, not in Berlin in 1950.",
  "urls": [
    "https://en.wikipedia.org/wiki/Eiffel_Tower",
    "https://www.toureiffel.paris/en/the-monument/history"
  ]
}
```

This example output shows the verdict, explanation, and sources returned for the submitted claim. When a long text is processed in chunks, the dataset contains one result like this for each chunk.

### Notes

- The collected data is stored in Apify's default data store.
- The claim should be a single, self-contained factual statement for the best results.
- Opinions and subjective statements cannot be verified and may not return a verdict.

# Actor input Schema

## `claim` (type: `string`):

Enter the statement you want to verify (or upload a file below). The claim is checked and returned with a true/false verdict, an explanation, and supporting sources. Texts longer than 50,000 words will be automatically processed in chunks.

## `fileUpload` (type: `string`):

Upload a file to fact-check its text (.txt, .md, .html, .pdf, .docx). If you upload a file, the text area above will be ignored. Texts longer than 50,000 words will be automatically processed in chunks. Markdown is rendered before extraction, and scanned or image-only PDFs are not supported without OCR.

## `proxyConfiguration` (type: `object`):

Using a proxy is recommended for faster and more reliable results

## Actor input object example

```json
{
  "claim": "The Eiffel Tower is located in Berlin and was completed in 1950.",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}
```

# Actor output Schema

## `factCheckResults` (type: `string`):

Dataset items produced by the actor, each with the original claim, the verdict (isTrueClaim: 1 = true, 0 = false), an explanation, and supporting source URLs.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammetakkurtt/fact-checker").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("muhammetakkurtt/fact-checker").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 '{}' |
apify call muhammetakkurtt/fact-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammetakkurtt/fact-checker"
        }
    }
}
```

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/BIx7vUoYZCjWRh3n9/builds/DyRK4GJmljttCfDUl/openapi.json
