# Product CSV Missing Fields Check (`torix33/product-csv-missing-fields-check`) Actor

Check a CSV or TSV for user-selected missing fields, placeholders and basic contact-format issues. This technical check does not determine GPSR or marketplace compliance.

- **URL**: https://apify.com/torix33/product-csv-missing-fields-check.md
- **Developed by:** [Torix](https://apify.com/torix33) (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

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## Product CSV Missing-Fields Check: Manufacturer & EU Contact Columns

Find the empty cells in a product CSV **before** you upload it to a marketplace. You list the columns that must be filled (for example manufacturer name, manufacturer address, contact e-mail, EU responsible person, safety warning); the Actor tells you, row by row, which of them are empty, filled with a placeholder such as `n/a`, or (for contact columns) do not look like an e-mail address or a web link.

> **Technical check only. This is not legal advice.** The Actor does not know which fields a law or a marketplace requires, and it does not say whether your data satisfies GPSR or any marketplace rule. It checks only the columns **you** list, only for presence and shape. Always check the current rules of your marketplace yourself.

> Free test version. The Actor does not charge per result at the moment.

### How to run it in 3 steps

1. **Add your CSV.** Paste it into **CSV text** (the form is prefilled with made-up sample data) or put a direct public link in **Public link to a CSV file**.
2. **List the columns** that must be filled in **Columns that must have a value in every row**. Use the names from your file's header line.
3. **Press Start**, then open the **Output** tab: the per-record report, the issues list and the summary.

### What it checks

| Check | Reported as | Example |
|---|---|---|
| Cell is empty or only spaces | `missing` | `manufacturer_name` is empty in row 4 |
| Cell equals a placeholder from your list (default: `n/a`, `na`, `none`, `null`, `unknown`, `tbd`, `-`, `?`, `brak`, `nvt`, `k.a.` and a few more) | `placeholder` | `safety_warning` = `n/a` |
| Contact column value is not shaped like an e-mail or an http(s) link | `not_email_or_url` | `manufacturer_email` = `see website` |
| A column you listed is not in the file header | `column_not_in_file` | you wrote `maker` but the header says `manufacturer_name` |

**Conditional rules (optional).** Some fields are needed only for some rows, for example an EU contact person only when the manufacturer is outside the EU. A rule says: "require these columns in rows where column X has one of these values". You decide the column and the values; the Actor does not know which countries or cases matter to you.

```json
{
  "csvText": "sku;maker;country;eu_contact\nA-1;Lumo Ltd;GB;\nA-2;Brewco GmbH;DE;",
  "requiredColumns": ["maker"],
  "conditionalRules": [{ "fields": ["eu_contact"], "whenColumn": "country", "whenValues": ["GB"] }],
  "idColumn": "sku"
}
```

Result: row `A-1` has `eu_contact: missing`; row `A-2` has no issues because its country is not in the rule.

### Output

- **Per-record report** (Dataset, export as CSV / Excel / JSON): `record`, `id`, `status` (`gaps_found` or `listed_fields_present`), `issueCount`, `problems`.
- **`ISSUES_CSV` / `ISSUES`**: one line per missing, placeholder or badly shaped value: record, id, column, problem, value.
- **`SUMMARY`**: records checked, records with and without gaps, issues by problem and by column, columns not found in the header, duplicate header names, rows with a different number of cells than the header.

`listed_fields_present` means only "none of the columns you listed was empty, a placeholder or badly shaped in this row". It does not mean the data is correct, complete for your category, or accepted by a marketplace.

Record numbers count rows of the input file as parsed (header = record 1, first data row = record 2). Completely empty rows are skipped and counted in the summary.

### What it will NOT do (on purpose)

- **No legal assessment.** No GPSR, no packaging, no energy-label or other rules are built in. You choose the columns.
- **No checking of truth.** It cannot tell whether a manufacturer address is real or whether a safety text is adequate.
- **No web access to your shop or marketplace.** The Actor reads only the CSV you paste, or the one public file link you give. It does not scrape product pages, open the links found in your cells, send e-mails or log in anywhere.
- **No guessing.** Column names are matched exactly (ignoring upper/lower case and extra spaces); similar names are not merged.
- **No editing of your file.** Your data is only read; fix the gaps in your own system.

### Input

| Field | Meaning |
|---|---|
| `csvText` / `csvUrl` | Pasted CSV **or** a public direct link (http/https). Not both. |
| `requiredColumns` | Columns that must hold a real value in every row |
| `contactColumns` | Columns whose value, when present, must look like an e-mail or an http(s) link (add the column to the required list too if it must not be empty) |
| `conditionalRules` | Optional rules: `fields`, `whenColumn`, `whenValues` |
| `idColumn` | Optional column copied into the report (for example `sku`) |
| `placeholderValues` | Values counted as "no value"; empty list = only empty cells are reported |
| `delimiter` | `auto` (default), `comma`, `semicolon`, `tab`, `pipe` |
| `maxRows` | Safety limit, default 50 000 |

### Limitations

- CSV/TSV only (no `.xlsx`, no PDF). In Excel use *Save as -> CSV (UTF-8)*, then paste the text or use a public direct link.
- Public links only: links that need a login (private OneDrive, Google Drive, SharePoint) do not work. No cookies, accounts or secrets are used or needed.
- File size up to 20 MB. Encoding: UTF-8, or windows-1250 when the bytes are not valid UTF-8 (a note is shown).
- A column is found by its header name; if two columns have the same name, only the first is checked (a note is shown).
- The e-mail/link check looks at the shape only. Nothing is sent and no link is opened.
- Do not upload personal data of customers; this Actor does not need it.

### FAQ

**Is it free?** Yes, this is a free test version. If a paid version appears later, the price will be shown on this page before you use it.

**Which columns should I list?** The ones your marketplace or your own checklist asks for. The Actor has no built-in list on purpose.

**Who builds it?** TORIX, a small project that builds and maintains Actors with AI assistance. Feedback, problems and requests (for example other checks you need) are welcome in the Issues tab.

**Does it keep my data?** The input and results live only in your Apify run storage under your account.

# Actor input Schema

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

Paste the CSV here (first line = column names). Use this OR a public link below. The prefilled sample is made-up data.

## `csvUrl` (type: `string`):

Direct http(s) link to a .csv/.tsv file that anyone can open (no login). Private OneDrive/Google Drive links are not supported. Leave empty when you paste text above.

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

Auto-detected from the first lines by default.

## `requiredColumns` (type: `array`):

Column names exactly as written in the header of your file (upper/lower case and extra spaces are ignored). You decide which columns to list; the Actor does not know which fields any law or marketplace asks for. A column that is not in the file is reported.

## `contactColumns` (type: `array`):

For these columns a value that is present must look like an e-mail address or an http(s) link. Only the shape is checked: nothing is sent and no link is opened. Add the column to the required list too if it must not be empty.

## `conditionalRules` (type: `array`):

Require some columns only in rows where another column has one of the listed values (exact match, case-insensitive). Each rule: fields (columns to require), whenColumn (column to look at), whenValues (values that switch the rule on). The values in the sample are examples; you decide them.

## `idColumn` (type: `string`):

Column copied into the report so you can find the row, for example sku or ean. Without it, rows are identified by record number (header = record 1).

## `placeholderValues` (type: `array`):

A cell that equals one of these (ignoring case and extra spaces) is reported as a placeholder instead of a real value. Empty list = only empty cells are reported.

## `maxRows` (type: `integer`):

Safety limit; the run stops with a message if the file has more rows.

## Actor input object example

```json
{
  "csvText": "sku;title;manufacturer_name;manufacturer_address;manufacturer_email;eu_responsible_name;eu_responsible_email;safety_warning;manufacturer_country\nA-1;Desk lamp;Lumo Ltd;1 Example Street, Leeds;info@lumo.example;;;Keep away from water;GB\nA-2;Kettle;Brewco GmbH;Musterweg 5, Hamburg;contact@brewco.example;;;n/a;DE\nA-3;Toy car;;;;;;;CN\nA-4;Mug;Cupco SA;Rue 1, Lyon;contact@cupco.example;;;Hot contents;FR",
  "delimiter": "auto",
  "requiredColumns": [
    "manufacturer_name",
    "manufacturer_address",
    "manufacturer_email",
    "safety_warning"
  ],
  "contactColumns": [
    "manufacturer_email",
    "eu_responsible_email"
  ],
  "conditionalRules": [
    {
      "fields": [
        "eu_responsible_name",
        "eu_responsible_email"
      ],
      "whenColumn": "manufacturer_country",
      "whenValues": [
        "GB",
        "CN"
      ]
    }
  ],
  "idColumn": "sku",
  "placeholderValues": [
    "n/a",
    "na",
    "n.a.",
    "none",
    "null",
    "nil",
    "unknown",
    "tbd",
    "-",
    "--",
    "?",
    "brak",
    "nvt",
    "k.a."
  ],
  "maxRows": 50000
}
```

# Actor output Schema

## `records` (type: `string`):

No description

## `issuesCsv` (type: `string`):

No description

## `issues` (type: `string`):

No description

## `summary` (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": `sku;title;manufacturer_name;manufacturer_address;manufacturer_email;eu_responsible_name;eu_responsible_email;safety_warning;manufacturer_country
A-1;Desk lamp;Lumo Ltd;1 Example Street, Leeds;info@lumo.example;;;Keep away from water;GB
A-2;Kettle;Brewco GmbH;Musterweg 5, Hamburg;contact@brewco.example;;;n/a;DE
A-3;Toy car;;;;;;;CN
A-4;Mug;Cupco SA;Rue 1, Lyon;contact@cupco.example;;;Hot contents;FR`,
    "requiredColumns": [
        "manufacturer_name",
        "manufacturer_address",
        "manufacturer_email",
        "safety_warning"
    ],
    "contactColumns": [
        "manufacturer_email",
        "eu_responsible_email"
    ],
    "conditionalRules": [
        {
            "fields": [
                "eu_responsible_name",
                "eu_responsible_email"
            ],
            "whenColumn": "manufacturer_country",
            "whenValues": [
                "GB",
                "CN"
            ]
        }
    ],
    "idColumn": "sku",
    "placeholderValues": [
        "n/a",
        "na",
        "n.a.",
        "none",
        "null",
        "nil",
        "unknown",
        "tbd",
        "-",
        "--",
        "?",
        "brak",
        "nvt",
        "k.a."
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("torix33/product-csv-missing-fields-check").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": """sku;title;manufacturer_name;manufacturer_address;manufacturer_email;eu_responsible_name;eu_responsible_email;safety_warning;manufacturer_country
A-1;Desk lamp;Lumo Ltd;1 Example Street, Leeds;info@lumo.example;;;Keep away from water;GB
A-2;Kettle;Brewco GmbH;Musterweg 5, Hamburg;contact@brewco.example;;;n/a;DE
A-3;Toy car;;;;;;;CN
A-4;Mug;Cupco SA;Rue 1, Lyon;contact@cupco.example;;;Hot contents;FR""",
    "requiredColumns": [
        "manufacturer_name",
        "manufacturer_address",
        "manufacturer_email",
        "safety_warning",
    ],
    "contactColumns": [
        "manufacturer_email",
        "eu_responsible_email",
    ],
    "conditionalRules": [{
            "fields": [
                "eu_responsible_name",
                "eu_responsible_email",
            ],
            "whenColumn": "manufacturer_country",
            "whenValues": [
                "GB",
                "CN",
            ],
        }],
    "idColumn": "sku",
    "placeholderValues": [
        "n/a",
        "na",
        "n.a.",
        "none",
        "null",
        "nil",
        "unknown",
        "tbd",
        "-",
        "--",
        "?",
        "brak",
        "nvt",
        "k.a.",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("torix33/product-csv-missing-fields-check").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": "sku;title;manufacturer_name;manufacturer_address;manufacturer_email;eu_responsible_name;eu_responsible_email;safety_warning;manufacturer_country\\nA-1;Desk lamp;Lumo Ltd;1 Example Street, Leeds;info@lumo.example;;;Keep away from water;GB\\nA-2;Kettle;Brewco GmbH;Musterweg 5, Hamburg;contact@brewco.example;;;n/a;DE\\nA-3;Toy car;;;;;;;CN\\nA-4;Mug;Cupco SA;Rue 1, Lyon;contact@cupco.example;;;Hot contents;FR",
  "requiredColumns": [
    "manufacturer_name",
    "manufacturer_address",
    "manufacturer_email",
    "safety_warning"
  ],
  "contactColumns": [
    "manufacturer_email",
    "eu_responsible_email"
  ],
  "conditionalRules": [
    {
      "fields": [
        "eu_responsible_name",
        "eu_responsible_email"
      ],
      "whenColumn": "manufacturer_country",
      "whenValues": [
        "GB",
        "CN"
      ]
    }
  ],
  "idColumn": "sku",
  "placeholderValues": [
    "n/a",
    "na",
    "n.a.",
    "none",
    "null",
    "nil",
    "unknown",
    "tbd",
    "-",
    "--",
    "?",
    "brak",
    "nvt",
    "k.a."
  ]
}' |
apify call torix33/product-csv-missing-fields-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,torix33/product-csv-missing-fields-check"
        }
    }
}
```

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/8UHNM6vpKnWGGQ0d3/builds/jSXbEprj8OQs353aZ/openapi.json
