# SiteVerdict — Product Feed Validator (Google & Meta) (`siteverdict/siteverdict-product-feed-validator`) Actor

Find the products Google Merchant Center or Meta will reject before you upload. Validates XML/CSV/TSV/Google Sheets feeds: required fields, GTIN checksums, price/availability formats, policy-risk words, sampled image and landing-page price checks. Monitoring + alerts.

- **URL**: https://apify.com/siteverdict/siteverdict-product-feed-validator.md
- **Developed by:** [Aman Thakran](https://apify.com/siteverdict) (community)
- **Categories:** Marketing, 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 event

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 for Google Merchant Center & Meta — find disapprovals before you upload

**Paste a feed link and see which products Google Merchant Center or Meta are likely to reject, and why, before you lose impressions.** One run checks every product against the main rules of the published feed specifications. It also verifies GTIN check digits, fetches a sample of your images and product pages to confirm they load, and checks that the price on the page matches the feed. You get a health score, a per-issue breakdown, a CSV for your team and an HTML report you can send to a client.

Works with **XML (RSS 2.0 / Atom with the `g:` namespace), CSV, TSV, pipe-delimited files, gzipped feeds and Google Sheets links**.

### Who it is for

- **Shopify / WooCommerce / Magento merchants** who are tired of "Item disapproved" emails.
- **PPC and Shopping agencies** that need to audit a new client's feed in minutes and monitor it daily.
- **Feed-management teams** who want a cheap, scriptable pre-upload check in a CI or scheduled workflow.

### What it checks

| Area | Checks |
|---|---|
| Required attributes | Google: id, title, description, link, image_link, availability, price (+ brand / identifiers for new branded goods). Meta: id, title, description, availability, condition, price, link, image_link, brand |
| Formats | price = amount + ISO 4217 currency; sale_price lower than price; ISO 8601 dates and sale intervals; availability and condition enums; age_group, gender, shipping_weight units; URL validity, length and https |
| Identifiers | **GTIN-8/12/13/14 GS1 check digit**, restricted / internal GS1 prefixes, identifier_exists conflicts, missing gtin + mpn |
| Content quality | title/description length limits, ALL CAPS titles, promotional text ("free shipping", "% off"), HTML in titles, description identical to title, placeholder images |
| Apparel | age_group, gender, color and size for apparel categories |
| Policy risk | Keyword flags for weapons, CBD/drugs, vaping, replicas, health claims, prescription drugs, adult, gambling and dangerous goods. These are heuristics for review, not policy decisions |
| Feed level | duplicate ids, mismatched column counts (shifted CSV rows), link domains |
| **Live image sample** | loads, is a real image, at least 100x100 px. Reads only the first 64 KB of each image |
| **Live landing-page sample** | page loads (no 404), the schema.org / microdata / Open Graph price matches the feed (sale_price wins, 1% tolerance, any variant counts), availability matches |

### Example output (one row per feed)

```json
{
  "type": "feed",
  "feed": "https://shop.example.com/feeds/google.xml",
  "products": 5,
  "productsWithErrors": 3,
  "healthScore": 37,
  "grade": "F",
  "topIssues": ["ERROR sale_price_not_lower ×1", "ERROR gtin_checksum ×1", "ERROR duplicate_id ×1", "ERROR image_placeholder ×1", "ERROR price_zero ×1"],
  "images": { "sampled": 5, "ok": 4, "failed": 1 },
  "landingPages": { "sampled": 5, "match": 1, "mismatch": 4 },
  "reportUrl": "https://api.apify.com/v2/key-value-stores/…/records/REPORT-1.html",
  "issuesCsvUrl": "https://api.apify.com/v2/key-value-stores/…/records/ISSUES-1.csv"
}
```

**Before:** "Why did 312 products drop out of Shopping?" **After:** `gtin_checksum ×212` (wrong check digits from a supplier spreadsheet) and `sale_price_not_lower ×100` (the sale ended but sale_price stayed in the feed). Both are fixable in minutes.

### Use cases

1. **Pre-upload QA.** Run on the feed URL before every catalogue change.
2. **Daily monitoring.** Turn on *Monitoring mode*, schedule the Actor daily and add a Slack webhook. You are alerted only when the feed gets worse.
3. **Agency audits.** Send a client the HTML report with a health score and a prioritised fix list. You can generate the fix list with *your own* AI key.

### Pricing (pay per event)

| Event | When | Price |
|---|---|---|
| `feed-validated` | per feed successfully parsed and validated | $0.03 |
| `product-validated` | per product checked | $0.0004 |
| `landing-page-checked` | per sampled product page that loaded and was judged | $0.004 |
| `ai-fix-plan` | per feed when your AI key returned a usable plan | $0.01 |

Examples: a **1,000-product feed** with the default 5 landing pages costs about **$0.45**. A **10,000-product feed** costs about **$4.05**. Errors, unreachable feeds and robots-blocked pages are never charged. Sample mode is free. The run's *maximum total charge* is respected: the budget first covers the $0.03 feed fee, then products, then landing pages, then the AI fix plan. Products your limit does not cover are not validated or charged; the feed row shows `incomplete: true` and `productsNotProcessed`, and the run status says how many were not processed. A feed is skipped (row `status: skipped`, not charged) when the fee and at least one product do not fit.

### Inputs

- **Feed URLs** and/or **pasted feed**. **Sample mode** runs a bundled demo offline.
- **Rules**: Google Merchant Center or Meta catalog. **Target country** adds a currency check.
- **Image / landing-page sample sizes** (0 turns them off).
- **Monitoring + alerts** (Slack or JSON webhook, HTTPS only).
- **AI fix plan** with your own Anthropic or OpenAI key (off by default). Only issue counts and messages, plus up to 10 example product ids and titles, are sent to the provider.

Outputs: a dataset with views (Feed summary, Issues by type, Products with problems, Landing-page checks), plus `REPORT-n.html`, `ISSUES-n.csv` and `RUN_SUMMARY` in the key-value store.

### FAQ

**Does it need my Merchant Center login?** No. It reads the feed file you point it at, the same way Merchant Center's scheduled fetch does. It does not use any Google or Meta account.

**My feed is private.** Paste its contents into *paste the feed*, or use a link that contains its own access token. Query strings are redacted in all outputs.

**Will it hammer my site?** No. It fetches only the sampled pages and images, at most one request per second per host, and honours robots.txt (including Crawl-delay). Robots-blocked pages are skipped and free.

**Is the policy check a guarantee?** No. Google and Meta review products with their own systems. Treat keyword flags as "review this", not as a decision.

**Does it check every image?** No, it checks a sample. Raise the sample to 100 for a broader check.

### Limits

- Up to 20 feeds per run, 200,000 products and 80 MB per feed.
- The landing-page price check reads machine-readable prices (JSON-LD, microdata, Open Graph). It does not run JavaScript, so prices drawn only by JavaScript show as "not found".
- Feeds behind login or IP allow-lists cannot be downloaded. Paste the content instead.
- Rules follow the public specifications as of 11 Oct 2026. Country-specific shipping and tax rules are only partly covered.

### Sources & compliance

- Google Merchant Center product data specification: https://support.google.com/merchants/answer/7052112 (read 11 Oct 2026).
- Meta catalog product fields: https://www.facebook.com/business/help/120325381656392 (read 11 Oct 2026).
- GS1 check digit calculation: https://www.gs1.org/services/how-calculate-check-digit-manually.
- Only feeds the user supplies, and a small sample of the user's own product pages and images, are fetched. robots.txt is honoured for pages and images, the User-Agent is honest (`SiteVerdict/product-feed-validator (+hello@webrevenuescan.com)`), rate limits are polite, and no bot protection is bypassed.
- Private and internal network addresses are refused (SSRF protection).
- **Personal data:** product feeds normally contain none. Nothing is stored beyond the run's dataset and key-value store, and monitoring keeps only counts per issue code. UK GDPR / PECR: do not put personal data in product feeds.
- Not legal advice. Google and Meta make the final decisions about product approval.

# Changelog

This Actor's version history is a separate document: https://apify.com/siteverdict/siteverdict-product-feed-validator/changelog.md

# Actor input Schema

## `feedUrls` (type: `array`):

Public links to your product feeds: Google Merchant Center / Meta catalog XML (RSS 2.0 or Atom), CSV, TSV or a Google Sheets link (share as 'Anyone with the link' or publish to web). Gzipped feeds are fine. Max 20 per run. Query strings are redacted in the output because feed links often carry tokens.

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

Optional. Paste the XML or CSV/TSV content directly (max 10 MB of text).

## `sampleMode` (type: `boolean`):

Validate a bundled demo feed with canned landing pages and images. No website is contacted and nothing is charged. Turn off to check your own feeds.

## `target` (type: `string`):

Google Merchant Center (Google Shopping, free listings, Performance Max) or Meta catalog (Facebook/Instagram Shops, Advantage+ catalog ads).

## `targetCountry` (type: `string`):

Optional, e.g. GB, US, DE. Used to warn when prices are not in that country's currency.

## `policyCheck` (type: `boolean`):

Warn about words often linked to restricted products (weapons, CBD/drugs, vaping, replicas, health claims, prescription drugs, adult, gambling). Keyword heuristics to review, not a policy decision.

## `maxItems` (type: `integer`):

Stop after this many products in each feed. Each validated product is billed as one 'product-validated' event.

## `imageSample` (type: `integer`):

How many image_link URLs to fetch (spread evenly across the feed) to confirm they load, are real images and are at least 100x100 px. Only the first 64 KB of each image is downloaded. robots.txt is respected. 0 = off.

## `landingSample` (type: `integer`):

How many product pages (link) to fetch to compare the page's schema.org/Open Graph price and availability with the feed (sale_price wins when present). Billed per judged page ('landing-page-checked'); pages blocked by robots.txt or errors are free. 0 = off.

## `timeoutSecs` (type: `integer`):

Timeout for each image or landing page request (the feed download itself gets at least 60 s).

## `itemOutput` (type: `string`):

Besides one summary row per feed: add a row per product with problems (default), per every product, or none. Capped at 5,000 rows per feed; the full list is always in the ISSUES CSV.

## `monitor` (type: `boolean`):

Remember each feed's results (named key-value store 'siteverdict-feed-monitor') and report what got worse or better since the last run. Schedule the Actor daily to catch broken feeds early.

## `monitorKey` (type: `string`):

Optional label to keep separate histories (e.g. per client).

## `alertWebhookUrl` (type: `string`):

Optional. A Slack incoming webhook or any HTTPS URL that accepts JSON. Stored encrypted; never logged.

## `alertFormat` (type: `string`):

Slack message or plain JSON.

## `alertOnlyIfWorse` (type: `boolean`):

With monitoring on: alert only when errors increase or a new issue type appears. Without monitoring: alert when any product has errors.

## `aiProvider` (type: `string`):

Turn the findings into a prioritised fix plan and suggested product titles using your own Anthropic or OpenAI key. Off by default. Only issue counts and messages, plus up to 10 example product ids and titles, are sent.

## `aiApiKey` (type: `string`):

Your Anthropic or OpenAI API key. Stored encrypted by Apify, sent only to the provider's API, never logged or output.

## `aiModel` (type: `string`):

Defaults to a mid-priced model: claude-sonnet-5-5 (Anthropic) or gpt-4.1-mini (OpenAI). You pay the provider directly; pick any model your key can use.

## Actor input object example

```json
{
  "feedUrls": [],
  "sampleMode": true,
  "target": "google",
  "targetCountry": "GB",
  "policyCheck": true,
  "maxItems": 50000,
  "imageSample": 10,
  "landingSample": 5,
  "timeoutSecs": 30,
  "itemOutput": "problems",
  "monitor": false,
  "alertFormat": "slack",
  "alertOnlyIfWorse": true,
  "aiProvider": "none"
}
```

# Actor output Schema

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

No description

## `files` (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 = {
    "feedUrls": [],
    "sampleMode": true,
    "targetCountry": "GB"
};

// Run the Actor and wait for it to finish
const run = await client.actor("siteverdict/siteverdict-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 = {
    "feedUrls": [],
    "sampleMode": True,
    "targetCountry": "GB",
}

# Run the Actor and wait for it to finish
run = client.actor("siteverdict/siteverdict-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 '{
  "feedUrls": [],
  "sampleMode": true,
  "targetCountry": "GB"
}' |
apify call siteverdict/siteverdict-product-feed-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,siteverdict/siteverdict-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/YdfSAmOS0DFkGFzs3/builds/6ptMxYhUWz8jdPfsQ/openapi.json
