{
  "openapi": "3.0.1",
  "info": {
    "title": "Merchant FeedGuard: Google Merchant Center Feed Validator",
    "description": "Google Merchant Center feed validator for Google Shopping, Meta catalog and Shopify product feeds. Finds missing GTINs, bad prices, invalid availability, broken images and landing page price mismatches. Health score, issue list with fixes, auto-fixed CSV. $0.50 per 1,000 products.",
    "version": "1.0",
    "x-build-id": "vEpsjXg3apKzekgpw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aladzhov~merchant-feedguard/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aladzhov-merchant-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/aladzhov~merchant-feedguard/runs": {
      "post": {
        "operationId": "runs-sync-aladzhov-merchant-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/aladzhov~merchant-feedguard/run-sync": {
      "post": {
        "operationId": "run-sync-aladzhov-merchant-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",
        "required": [
          "feeds",
          "channels"
        ],
        "properties": {
          "feeds": {
            "title": "Product Feeds",
            "type": "array",
            "description": "Product feeds to validate. Each item: {\"name\": \"unique label\", \"url\": \"public https URL of the feed\"} and optional \"format\" (auto, google-xml, csv, tsv, json, shopify-json). For Shopify stores use https://STORE-DOMAIN/products.json. You can also pass raw feed text in \"content\" instead of \"url\".",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "title": "Feed Name",
                  "description": "A unique name to identify this feed in reports"
                },
                "url": {
                  "type": "string",
                  "title": "Feed URL",
                  "description": "Public HTTPS URL to the feed file (XML, CSV, TSV, JSON)"
                },
                "content": {
                  "type": "string",
                  "title": "Feed Content",
                  "description": "Paste feed content directly (alternative to URL)"
                },
                "format": {
                  "type": "string",
                  "title": "Feed Format",
                  "description": "Feed format (auto-detected if not specified)",
                  "enum": [
                    "auto",
                    "google-xml",
                    "csv",
                    "tsv",
                    "json",
                    "shopify-json"
                  ]
                }
              },
              "required": [
                "name"
              ]
            }
          },
          "channels": {
            "title": "Target Channels",
            "uniqueItems": true,
            "type": "array",
            "description": "Which channel rules to validate against: google (Google Merchant Center / Google Shopping), meta (Facebook & Instagram catalogs), generic (basic e-commerce sanity checks). Pick one or more.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "meta",
                "generic"
              ],
              "enumTitles": [
                "Google Merchant Center",
                "Meta Catalog (Facebook/Instagram)",
                "Generic E-commerce"
              ]
            },
            "default": [
              "google"
            ]
          },
          "checkLandingPages": {
            "title": "Check Landing Pages",
            "type": "boolean",
            "description": "If true, opens a sample of product landing pages and checks HTTP status and whether price and availability on the page match the feed. Charged per page checked ($0.01).",
            "default": false
          },
          "landingPageSampleSize": {
            "title": "Landing Page Sample Size",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "How many product landing pages to check when checkLandingPages is true (0 = all products). Start with 10-50.",
            "default": 100
          },
          "baselineName": {
            "title": "Baseline Name",
            "type": "string",
            "description": "Optional. Name of a saved baseline (e.g. 'main-feed'). If set, the run is compared with the previous run of the same name to report items added/removed and price changes."
          },
          "maxItemsPerFeed": {
            "title": "Max Items Per Feed",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Maximum number of products (items/variants) to validate per feed. Caps cost: each validated item is charged $0.0005.",
            "default": 50000
          },
          "checkImageUrls": {
            "title": "Check Image URLs",
            "type": "boolean",
            "description": "Validate image_link URLs (format and supported file types).",
            "default": true
          },
          "generateFixedFeed": {
            "title": "Generate Fixed Feed",
            "type": "boolean",
            "description": "For CSV/XML feeds, save an auto-corrected CSV where safe fixes are possible (e.g. trimming, formatting).",
            "default": true
          },
          "strictMode": {
            "title": "Strict Mode",
            "type": "boolean",
            "description": "Treat warnings as errors (useful as a strict quality gate in CI).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}