{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store & Google Play Reviews Scraper: Pain Points + AI",
    "description": "Scrape App Store and Google Play reviews for any app and get a pain-point & churn report: top complaint clusters, switching-to-competitor mentions, feature requests. Multi-country App Store (past Apple's 500 cap). Free clustering; optional AI with your key.",
    "version": "1.0",
    "x-build-id": "dFgPixWmNX7teExIu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mosaicked_sponge~app-review-pain-point-miner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mosaicked_sponge-app-review-pain-point-miner",
        "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/mosaicked_sponge~app-review-pain-point-miner/runs": {
      "post": {
        "operationId": "runs-sync-mosaicked_sponge-app-review-pain-point-miner",
        "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/mosaicked_sponge~app-review-pain-point-miner/run-sync": {
      "post": {
        "operationId": "run-sync-mosaicked_sponge-app-review-pain-point-miner",
        "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": {
          "appStoreApps": {
            "title": "Apple App Store apps",
            "type": "array",
            "description": "App Store app ids, URLs or bundle ids, one per line. Examples: 324684580, https://apps.apple.com/us/app/spotify-music-and-podcasts/id324684580, com.spotify.client. Apple serves the 500 most recent reviews per app and country.",
            "items": {
              "type": "string"
            }
          },
          "googlePlayApps": {
            "title": "Google Play apps",
            "type": "array",
            "description": "Google Play package names or URLs, one per line. Examples: com.spotify.music, https://play.google.com/store/apps/details?id=notion.id",
            "items": {
              "type": "string"
            }
          },
          "apps": {
            "title": "Apps (auto-detect store)",
            "type": "array",
            "description": "Optional. Any mix of store URLs, numeric App Store ids and package/bundle names. A plain name like com.example.app is looked up in every store selected below.",
            "items": {
              "type": "string"
            }
          },
          "stores": {
            "title": "Stores for auto-detected apps",
            "type": "array",
            "description": "Which stores to search for entries in \"Apps (auto-detect store)\". Default: both.",
            "items": {
              "type": "string",
              "enum": [
                "appStore",
                "googlePlay"
              ],
              "enumTitles": [
                "Apple App Store",
                "Google Play"
              ]
            },
            "default": [
              "appStore",
              "googlePlay"
            ]
          },
          "maxReviewsPerApp": {
            "title": "Max reviews per app",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Newest reviews first. App Store: Apple serves up to 500 newest + 500 'most helpful' reviews per app per country; add countries under \"App Store countries\" for more (up to 10,000). Google Play: up to 10,000. You only pay for reviews saved.",
            "default": 25
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "newest",
              "mostHelpful"
            ],
            "type": "string",
            "description": "Newest first (default) or the store's \"most helpful\" (App Store) / \"most relevant\" (Google Play) order.",
            "default": "newest"
          },
          "sinceDays": {
            "title": "Only reviews from the last N days (0 = any age)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop at the first review older than this.",
            "default": 0
          },
          "minRating": {
            "title": "Min star rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only keep reviews with at least this many stars (1-5).",
            "default": 1
          },
          "maxRating": {
            "title": "Max star rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Set to 2 or 3 to collect complaints only. Filtered reviews are not saved and not charged.",
            "default": 5
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter store country code, e.g. us, gb, de, in. A country in an App Store URL wins.",
            "default": "us"
          },
          "appStoreCountries": {
            "title": "App Store countries (more reviews)",
            "type": "array",
            "description": "Optional. Pull each App Store app from several country storefronts (e.g. us, gb, ca, au, in) to get past Apple's 500-reviews-per-country cap. Reviews are de-duplicated and each row keeps its country. Max 10.",
            "items": {
              "type": "string"
            }
          },
          "appStoreTopUpWithHelpful": {
            "title": "App Store: top up with 'most helpful' reviews",
            "type": "boolean",
            "description": "On by default. Apple's newest-reviews feed sometimes serves only 150-500 reviews. When you ask for more, the Actor tops up from Apple's separate 'most helpful' feed (up to 500 more per country, older reviews included, de-duplicated). Skipped when 'Only reviews from the last N days' is set.",
            "default": true
          },
          "language": {
            "title": "Google Play language",
            "type": "string",
            "description": "Language code for Google Play reviews, e.g. en, de, es.",
            "default": "en"
          },
          "googlePlayLanguages": {
            "title": "Google Play languages (more reviews)",
            "type": "array",
            "description": "Optional. Pull Google Play reviews in several languages (e.g. en, es, de). Google shows different reviews per language; rows are de-duplicated and keep their language. Max 5.",
            "items": {
              "type": "string"
            }
          },
          "competitorNames": {
            "title": "Competitor names to watch",
            "type": "array",
            "description": "Optional. Brand names to flag in every review (e.g. Apple Music, YouTube Music). \"Switched to X\" / \"moved from X\" mentions are detected automatically even without this list.",
            "items": {
              "type": "string"
            }
          },
          "enableAiAnalysis": {
            "title": "AI analysis (uses your own AI key)",
            "type": "boolean",
            "description": "Off by default. When on, each review is read by your AI model: sentiment, pain points with a reusable theme and severity, feature requests, switching from/to and a one-line summary. Reviews with a valid AI answer are charged as 'AI-analyzed review' instead of 'Review'. AI tokens are billed by your provider.",
            "default": false
          },
          "llmApiKey": {
            "title": "AI API key",
            "type": "string",
            "description": "OpenAI (sk-...), Anthropic (sk-ant-...), xAI (xai-...) or OpenRouter (sk-or-...) key. Sent only to that provider, never logged or stored."
          },
          "llmProvider": {
            "title": "AI provider",
            "enum": [
              "auto",
              "openai",
              "anthropic",
              "xai",
              "openrouter"
            ],
            "type": "string",
            "description": "Auto-detected from the key prefix.",
            "default": "auto"
          },
          "llmModel": {
            "title": "AI model (optional)",
            "type": "string",
            "description": "Default: gpt-4o-mini (OpenAI), claude-haiku-4-5 (Anthropic), grok-4.20-non-reasoning (xAI), openai/gpt-4o-mini (OpenRouter)."
          },
          "maxAiReviews": {
            "title": "Max AI-analyzed reviews (0 = all)",
            "minimum": 0,
            "type": "integer",
            "description": "Caps AI cost. Reviews over this number are still saved with the free keyword analysis.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Not needed normally: both stores answer direct requests.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}