# Product Feed Validator: Google & ChatGPT (`nemata/product-feed-validator`) Actor

Validate product feeds (XML, CSV, TSV, JSON, Shopify) against Google Merchant Center and the OpenAI/ChatGPT product feed spec. Errors per product, image size checks, and auto-fixed converted feeds for both.

- **URL**: https://apify.com/nemata/product-feed-validator.md
- **Developed by:** [nemata](https://apify.com/nemata) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 product validateds

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

## Product Feed Validator & Converter — Google Merchant Center + ChatGPT Shopping (OpenAI)

Check your product catalog against **Google Merchant Center** and the **OpenAI product feed spec** used for product discovery in ChatGPT before you upload it. Then download a **fixed, converted feed** for each one.

- **Reads any feed:** Google XML (RSS/Atom), CSV, TSV, JSON, JSONL, or straight from a **Shopify store** (public `products.json`).
- **Validates against both specs:** missing required fields, price format (`19.99 EUR`), availability values (`preorder` vs `pre_order`), GTIN check digits, sale price lower than price, placeholder values like `null` or `n/a`, variant rules (`group_id`, `variant_dict`), duplicate IDs, titles and descriptions that are too long, all caps or promotional, HTML in descriptions.
- **Optional live checks:** broken product links, broken images, and **image size**. Google requires at least 500×500 px from 31 January 2027.
- **Converts and auto-fixes:** writes `google_feed.tsv` and `openai_feed.jsonl` with normalised prices, availability values, GTINs and plain-text descriptions, plus your seller name, brand and target countries.
- **Clear report:** one row per product with its errors and warnings per target, and a summary with the most common issues.
- **Pay per product validated.**

### Use cases

- Get a store ready for ChatGPT product discovery in minutes
- Fix Merchant Center disapprovals before they happen
- Agencies: audit client feeds and hand over a clean file
- Run on a schedule to catch catalog regressions

### Input

```json
{
  "feedUrl": "https://example.com/feeds/google.xml",
  "targets": ["google", "openai"],
  "sellerName": "Example Store",
  "defaultCurrency": "EUR",
  "targetCountries": ["US"],
  "storeCountry": "US",
  "checkUrls": true
}
```

Or use `"shopifyStoreUrl": "your-store.com"` to read the catalog of your Shopify store, or paste a small feed in `feedText`.

### Output

Dataset (one row per product):

```json
{
  "id": "TRAIL-BLK-10",
  "title": "Trail running shoes — black, size 10",
  "errors": 2,
  "warnings": 1,
  "googleValid": false,
  "openaiValid": false,
  "issues": {
    "google": [{ "severity": "error", "field": "price", "code": "bad_format", "message": "Price must look like '79.99 EUR'. Auto-fixable." }],
    "openai": [
      { "severity": "error", "field": "seller_name", "code": "missing_required", "message": "Missing required field." },
      { "severity": "error", "field": "price", "code": "bad_format", "message": "Price must look like '79.99 EUR'. Auto-fixable." }
    ]
  },
  "imageWidth": 400,
  "imageHeight": 400
}
```

Key-value store: `SUMMARY` (valid products per target, top issues, links), `google_feed.tsv` and `openai_feed.jsonl` (converted feeds).

### Good to know

- Automatic fixes cover formatting. Missing information, such as a brand or a description, cannot be invented: the report tells you where to fill it in.
- The OpenAI spec requires `target_countries` and `store_country`. At the time of writing, standard uploads target the US, and other markets need confirmation from OpenAI during onboarding.
- Specs change. The rules follow the public Google Merchant Center product data specification and the OpenAI product feed reference as of November 2026.

### Use with AI agents

- **MCP:** AI assistants and agents can call this Actor as a tool through the Apify MCP server.
- **No Apify account needed for agents:** agents can pay per run through Apify with x402 (stablecoins) or Skyfire, and then call the Actor with the temporary token they receive.
- Clear JSON input and structured JSON output that an agent can use directly.

### Pricing

**$0.001 per product** ($1 per 1,000). The price is the same for every Apify plan you are on, and you can set a maximum cost per run in the run options.

Pay per event: you are charged **per product validated**.

# Actor input Schema

## `feedUrl` (type: `string`):

Public URL of your product feed: Google XML (RSS/Atom), CSV, TSV, JSON or JSONL.

## `shopifyStoreUrl` (type: `string`):

Instead of a feed, read the public catalog of your Shopify store (e.g. 'your-store.com').

## `feedText` (type: `string`):

Or paste a small feed here (CSV, TSV, XML, JSON or JSONL).

## `targets` (type: `array`):

Which specifications to check.

## `sellerName` (type: `string`):

Your store name. Required by OpenAI on every product; added to products that lack it.

## `defaultBrand` (type: `string`):

Used for products without a brand (e.g. your own-brand products).

## `defaultCurrency` (type: `string`):

ISO code used when prices have no currency, e.g. EUR.

## `targetCountries` (type: `array`):

ISO country codes for the OpenAI feed, e.g. US.

## `storeCountry` (type: `string`):

ISO country code of your store for the OpenAI feed.

## `checkUrls` (type: `boolean`):

Request product pages and images to find broken links and images smaller than 500x500 px.

## `maxUrlChecks` (type: `integer`):

Limit for link and image checks.

## `maxProducts` (type: `integer`):

Maximum products to read from the feed.

## Actor input object example

```json
{
  "feedText": "id,title,description,link,image_link,availability,price,brand,gtin\nMUG-1,Blue ceramic mug 350 ml,<p>Dishwasher-safe glazed ceramic mug.</p>,https://example.com/mug-blue,https://example.com/mug-blue.jpg,in stock,\"18,00 EUR\",Northline,4006381333931\nMUG-2,RED MUG - FREE SHIPPING!!,Red mug,http://example.com/mug-red,https://example.com/mug-red.jpg,preorder,18 EUR,,12345\n",
  "targets": [
    "google",
    "openai"
  ],
  "defaultCurrency": "EUR",
  "targetCountries": [
    "US"
  ],
  "storeCountry": "US",
  "checkUrls": false,
  "maxUrlChecks": 200,
  "maxProducts": 10000
}
```

# Actor output Schema

## `results` (type: `string`):

No description

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

No description

## `openai` (type: `string`):

No description

## `google` (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 = {
    "feedText": `id,title,description,link,image_link,availability,price,brand,gtin
MUG-1,Blue ceramic mug 350 ml,<p>Dishwasher-safe glazed ceramic mug.</p>,https://example.com/mug-blue,https://example.com/mug-blue.jpg,in stock,"18,00 EUR",Northline,4006381333931
MUG-2,RED MUG - FREE SHIPPING!!,Red mug,http://example.com/mug-red,https://example.com/mug-red.jpg,preorder,18 EUR,,12345`
};

