# CSV Formula Injection Neutralizer - Changed Cell Evidence (`variable_mitts/csv-formula-neutralizer`) Actor

Neutralize supported formula-like CSV prefixes. Download a separate sanitized CSV and inspect changed-cell evidence before spreadsheet use.

- **URL**: https://apify.com/variable_mitts/csv-formula-neutralizer.md
- **Developed by:** [Dhan sites](https://apify.com/variable_mitts) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.48 / 1,000 input record processeds

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

## CSV Formula Injection Neutralizer - Changed Cell Evidence

Prepare a CSV export for review by prefixing potentially executable spreadsheet cells with an apostrophe. Download the transformed CSV and inspect cell-level diagnostics, including column names when a header is supplied.

### Start with this workflow

Review formula-like CSV cells and download a neutralized copy.

**After the run:** Download SANITIZED.csv and inspect changed-cell evidence. Review the supported prefix rules and your spreadsheet application; this is not a universal spreadsheet-security guarantee.

**What is billed:** Parsed CSV records including a supplied header, not changed cells; invalid top-level input is free. Check the Pricing tab for the applicable subscription-tier rate. Result rows and billable input units can differ. A successful execution does not guarantee full coverage.

The example uses a small supplied fixture or the publisher-owned demonstration target. Replace it with input you are authorized to process; inspect coverage, diagnostics and limits before downstream use.

### Quick start

1. Open the Input tab or the public Example task and restore the example input.
2. Run the small example below. Use non-sensitive supplied records first. Source URLs are metadata; this Actor does not fetch websites.
3. Open the dataset for individual results, then read `REPORT` for coverage and diagnostics. A successful execution alone does not establish that all requested work was completed.
4. Download the relevant files from the Output tab, or retrieve the dataset through Apify's API for your next workflow step.

```json
{
  "csvText": "name,value\na,=SUM(1)\nb,-10\nc,plain\n"
}
```

### Output example

The following is a real first result from the developer's example run; some large nested fields are omitted for readability. These are supplied sample records; source labels are not independently verified website evidence.

```json
{
  "record_index": 0,
  "source_record_number": 1,
  "is_header": false,
  "valid": true,
  "changed_columns": [],
  "changed_count": 0,
  "changed_cells": [],
  "sanitized_cells": [
    "name",
    "value"
  ]
}
```

The default dataset contains result rows. Files declared for this Actor are listed below; availability depends on the input mode and validation result. Input errors and diagnostics are reported in REPORT.

- `REPORT`
- `SANITIZED.csv`

### Input reference

| Field | Type | Required | Description |
|---|---|---|---|
| `maxRecords` | integer | No | Total record processing cap. Capped output is explicitly truncated. |
| `csvText` | string | Yes | Paste CSV content. Every parsed row, including a header if present, counts as one record. |
| `delimiter` | string | No | One delimiter character, default comma. |
| `firstRowIsHeader` | boolean | No | Annotate changed-cell evidence with header names. The header is still processed, protected and billed as a CSV record. |

### Advanced workflow

#### Cell-level diagnostics with optional headers

Set firstRowIsHeader=true to annotate changed cells with supplied header names; the header still counts as an inspected/billed CSV record. Each result includes source_record_number (one-based parsed CSV record, not physical text line), is_header and changed_cells with column index/name, a reason, original SHA256 and a120-character preview. Prefix protection behavior remains conservative and unchanged. Inspected CSV is bounded to500 columns/record and10000 cells/run; exceeding these bounds is an uncharged input error. Summary includes total changed cells. Original previews may contain executable-looking text; use SANITIZED.csv for the transformed CSV.

### Pricing

$0.6 per 1,000 processed records ($0.0006 each) at the entry tier. Per-record diagnostics count as processed records; invalid top-level input has no record event fee. Each parsed CSV record counts, including a supplied header. No run-start event or automatic output-row event. The Pricing tab shows the applicable subscription-tier price. The spending limit can reduce the number of processed items.

For example, 100 billable items cost $0.06 in Actor event fees at the entry tier. Zero findings is different from zero processed items. Inspect the report's processed/checked counts and the run's charge events to reconcile a run.

### Limits and interpretation

Default 200, maximum 1,000 processed CSV records. Input is bounded to 2 million serialized JSON characters, 500 columns per record and 10,000 inspected cells per run. Python strict CSV parsing and field-size limits apply. Negative numeric strings receive conservative protection too. Use SANITIZED.csv for transformed content: diagnostic previews retain original text. Review imports in the target spreadsheet application; this transformation is not a universal spreadsheet-security guarantee.

Results cover only the inspected input. Truncation and unchecked records require review; do not treat them as a complete-source guarantee. Input is not overwritten. The Actor uses limited permissions.

### Troubleshooting and support

- **Run succeeded but output is diagnostic:** inspect `REPORT`, correct the named fields, and rerun. Handled invalid input can finish with `SUCCEEDED` and no billable items.
- **Fewer results than requested:** check coverage, truncation, spending limits and the limits above. Check the input field names, per-record diagnostics and coverage. This tool does not fetch websites.
- **Repeat a workflow:** save a task with your input and use Apify scheduling or its API. Review each run's coverage before passing results downstream.
- **Report a problem:** open this Actor's Issues tab with the run ID, expected behavior and a minimal non-sensitive input. Never post tokens, credentials or private source data.

### Related tools

- [rag dataset cleaner evidence](https://apify.com/variable_mitts/rag-dataset-cleaner-evidence)
- [dataset contract field checker](https://apify.com/variable_mitts/dataset-contract-field-checker)

### Who is this for?

Teams reviewing CSV exports before opening them in spreadsheet applications. Supply CSV text and review the supported prefix rules and changed cells.

### Frequently asked questions

#### Does a sanitized CSV guarantee spreadsheet security?

No. It neutralizes documented formula-like prefixes and records the changed cells. Spreadsheet behavior differs; review the result in your intended application and do not treat it as a universal security guarantee.

#### How do I try it before using my full input?

Open the Input tab, review the prefilled example, and run a small batch with a spending limit. Inspect the dataset and report before increasing the batch. Examples can incur the documented inspection or analysis fee; an execution marked successful can still contain rejected records or incomplete coverage.

#### Can I use the Actor through an API or on a schedule?

Yes. Use Apify's [Actor API](https://docs.apify.com/api/v2/acts-run-sync-get-dataset-items-post) or [schedules](https://docs.apify.com/platform/schedules). Keep credentials private and use the documented input fields. The pricing and limits below apply to API runs too.

### Related tools for the next step

- [JSON Dataset Validator - Required Fields and Data Types](https://apify.com/variable_mitts/dataset-contract-field-checker)
- [HTML Table to JSON Extractor - Rowspan and Colspan](https://apify.com/variable_mitts/html-table-span-extractor)

# Actor input Schema

## `maxRecords` (type: `integer`):

Total record processing cap. Capped output is explicitly truncated.

## `csvText` (type: `string`):

Paste CSV content. Every parsed row, including a header if present, counts as one record.

## `delimiter` (type: `string`):

One delimiter character, default comma.

## `firstRowIsHeader` (type: `boolean`):

Annotate changed-cell evidence with header names. The header is still processed, protected and billed as a CSV record.

## Actor input object example

```json
{
  "maxRecords": 200,
  "csvText": "name,value\na,=SUM(1)\nb,-10\nc,plain\n",
  "delimiter": ",",
  "firstRowIsHeader": false
}
```

# Actor output Schema

## `startHere` (type: `string`):

No description

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

No description

## `rows` (type: `string`):

No description

## `csv` (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 = {
    "csvText": `name,value
a,=SUM(1)
b,-10
c,plain`
};

// Run the Actor and wait for it to finish
const run = await client.actor("variable_mitts/csv-formula-neutralizer").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 = { "csvText": """name,value
a,=SUM(1)
b,-10
c,plain
""" }

# Run the Actor and wait for it to finish
run = client.actor("variable_mitts/csv-formula-neutralizer").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 '{
  "csvText": "name,value\\na,=SUM(1)\\nb,-10\\nc,plain\\n"
}' |
apify call variable_mitts/csv-formula-neutralizer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,variable_mitts/csv-formula-neutralizer"
        }
    }
}
```

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/mEhR898A8ntv2LNV5/builds/OI692bIxGlKtCKKrL/openapi.json
