{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store & Google Play Review Monitor",
    "description": "Monitor new public App Store and Google Play reviews by country. Schedule it and keep only reviews since the last run.",
    "version": "0.2",
    "x-build-id": "SYbm5ut87UErt5AAh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hari_seldon90~review-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hari_seldon90-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/hari_seldon90~review-monitor/runs": {
      "post": {
        "operationId": "runs-sync-hari_seldon90-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/hari_seldon90~review-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-hari_seldon90-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",
        "properties": {
          "appStoreIds": {
            "title": "App Store apps",
            "type": "array",
            "description": "One app per line. Paste the App Store link, for example https://apps.apple.com/us/app/facebook/id284882215. A numeric id such as 284882215 also works. A Google Play link pasted here is moved to Google Play apps.",
            "items": {
              "type": "string"
            }
          },
          "googlePlayIds": {
            "title": "Google Play apps",
            "type": "array",
            "description": "One app per line. Paste the Play Store link, for example https://play.google.com/store/apps/details?id=com.spotify.music. A package name such as com.spotify.music also works. An App Store link pasted here is moved to App Store apps.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Store countries to check. Each country is a separate fetch, so an App Store app can go past the limit of about 500 reviews in one country. uk is accepted as gb, and usa as us.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "us",
                "gb",
                "ca",
                "au",
                "nz",
                "ie",
                "de",
                "fr",
                "es",
                "it",
                "nl",
                "be",
                "at",
                "ch",
                "se",
                "no",
                "dk",
                "fi",
                "pt",
                "pl",
                "cz",
                "sk",
                "hu",
                "ro",
                "gr",
                "tr",
                "ua",
                "br",
                "mx",
                "ar",
                "cl",
                "co",
                "pe",
                "jp",
                "kr",
                "cn",
                "hk",
                "tw",
                "sg",
                "my",
                "th",
                "id",
                "vn",
                "in",
                "ph",
                "ae",
                "sa",
                "il",
                "eg",
                "za",
                "ng"
              ],
              "enumTitles": [
                "United States",
                "United Kingdom",
                "Canada",
                "Australia",
                "New Zealand",
                "Ireland",
                "Germany",
                "France",
                "Spain",
                "Italy",
                "Netherlands",
                "Belgium",
                "Austria",
                "Switzerland",
                "Sweden",
                "Norway",
                "Denmark",
                "Finland",
                "Portugal",
                "Poland",
                "Czechia",
                "Slovakia",
                "Hungary",
                "Romania",
                "Greece",
                "Turkey",
                "Ukraine",
                "Brazil",
                "Mexico",
                "Argentina",
                "Chile",
                "Colombia",
                "Peru",
                "Japan",
                "South Korea",
                "China",
                "Hong Kong",
                "Taiwan",
                "Singapore",
                "Malaysia",
                "Thailand",
                "Indonesia",
                "Vietnam",
                "India",
                "Philippines",
                "United Arab Emirates",
                "Saudi Arabia",
                "Israel",
                "Egypt",
                "South Africa",
                "Nigeria"
              ]
            },
            "default": [
              "us"
            ]
          },
          "maxReviewsPerApp": {
            "title": "Max reviews per app and country",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many reviews to save for one app in one country. 100 is enough for a first look. 500 is the most the App Store feed can return for one country. Extra reviews are skipped, not charged.",
            "default": 500
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "most-helpful",
              "rating"
            ],
            "type": "string",
            "description": "Newest is the right choice for a scheduled monitor. Most helpful and rating are for a one-time export. The App Store feed has no rating sort, so rating order is applied to the newest pages.",
            "default": "newest"
          },
          "minRating": {
            "title": "Minimum stars",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep reviews with at least this many stars. Leave empty to keep every rating. Pair minimum 1 with maximum 2 to focus on low-star reviews."
          },
          "maxRating": {
            "title": "Maximum stars",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep reviews with at most this many stars. Leave empty to keep every rating. Set this to 3 to hide 4-star and 5-star reviews."
          },
          "newOnly": {
            "title": "New reviews only",
            "type": "boolean",
            "description": "On: a later run with the same monitor name returns only reviews newer than the previous run. Off: collect a fresh batch. The monitor name still remembers the newest review it saw.",
            "default": true
          },
          "stateKey": {
            "title": "Monitor name",
            "pattern": "^$|^[a-zA-Z0-9!\\-_.'()]{1,256}$",
            "type": "string",
            "description": "A name for this watch, such as review-monitor. The same name on the next run, including a schedule, continues where this run stopped. A different name starts a separate watch. Leave empty for a one-time export that does not remember anything."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}