{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store & Google Play Reviews — Monitor & Backfill",
    "description": "One Actor for both stores: backfill App Store (latest 500 per country) and Google Play (full-depth, with developer replies) reviews into one unified dataset, or monitor apps on a schedule and output only new reviews plus a per-run summary. Low-rating (<=2 stars) and keyword-hit enrichment included.",
    "version": "0.1",
    "x-build-id": "312ix2bimbqsNSUZf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lone_fascia~app-store-review-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lone_fascia-app-store-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/lone_fascia~app-store-review-monitor/runs": {
      "post": {
        "operationId": "runs-sync-lone_fascia-app-store-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/lone_fascia~app-store-review-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-lone_fascia-app-store-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": {
          "appStoreSort": {
            "title": "App Store sort",
            "enum": [
              "mostrecent",
              "mosthelpful"
            ],
            "type": "string",
            "description": "App Store only: most recent or most helpful first.",
            "default": "mostrecent"
          },
          "apps": {
            "title": "Apps (links or IDs, both stores mixed)",
            "type": "array",
            "description": "One entry per app. Accepted forms: full store URLs (play.google.com/store/apps/details?id=... or apps.apple.com/<country>/app/id<digits>), a numeric App Store ID (e.g. 324684580), or a Google Play package name (e.g. com.spotify.music). The store is detected automatically; a country embedded in the URL is honored.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Additional countries",
            "type": "array",
            "description": "Optional extra country codes (ISO 3166-1 alpha-2, lowercase, e.g. us, gb, de, jp) to check for every app, on top of the URL country (or us by default).",
            "items": {
              "type": "string"
            }
          },
          "googlePlaySort": {
            "title": "Google Play sort",
            "enum": [
              "newest",
              "most_relevant",
              "rating"
            ],
            "type": "string",
            "description": "Google Play only: newest, most relevant, or by rating.",
            "default": "newest"
          },
          "keywords": {
            "title": "Keywords to flag",
            "type": "array",
            "description": "Optional watchlist. Reviews whose title or text contains any keyword (case-insensitive) are flagged in keywordHits and counted as enriched.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max reviews per app per country",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap per app x country. Note: App Store is limited by Apple to the latest 500 reviews per country; Google Play can go deeper.",
            "default": 500
          },
          "maxRating": {
            "title": "Max rating filter (1-5)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Optional. Only output reviews with at most this many stars (e.g. 2 to collect only negative reviews)."
          },
          "minRating": {
            "title": "Min rating filter (1-5)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Optional. Only output reviews with at least this many stars."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "backfill",
              "monitor"
            ],
            "type": "string",
            "description": "backfill: one-shot pull of existing reviews. monitor: output only reviews not seen in previous monitor runs of this Actor (state is kept between runs; schedule this Actor to get new-review alerts).",
            "default": "backfill"
          },
          "maxChargeUsd": {
            "title": "Max charge for this run (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Optional run spending cap in USD (estimated, at the reference prices). The run reserves the summary-report cost up front and stops delivering once the cap would be exceeded; a charge refusal (event limit reached) also stops the run and is reported in the summary. Leave empty to rely on the platform charge limit only."
          },
          "maxTotalReviews": {
            "title": "Max total reviews per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Run-wide cap on reviews delivered in one run, across all apps and countries. maxItems is only a per-app-per-country cap.",
            "default": 10000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}