{
  "openapi": "3.0.1",
  "info": {
    "title": "App Release Health Report - Play & App Store",
    "description": "Scrape Google Play and Apple App Store reviews for any app and country, then turn them into a per-app-country release-health report: per-version rating trends, regression detection, issue buckets and Google's own Play quality-issue labels.",
    "version": "0.1",
    "x-build-id": "6lnYUasCypopn5u7J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/epiconetic~app-release-health-report/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-epiconetic-app-release-health-report",
        "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/epiconetic~app-release-health-report/runs": {
      "post": {
        "operationId": "runs-sync-epiconetic-app-release-health-report",
        "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/epiconetic~app-release-health-report/run-sync": {
      "post": {
        "operationId": "run-sync-epiconetic-app-release-health-report",
        "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": {
          "playPackageNames": {
            "title": "Google Play package names",
            "type": "array",
            "description": "Google Play package names to analyse, e.g. `com.spotify.music` or `com.duolingo`. Reviews are read from Google Play, including Google's own quality-issue labels and the app version each reviewer was running.",
            "items": {
              "type": "string"
            }
          },
          "appStoreAppIds": {
            "title": "Apple App Store app IDs",
            "type": "array",
            "description": "Numeric Apple App Store app IDs to analyse, e.g. `310633997` for WhatsApp or `389801252` for Instagram. Apple's public review feed exposes at most 500 reviews per app and country.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter country codes to analyse, e.g. `us`, `id`, `jp`, `de`. Defaults to `us`. One release-health report is produced per app and country.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Display languages (Google Play only)",
            "type": "array",
            "description": "Optional override of the review display language for Google Play, e.g. `en`, `id`, `ja`, `de`. When omitted, the language is derived from the country. The App Store feed cannot be steered by language and always uses the storefront language.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Review sort order (Google Play only)",
            "enum": [
              "newest",
              "mostRelevant",
              "rating",
              "helpfulness"
            ],
            "type": "string",
            "description": "Order in which Google Play returns reviews. `newest` is the default and is required for reliable incremental runs.",
            "default": "newest"
          },
          "maxReviewsPerApp": {
            "title": "Maximum reviews per app and country",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper bound on the number of reviews collected for one app in one country. Apple caps out at 500 per app and country; Google Play has no such limit.",
            "default": 500
          },
          "maxPages": {
            "title": "Maximum pages per app and country",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper bound on the number of result pages fetched per app and country. Each Google Play page holds up to 100 reviews and each App Store page holds up to 50.",
            "default": 10
          },
          "since": {
            "title": "Only reviews published since this date",
            "type": "string",
            "description": "ISO-8601 date or datetime. Reviews published before this moment are skipped. Example: `2026-01-01`."
          },
          "includeAppDetails": {
            "title": "Include app metadata",
            "type": "boolean",
            "description": "Fetch the store listing metadata (name, developer, average rating, install bucket, last update date) and embed it in the report.",
            "default": true
          },
          "includeDeveloperReplies": {
            "title": "Include developer replies",
            "type": "boolean",
            "description": "Include the developer's reply to a review when the store exposes it. Google Play exposes developer replies; the App Store feed does not.",
            "default": true
          },
          "includeIssueTags": {
            "title": "Include issue tags",
            "type": "boolean",
            "description": "Tag every review with issue buckets (crash, performance, ads, billing, login, ...) derived from the review text, and with Google's own Play quality-issue labels where available.",
            "default": true
          },
          "groupByVersion": {
            "title": "Group reviews by app version",
            "type": "boolean",
            "description": "Aggregate rating statistics per app version so you can see which release the ratings belong to.",
            "default": true
          },
          "detectRegressions": {
            "title": "Detect version regressions",
            "type": "boolean",
            "description": "Compare each app version with the version before it and flag the ones whose average rating dropped noticeably.",
            "default": true
          },
          "minReviewsForRegression": {
            "title": "Minimum reviews for a regression verdict",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "A version needs at least this many reviews before its rating is compared with the previous version. Prevents noise from a handful of reviews.",
            "default": 20
          },
          "regressionRatingDrop": {
            "title": "Regression rating drop threshold",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "How much the average rating must drop between two consecutive versions before it is reported as a regression. Uses the 1-5 star scale.",
            "default": 0.3
          },
          "incremental": {
            "title": "Incremental run",
            "type": "boolean",
            "description": "Only fetch reviews published since the previous run for the same app, country and `stateKey`. Useful on a schedule.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Namespace for the incremental bookkeeping. Runs that share a key share their history; use different keys to track the same app on separate schedules."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}