{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Play Store Scraper + AI",
    "description": "Scrape Google Play app data, ratings and reviews via top charts, similar apps, developer portfolios or direct IDs, then optionally turn them into AI insights: review theme summaries, sentiment, ASO keyword suggestions and a competitor report. No API key needed.",
    "version": "0.1",
    "x-build-id": "NNsSvNbMDb2v4idtA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lizzyyy2~google-play-store-scraper-ai/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lizzyyy2-google-play-store-scraper-ai",
        "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/lizzyyy2~google-play-store-scraper-ai/runs": {
      "post": {
        "operationId": "runs-sync-lizzyyy2-google-play-store-scraper-ai",
        "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/lizzyyy2~google-play-store-scraper-ai/run-sync": {
      "post": {
        "operationId": "run-sync-lizzyyy2-google-play-store-scraper-ai",
        "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": {
          "appIds": {
            "title": "App IDs or Google Play URLs",
            "minItems": 0,
            "type": "array",
            "description": "Specific apps to scrape directly. Accepts package names (e.g. com.spotify.music) or full Google Play URLs (e.g. https://play.google.com/store/apps/details?id=com.spotify.music).",
            "items": {
              "type": "string"
            }
          },
          "topCharts": {
            "title": "Top charts (collection + category)",
            "minItems": 0,
            "type": "array",
            "description": "Discover apps from Google Play top charts. Each item is an object like {\"collection\":\"TOP_FREE\",\"category\":\"APPLICATION\"}. Collections: TOP_FREE, TOP_PAID, GROSSING. Categories: APPLICATION, GAME, or a specific one like COMMUNICATION, FINANCE, HEALTH_AND_FITNESS, PRODUCTIVITY, SHOPPING, SOCIAL, TOOLS, etc."
          },
          "similarToAppIds": {
            "title": "Similar to app IDs (competitor discovery)",
            "minItems": 0,
            "type": "array",
            "description": "Seed apps to expand into their 'similar apps' lists — a reliable way to find direct competitors. Accepts package names or Google Play URLs.",
            "items": {
              "type": "string"
            }
          },
          "developers": {
            "title": "Developer names / IDs",
            "minItems": 0,
            "type": "array",
            "description": "Collect every app published by these developers (e.g. \"Google LLC\", \"Meta Platforms, Inc.\"). Use the exact developer name as shown on Google Play.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms (best-effort)",
            "minItems": 0,
            "type": "array",
            "description": "Keywords to search Google Play for. NOTE: Google Play's keyword search is frequently rate-limited and may return no results; for reliable discovery prefer Top charts, Similar apps, Developers or direct App IDs.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country / storefront",
            "type": "string",
            "description": "Two-letter country code (e.g. us, gb, de, tr). Determines pricing, availability and storefront.",
            "default": "us"
          },
          "lang": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter language code for store text (e.g. en, de, tr).",
            "default": "en"
          },
          "maxApps": {
            "title": "Max apps (total)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on the total number of unique apps to scrape across all sources (1-500).",
            "default": 25
          },
          "maxAppsPerSource": {
            "title": "Max apps per source",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum apps to take from each top chart / similar / developer / search source (1-200).",
            "default": 50
          },
          "includeReviews": {
            "title": "Scrape reviews",
            "type": "boolean",
            "description": "Fetch user reviews (score, title, text, author, date, version) for each app. Required for AI review analysis.",
            "default": true
          },
          "maxReviewsPerApp": {
            "title": "Max reviews per app",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of reviews to fetch per app (0-500).",
            "default": 100
          },
          "reviewsSort": {
            "title": "Reviews sort order",
            "enum": [
              "newest",
              "rating",
              "helpfulness"
            ],
            "type": "string",
            "description": "How to sort fetched reviews.",
            "default": "newest"
          },
          "aiEnrichment": {
            "title": "Enable AI insights",
            "type": "boolean",
            "description": "Use a built-in AI model to analyze each app. Charged per AI insight generated. Turn on the specific tasks below. No API key required from you.",
            "default": false
          },
          "aiReviewSummary": {
            "title": "AI review analysis",
            "type": "boolean",
            "description": "Summarize each app's reviews into sentiment breakdown, top complaints, top praises and requested features. Requires reviews to be scraped. Only runs when AI insights are enabled.",
            "default": true
          },
          "aiAso": {
            "title": "AI ASO suggestions",
            "type": "boolean",
            "description": "Generate Google Play ASO suggestions per app: optimized title, short description, keyword list and an improved long description. Only runs when AI insights are enabled.",
            "default": false
          },
          "aiCompetitorReport": {
            "title": "AI competitor report",
            "type": "boolean",
            "description": "Generate one market analysis comparing all scraped apps (positioning, strengths/weaknesses, opportunities). Saved to the key-value store and added as a dataset row. Charged once per run. Only runs when AI insights are enabled.",
            "default": false
          },
          "aiLanguage": {
            "title": "AI output language",
            "type": "string",
            "description": "Language for AI-generated output (e.g. English, German, Turkish).",
            "default": "English"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}