# Exact Quote Change Checker (`merciful_goldenlarch/exact-quote-change-checker`) Actor

Paste a quote and two copies of its source text to check whether the exact wording is still present. The result distinguishes missing text from unavailable evidence.

- **URL**: https://apify.com/merciful_goldenlarch/exact-quote-change-checker.md
- **Developed by:** [Toolshed](https://apify.com/merciful_goldenlarch) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 quote checks

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?

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

## Exact Quote Change Checker

For editors and fact-checkers who kept the original source text and want to recheck a direct quote before publishing or correcting a piece. Paste the quote and two comparable text captures to see whether the wording still appears.

#### Try the example

Open the Input tab and select Start with the prefilled fields. Output should say **Retained**. The sample compares two excerpts displayed in the [National Archives Bill of Rights transcription](https://www.archives.gov/founding-docs/bill-of-rights-transcript).

#### Check a quote from your own draft

1. **Exact quote:** Paste only the words inside the quotation marks. Include punctuation that belongs to the source.
2. **Original source text:** Open your saved copy and copy the section containing the quote. Include its heading and neighboring paragraphs so you can find the same section again.
3. **Updated source text:** Return to the same page and copy the same section as plain text. Use the same method for both captures, such as copying rendered text from your browser. If the section moved, copy the complete article to check for the wording elsewhere. Leave the updated field blank if the page is blocked, paywalled, or you only have a partial capture.
4. Select **Start**, then open **Output**. The evidence report shows the two capture hashes and where the exact quote appears, without repeating the pasted text.

| Result | What to check next |
|---|---|
| **Retained** | The exact wording appears in both captures. Read the surrounding context before using it. |
| **Absent** | The wording appears in the original but is missing from the updated text you supplied. Check the full article for a moved passage or punctuation changes before editing your draft. |
| **Baseline unconfirmed** | The saved text does not contain the exact quote. Check that you copied the right passage. |
| **Unavailable** | A capture is blank or starts with a recognized access notice. Get a readable, complete capture before making a decision. |

The checker treats capitalization, punctuation, and whitespace as part of the quote. It compares the text you paste and leaves source accuracy and context for your review. Use text you are authorized to upload because Apify stores the supplied input with the run.

### Read the findings

The default result view shows a readable finding, the affected item, what the evidence means and what to do next. Switch to **Evidence and source fields** for the underlying records. Download **REVIEW.csv** to work in a spreadsheet, or **REVIEW.html** for a plain report. Suggested actions are checks for you to perform; the Actor has not executed them. Existing API evidence fields are retained alongside the reading layer.

If the run budget cannot deliver every result row, the run fails rather than silently returning a complete-looking partial dataset. Check **Dataset delivery status** in Output, reduce the input or increase the run budget, and start a new run. A successful dataset-delivery check confirms storage, not source accuracy or full workflow compatibility.

# Actor input Schema

## `quote` (type: `string`):

Paste the wording exactly as it appears in the original source.

## `beforeText` (type: `string`):

Paste a readable text capture containing the original quote.

## `afterText` (type: `string`):

Paste the new readable text capture. Clear this field if the source was unavailable.

## Actor input object example

```json
{
  "quote": "Congress shall make no law respecting an establishment of religion",
  "beforeText": "Article the third... Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof;",
  "afterText": "Amendment I\nCongress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech,"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `report` (type: `string`):

No description

## `reviewCsv` (type: `string`):

No description

## `reviewHtml` (type: `string`):

No description

## `deliveryStatus` (type: `string`):

No description

# 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 = {
    "quote": "Congress shall make no law respecting an establishment of religion",
    "beforeText": "Article the third... Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof;",
    "afterText": `Amendment I
Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech,`
};

// Run the Actor and wait for it to finish
const run = await client.actor("merciful_goldenlarch/exact-quote-change-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 = {
    "quote": "Congress shall make no law respecting an establishment of religion",
    "beforeText": "Article the third... Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof;",
    "afterText": """Amendment I
Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech,""",
}

# Run the Actor and wait for it to finish
run = client.actor("merciful_goldenlarch/exact-quote-change-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 '{
  "quote": "Congress shall make no law respecting an establishment of religion",
  "beforeText": "Article the third... Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof;",
  "afterText": "Amendment I\\nCongress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech,"
}' |
apify call merciful_goldenlarch/exact-quote-change-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,merciful_goldenlarch/exact-quote-change-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/CrBWmWhXC12s9i2Ad/builds/azFWu3suJTVFkYva1/openapi.json
