{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Play & App Store Scraper",
    "description": "Scrape Google Play & Apple App Store: app details, reviews, top charts, search results & developer portfolios. 50+ fields, 45 countries, both platforms in one run. No browser needed.",
    "version": "1.0",
    "x-build-id": "c8LPUAf8F2ZN7WKJ9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brilliant_gum~google-play-app-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brilliant_gum-google-play-app-store-scraper",
        "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/brilliant_gum~google-play-app-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-brilliant_gum-google-play-app-store-scraper",
        "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/brilliant_gum~google-play-app-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-brilliant_gum-google-play-app-store-scraper",
        "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": {
          "mode": {
            "title": "Scraping Mode",
            "enum": [
              "search",
              "details",
              "reviews",
              "charts",
              "developer"
            ],
            "type": "string",
            "description": "What to scrape: search apps by keyword, fetch details by ID, collect reviews, browse top charts, or get all apps by a developer.",
            "default": "search"
          },
          "platform": {
            "title": "Platform",
            "enum": [
              "googlePlay",
              "appStore",
              "both"
            ],
            "type": "string",
            "description": "Which store to scrape. Choose 'both' to get data from Google Play and Apple App Store in one run.",
            "default": "googlePlay"
          },
          "searchQueries": {
            "title": "Search Keywords",
            "type": "array",
            "description": "List of search keywords (e.g. 'fitness tracker', 'photo editor'). Used in Search mode.",
            "items": {
              "type": "string"
            }
          },
          "maxAppsPerQuery": {
            "title": "Max Apps per Keyword",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Maximum number of apps to return per search keyword. Max 250.",
            "default": 50
          },
          "appIds": {
            "title": "App IDs",
            "type": "array",
            "description": "List of app identifiers. For Google Play use package names (e.g. com.spotify.music). For App Store use numeric IDs (e.g. 324684580). Used in Details and Reviews modes.",
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerApp": {
            "title": "Max Reviews per App",
            "minimum": 1,
            "maximum": 3000,
            "type": "integer",
            "description": "Maximum number of reviews to scrape per app. Google Play supports up to 3000, Apple App Store up to 500 via public RSS.",
            "default": 100
          },
          "reviewSort": {
            "title": "Review Sort Order",
            "enum": [
              "newest",
              "relevant",
              "rating"
            ],
            "type": "string",
            "description": "How to sort reviews when fetching.",
            "default": "newest"
          },
          "filterByStars": {
            "title": "Filter by Star Rating",
            "type": "array",
            "description": "Only return reviews with specific star ratings. Leave empty for all ratings. Example: [1, 2] for negative reviews only."
          },
          "chartType": {
            "title": "Chart Type",
            "enum": [
              "topFree",
              "topPaid",
              "topGrossing",
              "trending",
              "newFree",
              "newPaid"
            ],
            "type": "string",
            "description": "Which top chart to scrape.",
            "default": "topFree"
          },
          "chartCategory": {
            "title": "Chart Category",
            "type": "string",
            "description": "App category for the chart. Use 'APPLICATION' for all apps or 'GAME' for games. Other values: GAME_ACTION, GAME_PUZZLE, EDUCATION, PRODUCTIVITY, SOCIAL, etc.",
            "default": "APPLICATION"
          },
          "maxAppsPerChart": {
            "title": "Max Apps per Chart",
            "minimum": 1,
            "maximum": 660,
            "type": "integer",
            "description": "Maximum number of apps to return from each chart. Google Play supports up to 660, Apple App Store up to 200.",
            "default": 100
          },
          "developerIds": {
            "title": "Developer IDs",
            "type": "array",
            "description": "List of Google Play developer IDs or names (e.g. 'Google LLC' or numeric ID '5700313618786177705'). Used in Developer mode.",
            "items": {
              "type": "string"
            }
          },
          "fetchFullDetails": {
            "title": "Fetch Full App Details",
            "type": "boolean",
            "description": "If enabled, fetches the full app detail page for each search/chart result (50+ fields). If disabled, returns basic listing data only (faster, cheaper).",
            "default": true
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code for the store region. Affects search results, pricing, rankings, and app availability. Examples: us, gb, de, fr, ca, au, br, jp.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter ISO 639-1 language code for app descriptions and reviews. Examples: en, de, fr, es, pt, ja, ko.",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}