{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Play Review & Competitor Intelligence",
    "description": "Analyze public Google Play reviews for sentiment, complaints, feature requests, switching signals, competitor mentions, app-version trends, and monitoring changes.",
    "version": "0.1",
    "x-build-id": "klazviE6EjWLag5NL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datahunter_labs~google-play-review-competitor-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datahunter_labs-google-play-review-competitor-intelligence",
        "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/datahunter_labs~google-play-review-competitor-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-datahunter_labs-google-play-review-competitor-intelligence",
        "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/datahunter_labs~google-play-review-competitor-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-datahunter_labs-google-play-review-competitor-intelligence",
        "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": "Google Play apps",
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "description": "Google Play package names or public Play Store app URLs. Google Play reviews are a global corpus, so no country selector is exposed.",
            "items": {
              "type": "string"
            },
            "default": [
              "com.spotify.music"
            ]
          },
          "maxReviewsPerApp": {
            "title": "Maximum reviews per app",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on normalized review rows collected for each app after rating filtering.",
            "default": 100
          },
          "ratings": {
            "title": "Ratings filter",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional star-rating filter. Leave empty to keep ratings 1 through 5.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            },
            "default": []
          },
          "competitorNames": {
            "title": "Competitor names",
            "maxItems": 50,
            "type": "array",
            "description": "Optional product or competitor names used to detect mentions and switching intent in review text.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "includeReviewerName": {
            "title": "Include reviewer display name",
            "type": "boolean",
            "description": "Include the public reviewer display name when the source reports it. Disabled by default to minimize unnecessary personal data.",
            "default": false
          },
          "includeAppMetadata": {
            "title": "Include app metadata",
            "type": "boolean",
            "description": "Fetch public app name, developer, category, current version, store rating, rating count, price, icon URL, and release dates when available.",
            "default": true
          },
          "monitorChanges": {
            "title": "Monitor review changes",
            "type": "boolean",
            "description": "Persist actor-scoped state to identify new or changed reviews on later runs with the same relevant inputs. The first run is a baseline and is not falsely marked new.",
            "default": true
          },
          "onlyNewReviews": {
            "title": "Only emit new or changed reviews after baseline",
            "type": "boolean",
            "description": "When monitoring is enabled and a baseline exists, emit only reviews that are new or changed. Summaries remain free output.",
            "default": false
          },
          "cacheTtlMinutes": {
            "title": "Cache TTL (minutes)",
            "minimum": 1,
            "maximum": 10080,
            "type": "integer",
            "description": "Actor-scoped cache lifetime used only when monitoring is disabled.",
            "default": 60
          },
          "forceRefresh": {
            "title": "Force refresh",
            "type": "boolean",
            "description": "Ignore a valid non-monitoring cache entry and fetch fresh public Google Play data.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Maximum app concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Bounded number of apps processed concurrently to reduce load and blocking risk.",
            "default": 2
          },
          "maxRequestsPerRun": {
            "title": "HTTP request budget",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on source requests including retries. Prevents runaway pagination and unexpected cost.",
            "default": 100
          },
          "timeoutSeconds": {
            "title": "HTTP timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Per-request timeout before a bounded retry or diagnostic failure is recorded.",
            "default": 20
          },
          "maxRetries": {
            "title": "Maximum retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Bounded retries for rate limits, blocking responses, timeouts, transport errors, and transient server errors.",
            "default": 2
          },
          "retryBackoffSeconds": {
            "title": "Retry backoff (seconds)",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "Base exponential backoff between bounded retries.",
            "default": 1
          },
          "directFirst": {
            "title": "Try direct requests first",
            "type": "boolean",
            "description": "Use the public Google Play web source directly first and fall back to proxy rotation only after blocking or transient failures.",
            "default": true
          },
          "maxProxyRotations": {
            "title": "Maximum proxy rotations",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Hard cap on proxy/session rotations after blocking or transient failures.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy fallback configuration",
            "type": "object",
            "description": "Optional Apify or custom proxy used only when needed. Direct requests are preferred by default.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}