# Google Merchant Center Feed Auditor & Validator (`methodfold/google-merchant-feed-auditor`) Actor

Deterministic audit of a product feed against the Google Merchant Center specification. 49 documented rules, per-product score, disposition and fixes. Synthetic demo included; no AI, no scraping. v2.2.1.

- **URL**: https://apify.com/methodfold/google-merchant-feed-auditor.md
- **Developed by:** [Methodfold](https://apify.com/methodfold) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 product auditeds

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

## Google Merchant Center Feed Auditor & Validator

v2.2.1 · 49 documented rules · deterministic, no AI or scraping.

Audits a product feed against the Google Merchant Center product data
specification and tells you exactly what is wrong, per product, with a fix.

Deterministic: the same feed produces the same output every time. No AI, no
scraping, no proxies, no guessing.

### Try it without your own data

The input schema has a **Run the synthetic demo** toggle, prefilled in the Apify
console. It audits a bundled 16-product sample catalogue, labels the run as a
demo in the `SUMMARY` record and raises **no billable product events**. It is
never substituted silently: API calls that omit `demo` behave exactly as before.

### What you get

One dataset row per product:

```json
{
  "product_id": "SKU-2003",
  "score": 76,
  "disposition": "at_risk",
  "errors": 0,
  "risks": 2,
  "recommendations": 1,
  "issues": [
    {"code": "TITLE_SHORT", "severity": "recommendation", "field": "title",
     "message": "title is only 24 characters",
     "fix": "Aim for brand + product + distinguishing attributes.",
     "classification": "required"}
  ]
}
```

Plus a `SUMMARY` record with the feed score, counts by disposition, the most
common issue codes and the five worst products.

### What it checks

49 rules across id, title, description, price and sale price, identifiers
(GTIN/MPN/identifier_exists), images, links, category, condition, availability,
shipping weight, variant groups and cross-feed consistency (duplicate ids,
duplicate GTINs, mixed currencies).

Each rule carries Google's own classification — **required**, **conditional**
("it depends") or **optional** — so the output separates:

- **error** — violates a stated format or requirement
- **risk** — policy or eligibility risk
- **recommendation** — improves performance
- **info** — observation

Missing GTIN is a recommendation, not an error: plenty of legitimate products
have no assigned identifier. Google category is optional and treated as such.

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| feedUrl | string | — | Public CSV/TSV/XML/JSON feed URL |
| feedText | string | — | Inline feed content |
| format | enum | auto | auto, csv, tsv, xml, json |
| currency | string | AUD | Currency assumed when an item omits one |
| maxProducts | integer | 5000 | Caps the run |
| onlyProblems | boolean | false | Return only products with issues |

Remote URLs are fetched through an SSRF guard: private, loopback, link-local and
metadata addresses are refused, redirects are re-validated, and the connection is
pinned to the validated IP.

### Pricing

**First 100 products of every run are free.** After that, $1.00 per 1,000
products ($0.001 per audited product). No subscription. Apify enforces your run's
`maxTotalChargeUsd` at the billing layer, so a run cannot bill past the ceiling
you set.

### Performance

0.11 s per 1,000 products at 1 GB. A 50,000-product catalogue is about 6 seconds
of processing.

### What it does not do

- It does not fetch your images or crawl your landing pages (that needs the
  network and would make runs non-reproducible).
- It does not log into your Merchant Center account.
- It does not predict approval. The score measures conformance and reviewability.
- It does not guarantee better ad performance or revenue. Nobody honest can.

### Typical use

Run after each catalogue sync. Export the dataset, fix the top issue codes, gate
your pipeline on the feed score. Schedule it daily to catch regressions before
Merchant Center does.

### Support

Open an issue on the Actor's page. Include the run id and the issue codes you
want explained; do not paste customer data.

### Changelog

See the product repository changelog. Current release: 2.1.0.

# Actor input Schema

## `demo` (type: `boolean`):

Audits a bundled 16-product synthetic catalogue. Clearly labelled in the output, generates no billable product events, and ignores feedUrl/feedText. Turn this off to audit your own feed.

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

Public URL of the product feed (CSV, TSV, XML or JSON). For Google Merchant Center, use the scheduled-fetch URL.

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

Inline feed content, useful for a quick test without a public URL. Leave empty when using a URL or the demo.

## `format` (type: `string`):

Feed format. 'auto' detects from the content.

## `currency` (type: `string`):

ISO-4217 code used when an item's price omits one. Mismatches are reported as errors.

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

Stop after this many products. Caps the cost of a run.

## `onlyProblems` (type: `boolean`):

Skip clean products in the dataset. They are still counted in the summary.

## Actor input object example

```json
{
  "demo": true,
  "feedUrl": "https://shop.example.com/feed.xml",
  "format": "auto",
  "currency": "AUD",
  "maxProducts": 5000,
  "onlyProblems": false
}
```

# Actor output Schema

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

One row per product: product_id, score, disposition, error/risk/recommendation counts and the issue list with fix text.

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

Feed score, counts by disposition, severity totals, most common issue codes, the five worst products, and whether the audit was complete or truncated by the run's spending limit.

# 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 = {
    "demo": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("methodfold/google-merchant-feed-auditor").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 = { "demo": True }

# Run the Actor and wait for it to finish
run = client.actor("methodfold/google-merchant-feed-auditor").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 '{
  "demo": true
}' |
apify call methodfold/google-merchant-feed-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,methodfold/google-merchant-feed-auditor"
        }
    }
}
```

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/WRIEG2zuUIHVIgfAr/builds/RWRiVCmYEweKS2exb/openapi.json
