{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store Top Charts and Google Play App Rankings",
    "description": "App Store top charts and Google Play app rankings: top free, paid and grossing by country and category, with rating, installs, price and rank changes between runs. iPhone, iPad and Android. No login. $0.50 per 1,000 chart entries.",
    "version": "0.1",
    "x-build-id": "17fNSzUFrljDsv8oR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cleanscrape~app-store-google-play-top-charts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cleanscrape-app-store-google-play-top-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/cleanscrape~app-store-google-play-top-charts/runs": {
      "post": {
        "operationId": "runs-sync-cleanscrape-app-store-google-play-top-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/cleanscrape~app-store-google-play-top-charts/run-sync": {
      "post": {
        "operationId": "run-sync-cleanscrape-app-store-google-play-top-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": [
          "charts",
          "countries"
        ],
        "properties": {
          "charts": {
            "title": "Charts",
            "type": "array",
            "description": "Which top charts to read. Each chart is read for every country and category you choose.",
            "items": {
              "type": "string",
              "enum": [
                "top_free",
                "top_paid",
                "top_grossing"
              ],
              "enumTitles": [
                "Top free",
                "Top paid",
                "Top grossing (highest revenue)"
              ]
            },
            "default": [
              "top_free"
            ]
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Store countries as two-letter codes, one per line: us, gb, de, jp, br. Country names work too.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "The overall chart (All apps), Games, or a category such as Finance or Puzzle games. On Google Play, All apps leaves out games, which have their own chart.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "games",
                "business",
                "education",
                "entertainment",
                "finance",
                "food_and_drink",
                "health_and_fitness",
                "lifestyle",
                "medical",
                "music",
                "navigation",
                "news",
                "photo_and_video",
                "productivity",
                "shopping",
                "social",
                "sports",
                "travel",
                "utilities",
                "weather",
                "books",
                "reference",
                "developer_tools",
                "graphics_and_design",
                "communication",
                "dating",
                "video_players",
                "personalization",
                "game_action",
                "game_adventure",
                "game_board",
                "game_card",
                "game_casino",
                "game_casual",
                "game_puzzle",
                "game_racing",
                "game_role_playing",
                "game_simulation",
                "game_sports",
                "game_strategy",
                "game_word"
              ],
              "enumTitles": [
                "All apps",
                "Games",
                "Business",
                "Education",
                "Entertainment",
                "Finance",
                "Food & Drink",
                "Health & Fitness",
                "Lifestyle",
                "Medical",
                "Music",
                "Navigation",
                "News",
                "Photo & Video",
                "Productivity",
                "Shopping",
                "Social networking",
                "Sports",
                "Travel",
                "Utilities / Tools",
                "Weather",
                "Books",
                "Reference (App Store only)",
                "Developer Tools (App Store only)",
                "Graphics & Design",
                "Communication (Google Play only)",
                "Dating (Google Play only)",
                "Video players (Google Play only)",
                "Personalization (Google Play only)",
                "Action games",
                "Adventure games",
                "Board games",
                "Card games",
                "Casino games",
                "Casual games",
                "Puzzle games",
                "Racing games",
                "Role-playing games",
                "Simulation games",
                "Sports games",
                "Strategy games",
                "Word games"
              ]
            },
            "default": [
              "all"
            ]
          },
          "store": {
            "title": "Store",
            "enum": [
              "both",
              "app_store",
              "google_play"
            ],
            "type": "string",
            "description": "Which store's charts to read.",
            "default": "both"
          },
          "maxRank": {
            "title": "Places per chart",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How far down each chart to read. The App Store publishes 100 places, Google Play up to 200.",
            "default": 100
          },
          "watchName": {
            "title": "Watch name (rank changes)",
            "type": "string",
            "description": "Any name, such as us-games-daily. Runs with the same name are compared with each other; the memory is kept in your Apify account."
          },
          "onlyChanges": {
            "title": "Only changes",
            "type": "boolean",
            "description": "With a watch name: save (and pay for) only apps that are new in a chart or moved up or down since the previous run. The first run saves everything.",
            "default": false
          },
          "device": {
            "title": "App Store device",
            "enum": [
              "iphone",
              "ipad"
            ],
            "type": "string",
            "description": "The App Store has separate iPhone and iPad charts. Google Play has one chart per country.",
            "default": "iphone"
          },
          "appleDetails": {
            "title": "App Store ratings and versions",
            "type": "boolean",
            "description": "Adds the App Store rating, number of ratings, version, last update and age rating (one extra request per 100 apps). Google Play rows always have the rating and installs.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}