# Merchant Operator: Google Shopping Feed Monitor & Fixer (`vanborn_labs/merchant-operator`) Actor

Monitor your Google Shopping feed, get a health score, an action plan and a corrected feed on every run.

- **URL**: https://apify.com/vanborn_labs/merchant-operator.md
- **Developed by:** [Van Born Labs](https://apify.com/vanborn_labs) (community)
- **Categories:** E-commerce, SEO tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 products checked

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/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

## Merchant Operator: Google Shopping Feed Monitor & Fixer

Get a **corrected Google Shopping feed** and a **plain-language action plan** after every run, including the first. Fix disapproval risks, broken images, price jumps, and disappearing products before they cost you listings. Title and description improvements are rule-based today: clear wording, no invented prices or promo language.

### How to run it

The Actor does not run on a timer by itself. Start it when you want a check, or create an Apify Schedule that starts it (daily is a common choice). Keep the same **Store name** (`client_key`) every time.

The optional schedule field in the input (manual, hourly, every_6h, daily, or weekly) is only a hint in the result: if you set it to daily, `next_check_due_at` is 24 hours after that run. It does not start a recurring job. To actually run it daily, create an Apify Schedule.

### How history works

The first run for a store name saves a baseline and already returns the action plan and a corrected feed. Each later run compares the catalog to the immediately previous run for that same store name. The change report lists only what changed. The corrected feed is included on every run. By default it contains every product. Set "Corrected feed contents" to "changed" if you only want rows that were updated.

### What every run gives you

- **A corrected feed file** (CSV, TSV or Google XML) saved to the run. Download the feed with automatic fixes applied. Resolve any remaining required-field errors before uploading
- **A plain-language action plan** for every issue, with a feed health score and a priority from 1 to 100
- **From the second run on, a change report** against the immediately previous run: price moves beyond your threshold, stock flips, image changes, products added or removed, sudden catalog drops
- **Better titles and descriptions** for products that need them (rule-based today)
- **An email-ready summary** (HTML) you can forward to a client
- **Alerts** to Slack, Discord or your own webhook, only when something important happens

### How to start

1. Enter a **Store name** (a short id, like acme-us). Keep it the same every run so history is tracked.
2. Add your **feed URL**, paste the feed, or enter a **Shopify store URL**.
3. Optional: add a Slack or Discord webhook for alerts.
4. Optional: create an Apify Schedule if you want recurring runs.

### Where to find the results

| Output | Where |
|---|---|
| Issues table | Dataset (Issues view) |
| Full result | Key-value store, record OUTPUT |
| Corrected feed | Key-value store, record CORRECTED_FEED |
| Email summary | Key-value store, record EMAIL_SUMMARY |

Use **What to do: Show history** to list past runs, or **Delete history** to start fresh.

### Example response (excerpt)

Every run, including the first, writes the full result (including issues\[].action_plan and corrected_feed) to the key-value store as record OUTPUT. The corrected feed file is also stored as record CORRECTED_FEED. Each issue, including its action_plan, is a dataset row. Shortened from a real first run:

```json
{
  "first_run": true,
  "saved": true,
  "summary": {
    "products": 1,
    "health_score": 0,
    "message": "Baseline saved for this client_key. This response already includes the action plan and a corrected feed. Call /merchant/monitor again with the same client_key, on your schedule, to compare against the immediately previous run and get a change report."
  },
  "issues": [
    {
      "code": "missing_price",
      "severity": "critical",
      "title": "Required field 'price' is missing or empty",
      "products_affected": 1,
      "action_plan": [
        "Add the price with currency, e.g. '19.99 USD'."
      ]
    },
    {
      "code": "missing_condition",
      "severity": "medium",
      "title": "Condition is missing (recommended: new/used/refurbished)",
      "products_affected": 1,
      "action_plan": [
        "Add condition: new, used or refurbished. Most shops can set 'new' for all products."
      ]
    }
  ],
  "corrected_feed": {
    "format": "csv",
    "rows": 1,
    "scope": "all",
    "content": "id,title,description,link,image_link,availability,brand\n1,Acme Test Shirt,A cotton shirt for daily wear and travel. Acme Test Shirt. By Acme.,https://example.com/p/1,https://example.com/1.jpg,in_stock,Acme\n"
  }
}
```

### Who it is for

Store owners, Google Shopping agencies and freelancers who manage several Merchant Center accounts and want one report per client.

### Pricing

$0.25 per run plus $0.01 per product checked. A 132 product feed costs $1.57 per run ($0.25 + 132 x $0.01). A 200 product store checked once a day is about $67.50 a month; once a week about $10.

### Also available as an API

The same engine is available as a REST API on RapidAPI, for teams that want it inside their own tools.

Independent software by Van Born Labs, not affiliated with Google or Shopify. Questions: https://vanbornlabs.com

Also available as an HTTP API on RapidAPI: https://rapidapi.com/ArielaSmith/api/google-shopping-feed-monitor-api-merchant-center-alerts

# Actor input Schema

## `mode` (type: `string`):

Run a check, show saved history, or delete history for this store name.

## `client_key` (type: `string`):

Any short id for this store, like acme-us. Use the same one every run so changes are tracked.

## `feed_url` (type: `string`):

Google Merchant feed (CSV, TSV or XML), Shopify or WooCommerce export.

## `store_url` (type: `string`):

Use alone for Shopify stores, or with a feed to check store policies.

## `feed_text` (type: `string`):

Paste a Google Merchant CSV, TSV or XML feed instead of a URL.

## `schedule` (type: `string`):

Hint only. This Actor does not run on a timer. daily sets next_check_due_at to 24 hours after this run. To actually run it daily, create an Apify Schedule that starts this Actor.

## `target_country` (type: `string`):

Two-letter country code used for feed checks, default US.

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

Currency code expected in prices, default USD.

## `max_products` (type: `integer`):

Maximum products to check in one run, up to 5,000.

## `price_drift_pct` (type: `integer`):

Alert when a product price moves at least this percent since the last run.

## `min_severity` (type: `integer`):

Only issues with this priority score or higher are returned (0 to 100).

## `image_check` (type: `boolean`):

Check a sample of product images for broken or too-small files.

## `policy_check` (type: `boolean`):

Check refund, shipping, privacy and contact pages. Needs a store URL.

## `fixes` (type: `boolean`):

Write better titles and descriptions for products that need them.

## `fix_limit` (type: `integer`):

Maximum number of titles and descriptions to rewrite in one run.

## `fix_format` (type: `string`):

Format of the corrected feed file saved with the run.

## `corrected_feed_scope` (type: `string`):

Include every product, or only rows that changed.

## `webhook_url` (type: `string`):

Slack, Discord or your own endpoint.

## `webhook_on` (type: `string`):

When to send the alert: if any issues, only critical ones, always, or never.

## `brand_voice` (type: `string`):

Optional notes about tone or words to use in rewritten titles and descriptions.

## `dry_run` (type: `boolean`):

Run the check without saving history.

## Actor input object example

```json
{
  "mode": "monitor",
  "client_key": "my-store",
  "store_url": "https://www.tentree.com",
  "schedule": "daily",
  "target_country": "US",
  "currency": "USD",
  "max_products": 2000,
  "price_drift_pct": 15,
  "min_severity": 40,
  "image_check": true,
  "policy_check": false,
  "fixes": true,
  "fix_limit": 20,
  "fix_format": "csv",
  "corrected_feed_scope": "all",
  "webhook_on": "issues",
  "dry_run": false
}
```

# Actor output Schema

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

Default dataset, one item per issue, including the action plan. The Issues view is selected by default.

## `fullResult` (type: `string`):

Complete monitor result, including summary, change report, action plans and corrected feed metadata, stored as OUTPUT.

## `correctedFeed` (type: `string`):

Download the feed with automatic fixes applied. Resolve any remaining required-field errors before uploading. Stored as CORRECTED_FEED.

## `emailSummary` (type: `string`):

Email-ready HTML summary, stored as EMAIL_SUMMARY.

# 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 = {
    "client_key": "my-store",
    "store_url": "https://www.tentree.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("vanborn_labs/merchant-operator").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 = {
    "client_key": "my-store",
    "store_url": "https://www.tentree.com",
}

# Run the Actor and wait for it to finish
run = client.actor("vanborn_labs/merchant-operator").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 '{
  "client_key": "my-store",
  "store_url": "https://www.tentree.com"
}' |
apify call vanborn_labs/merchant-operator --silent --output-dataset

```

## MCP server setup

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

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/7o3eSQ267T9iXWhNY/builds/E1jsOp4fdEbW11BmD/openapi.json
