{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Merchant Center Feed Checker: Price, Stock & Image Audit",
    "description": "Pre-check a Google Merchant Center feed (XML, CSV/TSV or Shopify products.json) against live product pages. Flags price and stock mismatches, 404s and redirects, missing GTIN/brand/MPN, bad images, title limits, shipping/returns. Independent tool, not affiliated with Google.",
    "version": "0.1",
    "x-build-id": "nQjPA8Cw5ShFGDy6i"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/code54dev~feedguard/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-code54dev-feedguard",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/code54dev~feedguard/runs": {
      "post": {
        "operationId": "runs-sync-code54dev-feedguard",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/code54dev~feedguard/run-sync": {
      "post": {
        "operationId": "run-sync-code54dev-feedguard",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "feedUrl": {
            "title": "Product feed URL",
            "type": "string",
            "description": "URL of a Google Merchant Center-style feed: an XML/RSS (g: namespace) or Atom feed, a CSV/TSV file, or a Shopify store's /products.json (or just the store's home page URL). Leave empty if you use 'Product page URLs'."
          },
          "productUrls": {
            "title": "Product page URLs (optional)",
            "type": "array",
            "description": "Check specific product pages instead of a feed. Only page-level checks run (HTTP status, redirects, structured-data price/availability/identifiers, image, title/description). Used only when 'Product feed URL' is empty.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items to check",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of feed items to check in this run. Lower values finish faster and use less platform credit.",
            "default": 100
          },
          "sampleOnly": {
            "title": "Check only a random sample",
            "type": "boolean",
            "description": "Pick a random sample from the feed (up to its first 2,000 items) instead of the first N items. A quick, cheap way to spot systemic problems in a large feed.",
            "default": false
          },
          "sampleSize": {
            "title": "Sample size",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Number of random items to check when 'Check only a random sample' is on (never more than 'Max items').",
            "default": 25
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages to fetch in parallel. Keep it low (3–5) for small stores; FeedGuard also waits between requests to the same site.",
            "default": 5
          },
          "requestDelaySecs": {
            "title": "Delay between requests to the same site (seconds)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Minimum pause between two page requests to the same domain. A robots.txt Crawl-delay, if present, takes precedence when it is longer. Raise this if a store starts showing bot challenges.",
            "default": 0.5
          },
          "country": {
            "title": "Target country (ISO code)",
            "type": "string",
            "description": "Two-letter country code of the market you sell to, for example US, GB, CA, DE. It sets the language preference sent to the store. Multi-country stores may show different prices by visitor location; use a proxy from that country if needed.",
            "default": "US"
          },
          "currency": {
            "title": "Expected currency (ISO 4217)",
            "type": "string",
            "description": "For example USD or EUR. Used when feed prices have no currency (such as Shopify), and to flag items where the feed or the page uses a different currency. Leave empty to only compare feed vs page."
          },
          "priceTolerancePercent": {
            "title": "Price tolerance (%)",
            "minimum": 0,
            "maximum": 20,
            "type": "number",
            "description": "Treat prices as matching if they differ by no more than this percentage (minimum one cent). Google expects an exact match, so keep it at 1 or lower unless you see rounding noise.",
            "default": 1
          },
          "checkImages": {
            "title": "Check images",
            "type": "boolean",
            "description": "Download the first 128 KB of each image to confirm it loads and read its size (under 100x100 px is an error, under 250x250 a warning for apparel).",
            "default": true
          },
          "checkShippingReturns": {
            "title": "Check shipping & return info",
            "type": "boolean",
            "description": "Look for shipping and return/refund information on the product page (structured data, text or policy links) and in the feed. Heuristic: results are informational.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration (optional)",
            "type": "object",
            "description": "Off by default. Use Apify Proxy only if a store blocks datacenter IPs or you need a specific country. Image checks always connect directly."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}