{
  "openapi": "3.0.1",
  "info": {
    "title": "Roblox Game Stats & Player Count Tracker",
    "description": "Live player count (CCU), visits, favorites and likes of any Roblox game by link, ID or name, plus Roblox charts (Top Playing Now, Top Earning, Trending) by country, search and a group's games. Game passes with prices, maturity. Track players, visits per hour and chart rank on a schedule.",
    "version": "0.1",
    "x-build-id": "Emk9Q9qbEDO6B6USK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~roblox-game-stats-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-roblox-game-stats-tracker",
        "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/s_actors~roblox-game-stats-tracker/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-roblox-game-stats-tracker",
        "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/s_actors~roblox-game-stats-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-roblox-game-stats-tracker",
        "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": {
          "games": {
            "title": "🎮 Games",
            "type": "array",
            "description": "One per line: game links (roblox.com/games/2753915549/Blox-Fruits), place IDs (the number in the game link), universe IDs as universe:994732206, or game names (the first Roblox search result is taken). Any number of games.",
            "items": {
              "type": "string"
            }
          },
          "charts": {
            "title": "🏆 Roblox charts",
            "type": "array",
            "description": "Games from the charts on roblox.com/charts, in chart order with their rank: Top Playing Now (most concurrent players), Top Earning, Top Trending, Most Popular, Top Rated, Up-and-Coming and Trending in each genre. Up to 100 games per chart (Top Earning goes further with Max games per source).",
            "items": {
              "type": "string",
              "enum": [
                "top-playing-now",
                "top-earning",
                "top-trending",
                "most-popular",
                "top-rated",
                "up-and-coming",
                "top-revisited",
                "fun-with-friends",
                "top-paid-access",
                "trending-music-experiences",
                "learning-and-explore",
                "more-when-you-subscribe",
                "trending-in-rpg",
                "trending-in-sports-and-racing",
                "trending-in-shooter",
                "trending-in-action",
                "trending-in-adventure",
                "trending-in-entertainment",
                "trending-in-obby-and-platformer",
                "trending-in-party-and-casual",
                "trending-in-puzzle",
                "trending-in-roleplay-and-avatar-sim",
                "trending-in-shopping",
                "trending-in-simulation",
                "trending-in-strategy",
                "trending-in-survival"
              ],
              "enumTitles": [
                "Top Playing Now",
                "Top Earning",
                "Top Trending",
                "Most Popular",
                "Top Rated",
                "Up-and-Coming",
                "Top Revisited",
                "Fun with Friends",
                "Top Paid Access",
                "Trending Music Experiences",
                "Learn & Explore",
                "More When You Subscribe",
                "Trending in RPG",
                "Trending in Sports & Racing",
                "Trending in Shooter",
                "Trending in Action",
                "Trending in Adventure",
                "Trending in Entertainment",
                "Trending in Obby & Platformer",
                "Trending in Party & Casual",
                "Trending in Puzzle",
                "Trending in Roleplay & Avatar Sim",
                "Trending in Shopping",
                "Trending in Simulation",
                "Trending in Strategy",
                "Trending in Survival"
              ]
            }
          },
          "country": {
            "title": "🌍 Chart country",
            "enum": [
              "all",
              "us",
              "gb",
              "ca",
              "au",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "se",
              "pl",
              "tr",
              "ru",
              "ua",
              "br",
              "mx",
              "ar",
              "cl",
              "co",
              "pe",
              "ph",
              "id",
              "my",
              "th",
              "vn",
              "sg",
              "jp",
              "kr",
              "in",
              "sa",
              "ae",
              "eg",
              "za",
              "nz"
            ],
            "type": "string",
            "description": "Charts as players in this country see them. Live players, visits and likes are always global numbers.",
            "default": "all"
          },
          "device": {
            "title": "📱 Chart device",
            "enum": [
              "all",
              "computer",
              "high_end_phone",
              "low_end_phone",
              "high_end_tablet",
              "low_end_tablet",
              "console",
              "vr"
            ],
            "type": "string",
            "description": "Charts as players on this device see them.",
            "default": "all"
          },
          "searchQueries": {
            "title": "🔎 Search games",
            "type": "array",
            "description": "Keywords, one per line (tycoon, obby, anime): games from Roblox search in its order, with the position as rank.",
            "items": {
              "type": "string"
            }
          },
          "creators": {
            "title": "👥 Creators and groups",
            "type": "array",
            "description": "All public games of a developer: community links (roblox.com/communities/4372130), profile links (roblox.com/users/1/profile), group:ID or user:ID. Newest games first.",
            "items": {
              "type": "string"
            }
          },
          "maxGamesPerSource": {
            "title": "🔢 Max games per source",
            "minimum": 1,
            "type": "integer",
            "description": "Limit for each chart, search query and creator. Games listed in the Games field are always checked.",
            "default": 100
          },
          "minPlayers": {
            "title": "👀 Minimum live players",
            "minimum": 0,
            "type": "integer",
            "description": "Skip games with fewer players online right now. Skipped games are free.",
            "default": 0
          },
          "includeDetails": {
            "title": "💰 Game passes and maturity",
            "type": "boolean",
            "description": "Add every game pass with its Robux price (count, cheapest, most expensive), the maturity label, minimum age and content descriptors. Two more requests per game.",
            "default": false
          },
          "trackChanges": {
            "title": "🔔 Track changes between runs",
            "type": "boolean",
            "description": "For scheduled runs (save the input as a task and add a schedule, for example every hour). Every run remembers each game; later runs add playingChange, visitsGained, visitsPerHour, favoritesGained, likesGained, previousRank, rankChange and isNewInList since the previous run.",
            "default": false
          },
          "monitorName": {
            "title": "🏷️ Tracker name",
            "type": "string",
            "description": "Name of the memory used by Track changes. Use a different name for each task, otherwise two tasks compare against each other.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "⚡ Parallel requests",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many games are looked up at the same time (names, game passes, maturity).",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy",
            "type": "object",
            "description": "Requests go direct first and move to Apify datacenter proxies (a new IP per request) when Roblox's per-IP rate limit is hit. The default works for most runs.",
            "default": {
              "useApifyProxy": true
            }
          },
          "debugLog": {
            "title": "🐞 Debug log",
            "type": "boolean",
            "description": "Log every retried request (for troubleshooting).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}