# E-commerce Feed & Page Consistency Auditor (`kralck/commerce-feed-consistency-auditor`) Actor

Find price, currency, stock, title, canonical, and structured-data mismatches between a product feed and live product pages.

- **URL**: https://apify.com/kralck/commerce-feed-consistency-auditor.md
- **Developed by:** [Cagdas Kotan](https://apify.com/kralck) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 audited products

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## E-commerce Feed & Page Consistency Auditor

![E-commerce Feed & Page Consistency Auditor](./store-assets/cover.png)

Find silent catalog errors before they waste ad spend or confuse shoppers. This Actor compares the price, currency, availability, and title in a product feed with the structured data on each live product page. It also reports HTTP failures, missing Product JSON-LD, and missing canonical URLs.

### Why use it?

A product can say `in stock` in Google Merchant Center while its landing page says `sold out`. A sale can end on the website while an old feed price keeps running in ads. These inconsistencies cause disapprovals, poor clicks, and support work. This Actor turns a feed URL into a row-by-row audit that can run manually, on a schedule, through the API, or from an automation.

### Input

Provide one of:

- `productUrls`: public product-page URLs to audit directly when no feed is available.
- `feedUrl`: a public XML/RSS, CSV, TSV, or JSON feed URL.
- `feedContent`: pasted feed content for testing or private workflows.

The direct URL mode checks HTTP status, Product JSON-LD, canonical URL, page price,
currency, and availability. Feed comparison fields stay empty because there is no
feed value to compare.

Common Google Merchant fields are detected automatically, including `g:id`, `g:price`, `g:availability`, and `link`. Generic names such as `product_id`, `product_url`, `sale_price`, `currency`, and `stock_status` are also supported.

Example:

```json
{
  "feedUrl": "https://example.com/google-shopping.xml",
  "feedFormat": "auto",
  "maxProducts": 500,
  "concurrency": 5,
  "priceTolerance": 0.01
}
```

### Output

Each product produces one dataset row:

```json
{
  "productId": "SKU-123",
  "url": "https://example.com/products/blue-shoe",
  "status": "issue",
  "issues": ["price_mismatch", "availability_mismatch"],
  "httpStatus": 200,
  "feedPrice": 79.9,
  "pagePrice": 89.9,
  "feedCurrency": "USD",
  "pageCurrency": "USD",
  "feedAvailability": "in_stock",
  "pageAvailability": "out_of_stock",
  "evidenceSource": "json_ld"
}
```

The key-value store record named `OUTPUT` contains totals for clean products, products with issues, and request errors.

#### Issue codes

- `price_mismatch`, `currency_mismatch`, `availability_mismatch`, `title_mismatch`
- `page_price_missing`, `page_currency_missing`, `page_availability_missing`
- `missing_product_structured_data`, `canonical_missing`
- `http_status_*` and `request_error: ...`

### Automation

Create an Apify Task with your feed URL, then schedule it daily or weekly. Dataset results can be sent to Google Sheets, Make, Zapier, webhooks, or downloaded as JSON, CSV, and Excel.

### Pricing

Recommended Store configuration: **pay per event**, event name `product-audit`, at **$0.005 per audited product**. A 100-product run costs $0.50 and a 1,000-product run costs $5, plus any platform usage passed through by the Store configuration. Set a minimum run limit high enough to cover startup cost. The Actor stops producing paid rows when the user's run spending limit is reached.

### Responsible use

Audit sites you own or are authorized to test. The Actor blocks localhost, private IP ranges, credential-bearing URLs, and private redirects. Keep concurrency modest and follow the target site's terms and policies.

### Limitations

- Pages that render all product data only after client-side JavaScript may not expose a price to this HTTP-only Actor. HTTP-only fetching keeps runs fast and inexpensive.
- Feed column names vary. Open an issue with a small, non-sensitive sample if a common format is not recognized.
- Product variants may expose multiple offers. Version 1 compares the first structured offer.

### Support

When reporting a problem, include the run ID, feed format, and one public example URL. Do not include credentials or private feed contents.

# Actor input Schema

## `productUrls` (type: `array`):

Audit public product pages directly. Use this when you do not have a product feed. Do not combine with feedUrl or feedContent.

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

Public URL of a Google Merchant XML/RSS feed, CSV/TSV, or JSON product feed.

## `feedContent` (type: `string`):

Paste feed content instead of using a feed URL. Leave empty when feedUrl is set.

## `feedFormat` (type: `string`):

Auto detects the format in most cases.

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

Maximum number of products to audit in this run.

## `concurrency` (type: `integer`):

Lower this if the target site rate limits requests.

## `requestTimeoutSecs` (type: `integer`):

Timeout for each feed or product-page request.

## `priceTolerance` (type: `number`):

Absolute difference allowed before a price mismatch is reported.

## `userAgent` (type: `string`):

Identify your audit traffic. A descriptive value with contact information is recommended.

## Actor input object example

```json
{
  "feedFormat": "auto",
  "maxProducts": 100,
  "concurrency": 5,
  "requestTimeoutSecs": 20,
  "priceTolerance": 0.01,
  "userAgent": "FeedConsistencyAuditor/1.0 (+https://apify.com)"
}
```

# Actor output Schema

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

No description

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("kralck/commerce-feed-consistency-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("kralck/commerce-feed-consistency-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 '{}' |
apify call kralck/commerce-feed-consistency-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kralck/commerce-feed-consistency-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/woyR4ILYXP2qh2OVB/builds/U4D16Bjkko7bSq2Qk/openapi.json
