{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Feed Landing Page Matcher",
    "description": "Match product feed records to live landing pages and flag mismatches in title, price, availability, canonical URL, image, GTIN/SKU, and status",
    "version": "1.0",
    "x-build-id": "kYZh02nK4uiV7j5mQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/junipr~product-feed-landing-page-matcher/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-junipr-product-feed-landing-page-matcher",
        "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/junipr~product-feed-landing-page-matcher/runs": {
      "post": {
        "operationId": "runs-sync-junipr-product-feed-landing-page-matcher",
        "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/junipr~product-feed-landing-page-matcher/run-sync": {
      "post": {
        "operationId": "run-sync-junipr-product-feed-landing-page-matcher",
        "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": {
          "startUrls": {
            "title": "Public start URLs",
            "type": "array",
            "description": "Explicit pages used only when no HTML snapshots are supplied.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "sitemapUrls": {
            "title": "Sitemap URLs",
            "type": "array",
            "description": "Accepted for workflow compatibility; this actor does not perform broad sitemap crawling.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "htmlInputs": {
            "title": "Captured HTML inputs",
            "type": "array",
            "description": "Deterministic records with sourceUrl, html/currentHtml, and optional httpStatus.",
            "items": {
              "type": "object"
            },
            "default": [
              {
                "sourceId": "northstar-current",
                "sourceUrl": "https://shop.example/products/northstar-drive",
                "title": "Northstar Backup Drive",
                "html": "<!doctype html><html><head><title>Northstar Backup Drive 2TB</title><link rel=\"canonical\" href=\"https://shop.example/products/northstar-drive\"><script type=\"application/ld+json\">{\"@type\":\"Product\",\"name\":\"Northstar Backup Drive 2TB\",\"sku\":\"NSB-2TB\",\"gtin13\":\"0123456789012\",\"image\":\"https://shop.example/images/northstar.jpg\",\"offers\":{\"@type\":\"Offer\",\"price\":\"129.00\",\"priceCurrency\":\"USD\",\"availability\":\"https://schema.org/InStock\"}}</script></head><body><main><h1>Northstar Backup Drive 2TB</h1><p class=\"price\">$129.00</p><p class=\"availability\">In stock</p><img src=\"/images/northstar.jpg\" alt=\"Northstar Backup Drive 2TB\"></main></body></html>",
                "httpStatus": 200
              }
            ]
          },
          "allowedDomains": {
            "title": "Allowed domains",
            "type": "array",
            "description": "Optional allowlist enforced for live URL hydration.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxPages": {
            "title": "Maximum pages",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum pages to fetch in one run.",
            "default": 3
          },
          "maxDepth": {
            "title": "Maximum pagination depth",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Only the collection auditor can follow same-domain rel=next links.",
            "default": 0
          },
          "includeEvidence": {
            "title": "Include evidence snippets",
            "type": "boolean",
            "description": "Include short source evidence snippets in output rows.",
            "default": true
          },
          "includeRawSnapshots": {
            "title": "Store bounded raw snapshots",
            "type": "boolean",
            "description": "Opt in to raw HTML artifacts in key-value storage.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Request delay milliseconds",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Delay in milliseconds between outbound page requests.",
            "default": 0
          },
          "timeoutMs": {
            "title": "Request timeout milliseconds",
            "minimum": 1000,
            "maximum": 60000,
            "type": "integer",
            "description": "Maximum time in milliseconds to wait for a page request.",
            "default": 15000
          },
          "userAgentMode": {
            "title": "User-agent mode",
            "enum": [
              "standard",
              "compatibility"
            ],
            "type": "string",
            "description": "User agent profile to use for public page requests.",
            "default": "standard"
          },
          "feedCsvOrJson": {
            "title": "Product feed CSV or JSON",
            "type": "string",
            "description": "JSON array/object or header-based CSV text.",
            "default": "[{\"id\":\"feed-200\",\"sku\":\"NSB-2TB\",\"url\":\"https://shop.example/products/northstar-drive\",\"title\":\"Northstar Backup Drive 2TB\",\"price\":129,\"availability\":\"in stock\",\"image\":\"https://shop.example/images/northstar.jpg\"}]"
          },
          "productUrls": {
            "title": "Product landing-page URLs",
            "type": "array",
            "description": "Public product page URLs to inspect.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "feedUrlField": {
            "title": "Feed URL field",
            "type": "string",
            "description": "Feed field containing the product or landing-page URL.",
            "default": "url"
          },
          "skuField": {
            "title": "Feed SKU field",
            "type": "string",
            "description": "Feed field containing the product SKU or unique identifier.",
            "default": "sku"
          },
          "matchBy": {
            "title": "Match strategy",
            "enum": [
              "url_then_sku",
              "url",
              "sku"
            ],
            "type": "string",
            "description": "Matching strategy used to pair feed rows with landing pages.",
            "default": "url_then_sku"
          },
          "fetchLivePages": {
            "title": "Fetch live product pages",
            "type": "boolean",
            "description": "Opt-in bounded public fetching; supplied HTML is preferred.",
            "default": false
          },
          "comparisonRules": {
            "title": "Compared fields",
            "type": "array",
            "description": "Product feed fields and landing-page signals to compare.",
            "items": {
              "type": "string"
            },
            "default": [
              "title",
              "price",
              "availability",
              "canonical",
              "image"
            ]
          },
          "maxFeedRows": {
            "title": "Maximum feed rows",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum product feed rows to inspect.",
            "default": 250
          },
          "maxProductPages": {
            "title": "Maximum product pages",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum product pages to fetch or analyze.",
            "default": 25
          },
          "maxLandingPages": {
            "title": "Maximum landing pages",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum landing pages to compare against feed rows.",
            "default": 25
          },
          "maxMismatches": {
            "title": "Maximum mismatch rows",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum mismatch records to emit.",
            "default": 250
          },
          "maxChargeUsd": {
            "title": "Maximum charge",
            "minimum": 0,
            "maximum": 75,
            "type": "number",
            "description": "Maximum estimated PPE spend before the actor exits gracefully.",
            "default": 75
          },
          "includeReport": {
            "title": "Write reports",
            "type": "boolean",
            "description": "Write the markdown summary report to the run key-value store.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}