# CatalogCheck – Product CSV Validator (`taigongye/catalogcheck-product-csv-validator`) Actor

Validate product catalog CSV data, detect duplicate SKUs, invalid prices, missing fields, currency-format errors, and malformed URLs. Generates JSON, CSV, and readable HTML reports without accessing product links.

- **URL**: https://apify.com/taigongye/catalogcheck-product-csv-validator.md
- **Developed by:** [Ryan YE](https://apify.com/taigongye) (community)
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 catalog row checkeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

CatalogCheck – Product CSV Validator
Validate a product catalog CSV before importing, publishing, or handing it to another team. CatalogCheck finds common data-quality problems and produces structured JSON, a downloadable CSV issue list, and a readable HTML report.
What it checks

- Missing required values in sku, title, price, and currency
- Duplicate SKUs and fully duplicated records
- Invalid, negative, or non-finite prices
- Currency syntax: exactly three uppercase ASCII letters
- HTTP(S) syntax for product and image URLs
  CatalogCheck does not modify, merge, or delete source records.
  Input
  Paste UTF-8 CSV text into csvText.
  Required logical headers:
  sku,title,price,currency,product\_url,image\_url
  product\_url and image\_url cells may be empty, but both headers must exist. Extra columns are allowed. Optional column mapping is supported when your CSV uses different header names.
  Limits per run:
- Up to 1,000 data records
- Up to 2,000,000 UTF-8 bytes
  Example:
  {
  "csvText": "sku,title,price,currency,product\_url,image\_url\nA01,Demo product,12.50,USD,https://example.com/a01,\n"
  }
  Output
  Results are saved in the run's default key-value store.
  Key	Content
  SUMMARY	Status, counts, issue breakdown, input hash, and column mapping
  ISSUES	Complete structured JSON issue list with original values
  ISSUES.csv	Spreadsheet-safe downloadable issue list
  REPORT.html	Human-readable report; displays up to the first 1,000 issues
  BILLING	Delivery and billing state for the run

A successful Actor run means processing completed. Check SUMMARY.status: pass means no rule violations were found; fail means the report contains data issues.
Scope and privacy
Validation is deterministic and does not call AI. CatalogCheck does not open or fetch product and image URLs, and it does not verify whether products, pages, or images exist. When run on Apify, input and output are processed and stored by the Apify platform.
This validator checks CSV structure and the documented rules only. A passing result does not guarantee compatibility with a specific marketplace, tax system, or commerce platform. Currency codes are checked for syntax, not against a live currency registry.
Submit only data you are authorized to process. Do not include passwords, API keys, personal data, or other credentials.
Current release
The validation and report-delivery workflow has passed both error-case and clean-data tests. Billing remains disabled while the public listing and paid-run configuration are being prepared.

# Actor input Schema

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

Required headers: sku,title,price,currency,product\_url,image\_url. Link values may be empty. Limits are also enforced at runtime.

## `mapping` (type: `object`):

Optional object mapping logical field names to existing CSV headers, e.g. {"sku":"Item ID"}. No billing or network settings are accepted.

## Actor input object example

```json
{
  "csvText": "sku,title,price,currency,product_url,image_url\nA01,Demo product,12.50,USD,,\n",
  "mapping": {}
}
```

# Actor output Schema

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

Readable catalog validation report.

## `summary` (type: `string`):

Status, record counts, issue breakdown, input hash, and column mapping.

## `issuesJson` (type: `string`):

Complete issue list in JSON format.

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

Spreadsheet-safe downloadable issue list.

## `billing` (type: `string`):

Delivery and billing state for this run.

# 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,price,currency,product_url,image_url
A01,Demo product,12.50,USD,,`
};

// Run the Actor and wait for it to finish
const run = await client.actor("taigongye/catalogcheck-product-csv-validator").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,price,currency,product_url,image_url
A01,Demo product,12.50,USD,,
""" }

# Run the Actor and wait for it to finish
run = client.actor("taigongye/catalogcheck-product-csv-validator").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,price,currency,product_url,image_url\\nA01,Demo product,12.50,USD,,\\n"
}' |
apify call taigongye/catalogcheck-product-csv-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,taigongye/catalogcheck-product-csv-validator"
        }
    }
}
```

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/BXS4gn6YgUnfdnaia/builds/0rGZPiFDbBTD0LE8i/openapi.json
