{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store + Google Play Scraper - Search, Top Charts, ASO Ranks",
    "description": "Scrape Google Play and the Apple App Store in one run: keyword search with rank positions (ASO), top charts by category, app details, developer portfolios and similar apps, all in one unified format.",
    "version": "0.1",
    "x-build-id": "EkPC3fdMja0JfFQHj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/davidcastagneto~app-store-data-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-davidcastagneto-app-store-data-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/davidcastagneto~app-store-data-scraper/runs": {
      "post": {
        "operationId": "runs-sync-davidcastagneto-app-store-data-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/davidcastagneto~app-store-data-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-davidcastagneto-app-store-data-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": "Mode",
            "enum": [
              "search",
              "top_charts",
              "details",
              "developer",
              "similar"
            ],
            "type": "string",
            "description": "What to scrape. Search returns the ranking position of each app for each keyword (ASO keyword rank tracking).",
            "default": "search"
          },
          "platforms": {
            "title": "Stores",
            "type": "array",
            "description": "Which stores to scrape.",
            "items": {
              "type": "string",
              "enum": [
                "google_play",
                "app_store"
              ],
              "enumTitles": [
                "Google Play",
                "Apple App Store"
              ]
            },
            "default": [
              "google_play",
              "app_store"
            ]
          },
          "keywords": {
            "title": "Keywords (Search mode)",
            "type": "array",
            "description": "Search terms. Each result includes its rank position.",
            "items": {
              "type": "string"
            }
          },
          "collection": {
            "title": "Chart (Top charts mode)",
            "enum": [
              "top_free",
              "top_paid",
              "top_grossing",
              "new"
            ],
            "type": "string",
            "description": "Which chart to scrape.",
            "default": "top_free"
          },
          "googlePlayCategory": {
            "title": "Google Play category (Top charts mode)",
            "enum": [
              "APPLICATION",
              "ANDROID_WEAR",
              "ART_AND_DESIGN",
              "AUTO_AND_VEHICLES",
              "BEAUTY",
              "BOOKS_AND_REFERENCE",
              "BUSINESS",
              "COMICS",
              "COMMUNICATION",
              "DATING",
              "EDUCATION",
              "ENTERTAINMENT",
              "EVENTS",
              "FINANCE",
              "FOOD_AND_DRINK",
              "HEALTH_AND_FITNESS",
              "HOUSE_AND_HOME",
              "LIBRARIES_AND_DEMO",
              "LIFESTYLE",
              "MAPS_AND_NAVIGATION",
              "MEDICAL",
              "MUSIC_AND_AUDIO",
              "NEWS_AND_MAGAZINES",
              "PARENTING",
              "PERSONALIZATION",
              "PHOTOGRAPHY",
              "PRODUCTIVITY",
              "SHOPPING",
              "SOCIAL",
              "SPORTS",
              "TOOLS",
              "TRAVEL_AND_LOCAL",
              "VIDEO_PLAYERS",
              "WATCH_FACE",
              "WEATHER",
              "GAME",
              "GAME_ACTION",
              "GAME_ADVENTURE",
              "GAME_ARCADE",
              "GAME_BOARD",
              "GAME_CARD",
              "GAME_CASINO",
              "GAME_CASUAL",
              "GAME_EDUCATIONAL",
              "GAME_MUSIC",
              "GAME_PUZZLE",
              "GAME_RACING",
              "GAME_ROLE_PLAYING",
              "GAME_SIMULATION",
              "GAME_SPORTS",
              "GAME_STRATEGY",
              "GAME_TRIVIA",
              "GAME_WORD",
              "FAMILY"
            ],
            "type": "string",
            "description": "Leave empty for all apps."
          },
          "appStoreCategory": {
            "title": "App Store category (Top charts mode)",
            "enum": [
              "BOOKS",
              "BUSINESS",
              "EDUCATION",
              "ENTERTAINMENT",
              "FINANCE",
              "FOOD_AND_DRINK",
              "GAMES",
              "GAMES_ACTION",
              "GAMES_ADVENTURE",
              "GAMES_ARCADE",
              "GAMES_BOARD",
              "GAMES_CARD",
              "GAMES_CASINO",
              "GAMES_DICE",
              "GAMES_EDUCATIONAL",
              "GAMES_FAMILY",
              "GAMES_MUSIC",
              "GAMES_PUZZLE",
              "GAMES_RACING",
              "GAMES_ROLE_PLAYING",
              "GAMES_SIMULATION",
              "GAMES_SPORTS",
              "GAMES_STRATEGY",
              "GAMES_TRIVIA",
              "GAMES_WORD",
              "HEALTH_AND_FITNESS",
              "LIFESTYLE",
              "MEDICAL",
              "MUSIC",
              "NAVIGATION",
              "NEWS",
              "PHOTO_AND_VIDEO",
              "PRODUCTIVITY",
              "REFERENCE",
              "SHOPPING",
              "SOCIAL_NETWORKING",
              "SPORTS",
              "TRAVEL",
              "UTILITIES",
              "WEATHER"
            ],
            "type": "string",
            "description": "Leave empty for all apps."
          },
          "googlePlayApps": {
            "title": "Google Play apps (Details / Similar mode)",
            "type": "array",
            "description": "Package names (com.spotify.music) or Google Play URLs.",
            "items": {
              "type": "string"
            }
          },
          "appStoreApps": {
            "title": "App Store apps (Details / Similar mode)",
            "type": "array",
            "description": "Numeric IDs (324684580), App Store URLs or bundle IDs.",
            "items": {
              "type": "string"
            }
          },
          "googlePlayDeveloperIds": {
            "title": "Google Play developer IDs (Developer mode)",
            "type": "array",
            "description": "Developer name or numeric ID as in the Play URL (e.g. Spotify AB).",
            "items": {
              "type": "string"
            }
          },
          "appStoreDeveloperIds": {
            "title": "App Store developer IDs (Developer mode)",
            "type": "array",
            "description": "Numeric artist ID from the developer URL (e.g. 324684583).",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter country codes. Each query runs once per country.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter language code (mainly affects Google Play).",
            "default": "en"
          },
          "maxResults": {
            "title": "Max results per query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Per keyword / chart / developer and country. Google Play search returns at most ~30 apps; charts up to 200.",
            "default": 50
          },
          "fullDetails": {
            "title": "Full app details",
            "type": "boolean",
            "description": "Fetch the full app page for every result (installs, ratings count, version, last update...). Slower and charged as a full record. Always on in Details mode.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}