{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Play Top Charts, Collections & Events Tracker",
    "description": "Track Google Play top free, grossing and paid charts by country, category and device, plus editorial collections and in-app live events. Returns ranks, app metadata, pricing, ratings, in-app purchase signals and rank movement between runs.",
    "version": "1.0",
    "x-build-id": "l7qfZ0H2LUJ6X0uMc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~google-play-charts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-google-play-charts",
        "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/xyrelith-data~google-play-charts/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-google-play-charts",
        "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/xyrelith-data~google-play-charts/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-google-play-charts",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "charts",
              "collections",
              "events"
            ],
            "type": "string",
            "description": "What to collect: ranked charts, editorial collections, or in-app events.",
            "default": "charts"
          },
          "country": {
            "title": "Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "nz",
              "ie",
              "in",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "be",
              "at",
              "ch",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "pt",
              "cz",
              "ro",
              "hu",
              "gr",
              "tr",
              "ru",
              "ua",
              "za",
              "eg",
              "ng",
              "ke",
              "id",
              "th",
              "vn",
              "ph",
              "my",
              "sg",
              "tw",
              "hk",
              "jp",
              "kr",
              "br",
              "mx",
              "ar",
              "cl",
              "co",
              "pe",
              "il",
              "ae",
              "sa",
              "pk",
              "bd",
              "lk",
              "kh",
              "mm",
              "kz"
            ],
            "type": "string",
            "description": "Google Play storefront country. Affects chart rankings, prices and availability.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "ja",
              "ko",
              "zh",
              "ru",
              "ar",
              "hi",
              "th",
              "vi",
              "id",
              "tr",
              "pl",
              "nl",
              "sv",
              "da",
              "no",
              "fi",
              "cs",
              "ro",
              "hu",
              "el",
              "he",
              "uk",
              "ms",
              "tl",
              "bn",
              "ur",
              "fa"
            ],
            "type": "string",
            "description": "Language for app titles, genres and event text.",
            "default": "en"
          },
          "section": {
            "title": "Store section",
            "enum": [
              "apps",
              "games",
              "kids"
            ],
            "type": "string",
            "description": "Apps, games or kid-friendly content. Category options are filtered by this section in the code.",
            "default": "games"
          },
          "device": {
            "title": "Device",
            "enum": [
              "phone",
              "tablet",
              "tv",
              "chromebook",
              "watch",
              "car"
            ],
            "type": "string",
            "description": "Store surface. Watch charts use watch-face/watch-app categories; collections use the device-specific App Store home. Google publishes one shared ranking for phone, tablet, TV, Chromebook and car.",
            "default": "phone"
          },
          "chart": {
            "title": "Chart",
            "enum": [
              "topFree",
              "topGrossing",
              "topPaid"
            ],
            "type": "string",
            "description": "Which top chart to read.",
            "default": "topFree"
          },
          "category": {
            "title": "Category",
            "enum": [
              "all",
              "APPLICATION",
              "GAME",
              "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",
              "WEATHER",
              "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",
              "FAMILY_ACTION",
              "FAMILY_BRAINGAMES",
              "FAMILY_CREATE",
              "FAMILY_EDUCATION",
              "FAMILY_MUSICVIDEO",
              "FAMILY_PRETEND",
              "WATCH_FACE",
              "ANDROID_WEAR"
            ],
            "type": "string",
            "description": "Category to read. \"All categories\" uses the section default: all apps, all games or kids.",
            "default": "all"
          },
          "maxRank": {
            "title": "Max rank",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Highest chart position to return (1-200). Google publishes up to 200 ranked entries per chart.",
            "default": 100
          },
          "includeDetails": {
            "title": "Enrich with app details",
            "type": "boolean",
            "description": "Fetch each app page for rating count, installs range, developer ID/contact, version, update date, ads flag and summary. Adds one request per chart row.",
            "default": true
          },
          "trackRankChanges": {
            "title": "Track rank changes",
            "type": "boolean",
            "description": "Compare this run with the actor's previous run for the same country, section, device, category and chart. Adds previousRank, rankChange and rankMovement.",
            "default": true
          },
          "maxClusters": {
            "title": "Max collections",
            "minimum": 1,
            "maximum": 80,
            "type": "integer",
            "description": "Maximum editorial collections to return in collections mode (1-80).",
            "default": 20
          },
          "maxAppsPerCluster": {
            "title": "Max apps per collection",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum apps to include in each editorial collection (1-60).",
            "default": 20
          },
          "appIds": {
            "title": "App IDs or URLs",
            "type": "array",
            "description": "Package names or Google Play app URLs to check for Events & offers (mode=events).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxEventsPerApp": {
            "title": "Max events per app",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum Events & offers entries to return per app (1-50).",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}