{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store & Google Play Scraper: Apps, Search & Top Charts",
    "description": "App Store and Google Play apps in one run: keyword search with ranks, top charts by country and category, developer catalogs and any app by link. Ratings, installs, price, version and developer email. No login.",
    "version": "0.1",
    "x-build-id": "RByVa2bFPQMQt2Bui"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mastertools~app-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mastertools-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/mastertools~app-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mastertools-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/mastertools~app-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mastertools-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": {
          "query": {
            "title": "Search keywords",
            "type": "string",
            "description": "What to search for in the stores, like a user types it: vpn, photo editor, meditation. Several keywords — separate them with commas. Every app comes with its position (rank) in the store's search results."
          },
          "store": {
            "title": "Store",
            "enum": [
              "both",
              "app_store",
              "google_play"
            ],
            "type": "string",
            "description": "Both stores in one run, or just one of them.",
            "default": "both"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code: us, gb, de, fr, jp, br… Several countries — separate them with commas (us, gb, de): every keyword, chart and app is collected for each of them.",
            "default": "us"
          },
          "maxResults": {
            "title": "Apps per list",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many apps to take from each search, chart or developer — per store and country. The App Store gives up to 200 search results and the top 100 of a chart; Google Play gives up to 30 search results and the top 200 of a chart.",
            "default": 10
          },
          "chart": {
            "title": "Top chart",
            "enum": [
              "none",
              "top_free",
              "top_paid",
              "top_grossing"
            ],
            "type": "string",
            "description": "Add a top chart of each store: top free, top paid or top grossing apps — for the category below.",
            "default": "none"
          },
          "category": {
            "title": "Chart category",
            "enum": [
              "all",
              "games",
              "books",
              "business",
              "communication",
              "dating",
              "education",
              "entertainment",
              "finance",
              "food_and_drink",
              "graphics_and_design",
              "health_and_fitness",
              "lifestyle",
              "medical",
              "music",
              "navigation",
              "news",
              "photo_and_video",
              "productivity",
              "shopping",
              "social",
              "sports",
              "travel",
              "utilities",
              "weather"
            ],
            "type": "string",
            "description": "Category of the top chart. \"All apps\" is every app in the App Store and every non-game app in Google Play. You can also type a Google Play category code like GAME_PUZZLE.",
            "default": "all"
          },
          "appUrls": {
            "title": "Apps and developers",
            "type": "array",
            "description": "App Store or Google Play links of apps or developers, app IDs, package names or app names — one per line. Developer links give every app of the developer. Examples: https://apps.apple.com/us/app/whatsapp-messenger/id310633997, com.whatsapp, https://play.google.com/store/apps/developer?id=Google+LLC, Duolingo.",
            "items": {
              "type": "string"
            }
          },
          "details": {
            "title": "Full app details",
            "type": "boolean",
            "description": "Open every app's own page: Google Play adds the developer's email, website, address and phone, exact install estimate, star breakdown, version, update date, ads and in-app purchases; the App Store adds the star breakdown. Turn off for the fastest list of names, ratings and positions.",
            "default": true
          },
          "language": {
            "title": "Google Play language",
            "type": "string",
            "description": "Language of Google Play texts and searches: en, de, es, pt, ja… Leave empty to use the main language of each country."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}