// Run the Actor and wait for it to finish
const run = await client.actor("nemata/product-feed-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 = { "feedText": """id,title,description,link,image_link,availability,price,brand,gtin
MUG-1,Blue ceramic mug 350 ml,<p>Dishwasher-safe glazed ceramic mug.</p>,https://example.com/mug-blue,https://example.com/mug-blue.jpg,in stock,\"18,00 EUR\",Northline,4006381333931
MUG-2,RED MUG - FREE SHIPPING!!,Red mug,http://example.com/mug-red,https://example.com/mug-red.jpg,preorder,18 EUR,,12345
""" }

# Run the Actor and wait for it to finish
run = client.actor("nemata/product-feed-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 '{
  "feedText": "id,title,description,link,image_link,availability,price,brand,gtin\\nMUG-1,Blue ceramic mug 350 ml,<p>Dishwasher-safe glazed ceramic mug.</p>,https://example.com/mug-blue,https://example.com/mug-blue.jpg,in stock,\\"18,00 EUR\\",Northline,4006381333931\\nMUG-2,RED MUG - FREE SHIPPING!!,Red mug,http://example.com/mug-red,https://example.com/mug-red.jpg,preorder,18 EUR,,12345\\n"
}' |
apify call nemata/product-feed-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nemata/product-feed-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/3dMgmxia4ULrfsU64/builds/W7oF6RcFb15yft5ku/openapi.json
