{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store & Google Play Scraper",
    "description": "Scrape app details, keyword search results and top charts from the Apple App Store and Google Play in one run. Unified rows with rank, rating, installs, price, version, screenshots and public developer contacts (email, website) for ASO and lead generation.",
    "version": "1.0",
    "x-build-id": "S9O92UoX320933KlN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhtech~app-store-google-play-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhtech-app-store-google-play-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/zhtech~app-store-google-play-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zhtech-app-store-google-play-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/zhtech~app-store-google-play-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zhtech-app-store-google-play-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": {
          "apps": {
            "title": "Apps (URLs, IDs or package names)",
            "type": "array",
            "description": "Get full details for specific apps. Mix both stores freely, the store is detected automatically. Accepted: App Store URLs (https://apps.apple.com/us/app/instagram/id389801252), App Store IDs (389801252 or id389801252), Google Play URLs (https://play.google.com/store/apps/details?id=com.whatsapp) and package names (com.whatsapp). A bare package name is treated as Google Play; prefix it with apple: (apple:com.burbn.instagram) to look up an iOS bundle ID.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms (keywords)",
            "type": "array",
            "description": "Keywords to search, for example habit tracker or photo editor. Every result row carries its rank, so you can track keyword positions over time (ASO). Each term is searched in the stores selected below and in every country.",
            "items": {
              "type": "string"
            }
          },
          "searchStores": {
            "title": "Stores to search",
            "type": "array",
            "description": "Which stores the search terms run in.",
            "items": {
              "type": "string",
              "enum": [
                "appStore",
                "googlePlay"
              ],
              "enumTitles": [
                "Apple App Store",
                "Google Play"
              ]
            },
            "default": [
              "appStore",
              "googlePlay"
            ]
          },
          "charts": {
            "title": "Top charts",
            "type": "array",
            "description": "Top charts to scrape, with rank. Top free, top paid and top grossing exist in both stores. New apps, new free apps and new paid apps exist on the App Store (iPhone) only. Pick a category or genre below to get a category chart.",
            "items": {
              "type": "string",
              "enum": [
                "topFree",
                "topPaid",
                "topGrossing",
                "newApps",
                "newFreeApps",
                "newPaidApps"
              ],
              "enumTitles": [
                "Top free",
                "Top paid",
                "Top grossing",
                "New apps (App Store)",
                "New free apps (App Store)",
                "New paid apps (App Store)"
              ]
            }
          },
          "chartStores": {
            "title": "Stores for top charts",
            "type": "array",
            "description": "Which stores the selected charts come from.",
            "items": {
              "type": "string",
              "enum": [
                "appStore",
                "googlePlay"
              ],
              "enumTitles": [
                "Apple App Store",
                "Google Play"
              ]
            },
            "default": [
              "appStore",
              "googlePlay"
            ]
          },
          "googleChartCategory": {
            "title": "Google Play chart category",
            "type": "string",
            "description": "Category for Google Play charts. Leave on All apps for the overall chart. You can also type a category ID such as GAME_PUZZLE.",
            "default": "APPLICATION"
          },
          "appleChartGenre": {
            "title": "App Store chart genre",
            "type": "string",
            "description": "Genre for App Store charts. Leave empty for the overall chart. Accepts a genre ID (6014) or a name (Productivity, Games: Puzzle)."
          },
          "appleChartDevice": {
            "title": "App Store chart device",
            "enum": [
              "iphone",
              "ipad",
              "mac"
            ],
            "type": "string",
            "description": "iPhone, iPad or Mac charts. New app charts exist for iPhone only.",
            "default": "iphone"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two letter country codes (us, gb, de, jp, br). Every app, search term and chart runs once per country. Prices, ratings, ranks and availability differ per country. Empty means us (or the country in an App Store URL).",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language (Google Play)",
            "type": "string",
            "description": "Language for Google Play text such as descriptions and categories, for example en, de, es, pt-BR. The App Store always answers in the main language of the country.",
            "default": "en"
          },
          "maxResults": {
            "title": "Max results per search term or chart",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many ranked apps to save for each search term and each chart, per store and country. Store limits: App Store search up to 200, App Store charts about 100, Google Play charts up to 200, Google Play search about 30 (Google shows no more on the web).",
            "default": 20
          },
          "maxTotalResults": {
            "title": "Max app rows in total",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on app rows for the whole run. 0 means no cap (the run still stops at your maximum cost per run).",
            "default": 0
          },
          "googleFullDetails": {
            "title": "Google Play full details for search and chart results",
            "type": "boolean",
            "description": "On: every Google Play search or chart result is opened to add developer email, website, address, privacy policy, rating count, star histogram, release and update dates, version and Android version (charged as app details). Off: faster and cheaper rows with title, developer, rating, installs, price, genre, icon and screenshots only (charged as list items). App Store rows always come with full details.",
            "default": true
          },
          "appleRatingHistogram": {
            "title": "App Store star histogram",
            "type": "boolean",
            "description": "Adds the number of 1 to 5 star ratings to App Store rows (one extra page per app, slower). Google Play full details always include it.",
            "default": false
          },
          "onlyWithDeveloperEmail": {
            "title": "Only apps with a developer email (lead generation)",
            "type": "boolean",
            "description": "Keep only apps whose store page lists a developer email. Google Play shows one for most apps; the App Store never does, so App Store rows are skipped when this is on.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "type": "string",
            "description": "Keep only apps rated at least this much, for example 4 or 4.5. Empty means no filter."
          },
          "minRatingCount": {
            "title": "Minimum number of ratings",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only apps with at least this many ratings. Google Play list rows without full details have no rating count and are kept."
          },
          "minInstalls": {
            "title": "Minimum installs (Google Play)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only Google Play apps with at least this many installs (lower bound of the install range, for example 100000 for 100,000+). App Store rows are not affected."
          },
          "googleSearchPrice": {
            "title": "Google Play search price filter",
            "enum": [
              "all",
              "free",
              "paid"
            ],
            "type": "string",
            "description": "Google Play side filter applied to search results.",
            "default": "all"
          },
          "deduplicate": {
            "title": "Skip duplicate apps",
            "type": "boolean",
            "description": "Save each app only once per store and country, even if it appears in several searches or charts. Useful for lead lists; leave off to keep every rank.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed for normal use, all sources are public. If a store starts rate limiting large runs, enable Apify datacenter proxy.",
            "default": {
              "useApifyProxy": false
            }
          },
          "maxConcurrency": {
            "title": "Max parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel requests inside one search or chart. Higher is faster, lower is gentler on the stores.",
            "default": 3
          },
          "maxRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with exponential backoff on rate limits (429), server errors and network errors.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}