{
  "openapi": "3.0.1",
  "info": {
    "title": "Prom.ua Marketplace Price & Seller Monitor",
    "description": "Scrape & monitor the Prom.ua marketplace by category — price, old price, discount, seller, stock — and track price moves, discounts and seller changes between runs.",
    "version": "0.1",
    "x-build-id": "8q6bekrtPwJRXZ5Ft"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sashaebashu~prom-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sashaebashu-prom-monitor",
        "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/sashaebashu~prom-monitor/runs": {
      "post": {
        "operationId": "runs-sync-sashaebashu-prom-monitor",
        "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/sashaebashu~prom-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-sashaebashu-prom-monitor",
        "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": [
          "categoryUrls"
        ],
        "properties": {
          "categoryUrls": {
            "title": "Category URLs",
            "type": "array",
            "description": "Prom.ua category pages — full URLs (https://prom.ua/ua/Noutbuki) or just the slug (Noutbuki). Find them by browsing prom.ua and copying the address bar.",
            "items": {
              "type": "string"
            }
          },
          "maxPagesPerCategory": {
            "title": "Max pages per category",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many listing pages to read per category. Prom.ua decides how many products a page holds (about 30 at the moment) and lists at most 500 pages per category. The Actor stops by itself at the real end of a category, so a high value costs nothing extra.",
            "default": 20
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Overall cap on rows. 0 = no cap.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Categories fetched in parallel.",
            "default": 4
          },
          "monitorMode": {
            "title": "Monitor mode (price, seller & stock alerts)",
            "type": "boolean",
            "description": "Compare against the previous run with the same categories and label every row: price_down, price_up, seller_change, back_in_stock, out_of_stock, new, unchanged. Also adds previousPrice, previousSeller and a 30-day price band.",
            "default": false
          },
          "onlyChanges": {
            "title": "Output only changed items",
            "type": "boolean",
            "description": "Monitor mode only — return just the products that moved, instead of the whole catalogue.",
            "default": false
          },
          "freshnessStamps": {
            "title": "Add freshness stamps",
            "type": "boolean",
            "description": "Adds `firstSeenAt` (when the product first appeared in your runs with this input), `lastConfirmedAt` (when it was last seen) and `timesSeen`.",
            "default": false
          },
          "anomalyDetection": {
            "title": "Flag anomalies",
            "type": "boolean",
            "description": "Score each product against comparable products from the same category in this run and flag the ones far outside the usual range: `anomalyScore`, `isAnomaly`, `anomalyReason`. Needs at least 5 comparable products; with fewer, the product is compared with the whole run. Results are written at the end of the run in this mode.",
            "default": false
          },
          "anomalyThreshold": {
            "title": "Anomaly threshold",
            "minimum": 1,
            "maximum": 20,
            "type": "number",
            "description": "How far from typical an item must be to count as an anomaly. 3.5 is the usual choice; lower values flag more items.",
            "default": 3.5
          },
          "alertRules": {
            "title": "Alert rules",
            "type": "array",
            "description": "One rule per line, e.g. `discountPercent >= 30 and available == true`. Combine conditions with `and`. Operators: > >= < <= == != contains. Matching rows get `alertTriggered: true` and the matched rules in `alerts`; the matches are also saved to the ALERTS record.",
            "items": {
              "type": "string"
            }
          },
          "onlyAlerts": {
            "title": "Only rows that trigger an alert",
            "type": "boolean",
            "description": "Return only the rows that match at least one alert rule. Other rows are not written and not charged.",
            "default": false
          },
          "includePriceHistory": {
            "title": "Include price history",
            "type": "boolean",
            "description": "Monitor mode only. Adds `priceHistory` — every recorded price point over the last 90 days — next to the rolling 30-day low and high.",
            "default": false
          },
          "mcpSyncConnector": {
            "title": "Sync results to",
            "type": "string",
            "description": "Write the results straight into the tool your team already uses — Notion, Google Sheets, Airtable or any MCP server with a write tool."
          },
          "mcpSyncTool": {
            "title": "Sync: tool",
            "type": "string",
            "description": "Name of the connector tool that adds rows, e.g. create_records."
          },
          "mcpSyncArguments": {
            "title": "Sync: tool arguments",
            "type": "object",
            "description": "Use {{rows}} for a batch of rows, or {{row}} and {{row.views}} for one row per call, e.g. {\"table\": \"Results\", \"records\": \"{{rows}}\"}. Every row carries a stable `key`."
          },
          "mcpSyncUpdateTool": {
            "title": "Sync: update tool (optional)",
            "type": "string",
            "description": "Tool that updates existing rows. When set, products synced by earlier runs are updated in place instead of being added again; their record id is available as {{row.externalId}}."
          },
          "mcpSyncUpdateArguments": {
            "title": "Sync: update tool arguments (optional)",
            "type": "object",
            "description": "Same placeholders as above. Defaults to the sync tool arguments."
          },
          "mcpSyncFields": {
            "title": "Sync: fields",
            "type": "array",
            "description": "Which fields to send. Leave empty for the main columns.",
            "items": {
              "type": "string"
            }
          },
          "mcpSyncBatchSize": {
            "title": "Sync: rows per call",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many rows go into one {{rows}} call.",
            "default": 10
          },
          "mcpNotifyConnector": {
            "title": "Notify when done",
            "type": "string",
            "description": "Post a one-message summary to Slack, Teams, Telegram, email or any messaging MCP server when the run finishes or fails."
          },
          "mcpNotifyTarget": {
            "title": "Notify: channel or recipient",
            "type": "string",
            "description": "For example #alerts or name@company.com. Used when the message arguments are filled in automatically."
          },
          "mcpNotifyOn": {
            "title": "Notify: when",
            "enum": [
              "always",
              "failure",
              "alerts"
            ],
            "type": "string",
            "description": "Every run, only failed runs, or only runs that found alerts or changes.",
            "default": "always"
          },
          "mcpNotifyTool": {
            "title": "Notify: tool (optional)",
            "type": "string",
            "description": "Picked automatically when empty (send_message, post_message and similar)."
          },
          "mcpNotifyArguments": {
            "title": "Notify: tool arguments (optional)",
            "type": "object",
            "description": "Use {{summary}}, {{status}}, {{itemCount}} and {{runUrl}}, e.g. {\"channel\": \"#alerts\", \"text\": \"{{summary}}\"}."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The default proxy settings work for Prom.ua — keep them unless you have a reason to change them.",
            "default": {
              "useApifyProxy": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}