{
  "openapi": "3.0.1",
  "info": {
    "title": "App Review Monitor — iOS & Google Play Rating Alerts",
    "description": "Schedule it daily: get alerts only when something changes — new 1–2★ reviews, rating drops, new versions that hurt ratings, copy-pasted review campaigns. App Store + Google Play, Slack/Discord webhook.",
    "version": "1.0",
    "x-build-id": "SZFTWKtfHDhobbekl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/readyinsights~app-review-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-readyinsights-app-review-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/readyinsights~app-review-monitor/runs": {
      "post": {
        "operationId": "runs-sync-readyinsights-app-review-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/readyinsights~app-review-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-readyinsights-app-review-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": [
          "apps"
        ],
        "properties": {
          "apps": {
            "title": "Apps to monitor",
            "type": "array",
            "description": "App Store URLs, numeric App Store IDs, Google Play URLs or package names (e.g. com.duolingo). Mix both stores freely — up to 30 apps.",
            "items": {
              "type": "string"
            }
          },
          "webhookUrl": {
            "title": "Webhook URL (Slack / Discord / any)",
            "type": "string",
            "description": "Optional. Alerts are POSTed here when something changes. Works with Slack incoming webhooks and Discord webhooks; other URLs receive JSON {text, alerts}."
          },
          "appStoreCountries": {
            "title": "App Store countries",
            "type": "array",
            "description": "Two-letter country codes to watch for iOS apps.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "googlePlayMarkets": {
            "title": "Google Play markets",
            "type": "array",
            "description": "language-country pairs for Android apps, e.g. en-us, de-de, vi-vn.",
            "default": [
              "en-us"
            ],
            "items": {
              "type": "string"
            }
          },
          "appStorePagesPerCountry": {
            "title": "App Store pages per country",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "50 newest reviews per page. 3 is plenty for a daily schedule.",
            "default": 3
          },
          "googlePlayReviewsPerMarket": {
            "title": "Google Play reviews per market",
            "minimum": 50,
            "maximum": 3000,
            "type": "integer",
            "description": "Upper bound per run; the monitor stops early once it reaches reviews it has already seen.",
            "default": 500
          },
          "negativeMaxStars": {
            "title": "Negative review = this many stars or fewer",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Reviews with this many stars or fewer count as negative (default 2 = 1★ and 2★).",
            "default": 2
          },
          "minNegativeReviews": {
            "title": "Alert when at least N new negative reviews",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Send a 'new negative reviews' alert only when at least this many arrived since the last run.",
            "default": 1
          },
          "ratingDropThreshold": {
            "title": "Rating drop threshold (stars)",
            "type": "string",
            "description": "Alert when new reviews (or a new version) average this many stars below the baseline. E.g. 0.5",
            "default": "0.5"
          },
          "minReviewsForRatingAlert": {
            "title": "Min new reviews for a rating-drop alert",
            "minimum": 3,
            "maximum": 1000,
            "type": "integer",
            "description": "A rating-drop alert needs at least this many new reviews, so one angry review can't trigger it.",
            "default": 10
          },
          "minVersionReviews": {
            "title": "Min reviews per version for a regression alert",
            "minimum": 3,
            "maximum": 1000,
            "type": "integer",
            "description": "A version needs at least this many reviews before it can trigger a version-regression alert.",
            "default": 10
          },
          "alertOnFirstRun": {
            "title": "Alert on the first run too",
            "type": "boolean",
            "description": "By default the first run only saves a baseline.",
            "default": false
          },
          "stateStoreName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the storage that remembers what was already seen. Use different names to run independent monitors (e.g. 'my-apps', 'competitors').",
            "default": "readyinsights-app-review-monitor"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Used for App Store requests (Apple throttles busy IPs). Google Play is read directly.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxRunSeconds": {
            "title": "Time budget (seconds)",
            "minimum": 60,
            "maximum": 3000,
            "type": "integer",
            "description": "Stop collecting after this many seconds and report what was gathered. Keeps scheduled runs fast.",
            "default": 210
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}