{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Price, Reviews & Store Security Comparator",
    "description": "Find where to buy any product at the best price and highest store security. Auto-discovers nearby and online stores, extracts real prices, stock, and customer reviews, audits website security & payment trust (0-100), and ranks the safest deals.",
    "version": "1.0",
    "x-build-id": "IrEGS5SgHyVsM50N6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vertika~product-price-security-comparator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vertika-product-price-security-comparator",
        "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/vertika~product-price-security-comparator/runs": {
      "post": {
        "operationId": "runs-sync-vertika-product-price-security-comparator",
        "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/vertika~product-price-security-comparator/run-sync": {
      "post": {
        "operationId": "run-sync-vertika-product-price-security-comparator",
        "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": {
          "productQueries": {
            "title": "🔍 Products to Search & Compare",
            "type": "array",
            "description": "Enter one or more product names, models, or SKUs. The Actor will discover stores selling each product, extract real prices, and rank the best deals.\n\nExamples:\n• \"Raspberry Pi 5\"\n• \"MINISFORUM UM890 Pro, 32 GB RAM, 1 TB SSD\"\n• \"Sony WH-1000XM5\"\n• \"Logitech MX Master 3S\"",
            "items": {
              "type": "string"
            }
          },
          "locationOrCountry": {
            "title": "📍 Nearby City, Region, or Country (Optional)",
            "type": "string",
            "description": "Prioritize local or regional stores in search discovery. Useful for finding nearby retailers, country-specific pricing, or local shipping deals.\n\nExamples: \"Miami, FL\" · \"United States\" · \"Spain\" · \"Mexico\" · \"Venezuela\""
          },
          "storeUrls": {
            "title": "🔗 Direct Store or Product URLs to Compare (Optional)",
            "type": "array",
            "description": "Add specific store homepages or product page URLs to analyze alongside (or instead of) auto-discovered stores. Useful for head-to-head comparisons between specific vendors.\n\nAccepts both store homepages (the Actor will find the product) and direct product page URLs.",
            "items": {
              "type": "string"
            }
          },
          "dealEventFilter": {
            "title": "🗓️ Seasonal Deal Event Filter",
            "enum": [
              "auto",
              "any",
              "black_friday",
              "cyber_monday",
              "prime_day",
              "holiday_christmas",
              "buen_fin",
              "singles_day_11_11",
              "back_to_school",
              "flash_sale"
            ],
            "type": "string",
            "description": "Target a specific shopping event. The Actor will append event-specific keywords to store discovery and track active seasonal campaigns, promo codes, and deal expiry dates found on each store page.",
            "default": "auto"
          },
          "onlyActiveDeals": {
            "title": "⚡ Only Return Stores with Active Discounts or Deals",
            "type": "boolean",
            "description": "When enabled, only stores with an active price discount, promo code, or detected seasonal event (e.g. Black Friday campaign) are included in the results. Great for finding real savings during shopping events.",
            "default": false
          },
          "maxStoresPerProduct": {
            "title": "🏪 Max Stores to Discover per Product",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum number of unique store websites to discover from search engines per product query. Higher values find more deals but take longer.\n\nRecommended: 8–12 for fast runs · 20–25 for comprehensive market coverage.",
            "default": 8
          },
          "sortBy": {
            "title": "🏆 Rank & Sort Offers By",
            "enum": [
              "bestDeal",
              "lowestPrice",
              "highestSecurity",
              "highestRating"
            ],
            "type": "string",
            "description": "How to rank and order the compared store offers for each product in the output dataset.",
            "default": "bestDeal"
          },
          "minSecurityScore": {
            "title": "🛡️ Minimum Store Security Score (0–100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Filter out stores whose security and trust score is below this threshold. Helps exclude potentially risky or fraudulent stores from results.\n\n• 0 = Include all stores (flag risky ones with warnings)\n• 40 = Exclude clearly unsafe stores\n• 60 = Only moderately-to-highly trusted stores\n• 80 = Only high-trust stores with strong security signals",
            "default": 0
          },
          "onlyInStock": {
            "title": "✅ Only Include In-Stock Offers",
            "type": "boolean",
            "description": "When enabled, offers explicitly marked as Out of Stock are excluded from the results. Note: some stores do not publish stock status — these are always included.",
            "default": false
          },
          "preferredCurrency": {
            "title": "💱 Preferred Currency Code",
            "type": "string",
            "description": "3-letter ISO 4217 currency code used as a fallback when a store displays a numeric price without an explicit currency symbol.\n\nExamples: USD · EUR · GBP · MXN · CAD · AUD · BRL · JPY · INR",
            "default": "USD"
          },
          "language": {
            "title": "🌐 Recommendations & Security Report Language",
            "enum": [
              "en",
              "es"
            ],
            "type": "string",
            "description": "Language used for buying recommendations, trust signal labels, and security warning messages in the output.",
            "default": "en"
          },
          "concurrency": {
            "title": "⚡ Concurrency (Parallel Store Requests)",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Number of store pages analyzed simultaneously. Higher values complete faster but consume more memory and may trigger rate limits on some stores.\n\nRecommended: 5 (default) · Max: 15",
            "default": 5
          },
          "requestTimeoutSecs": {
            "title": "⏱️ Request Timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum time to wait for each store page to respond. Increase for slow international stores; decrease to skip unresponsive ones quickly.",
            "default": 15
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}