{
  "openapi": "3.0.1",
  "info": {
    "title": "Steam Charts Scraper: Concurrent Players & History",
    "description": "Scrape Steam Charts: top games ranked by live concurrent players with 30-day peaks and hours played, per-game stats (now playing, 24h peak, all-time peak) and monthly history back to 2012. Export CSV, Excel, JSON. No login or API key. 25 games per page.",
    "version": "0.2",
    "x-build-id": "AfgGoHYoiA5CeZJVE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~steam-charts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-steam-charts-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/recordsdata~steam-charts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-steam-charts-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/recordsdata~steam-charts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-steam-charts-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": {
          "includeTopGames": {
            "title": "Top games by current players",
            "type": "boolean",
            "description": "Rank games by concurrent players (25 per page): players now, 30-day peak and hours played.",
            "default": true
          },
          "maxTopPages": {
            "title": "Pages of top games (25 games each)",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "How many pages of the top list to read, for example 4 = the top 100 games. Up to 400 pages = the top 10,000.",
            "default": 4
          },
          "minCurrentPlayers": {
            "title": "Min players right now",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Keep only games with at least this many players, for example 1000. The scan stops at the first page below the limit. 0 keeps everything.",
            "default": 0
          },
          "includeGainers": {
            "title": "Add 24-hour gainers",
            "type": "boolean",
            "description": "Adds the games trending up in the last 24 hours (usually 5 games). Same price per row as the top list.",
            "default": false
          },
          "storeChart": {
            "title": "Store chart to add",
            "enum": [
              "none",
              "topsellers",
              "newreleases",
              "specials",
              "comingsoon"
            ],
            "type": "string",
            "description": "Pick a store ranking to add, for example Top sellers. None adds nothing.",
            "default": "none"
          },
          "region": {
            "title": "Store country",
            "enum": [
              "us",
              "gb",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pl",
              "se",
              "no",
              "dk",
              "fi",
              "pt",
              "ru",
              "ua",
              "tr",
              "br",
              "ar",
              "mx",
              "cl",
              "co",
              "pe",
              "ca",
              "au",
              "nz",
              "jp",
              "kr",
              "tw",
              "hk",
              "sg",
              "in",
              "id",
              "th",
              "vn",
              "ph",
              "my",
              "sa",
              "ae",
              "za",
              "il",
              "cz",
              "hu",
              "ro",
              "bg"
            ],
            "type": "string",
            "description": "Country of the Steam store for the chart; ranking and prices differ by country, for example United States. Players and history are worldwide.",
            "default": "us"
          },
          "maxChartItems": {
            "title": "Chart positions to read",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many chart positions to read, for example 25 (up to 500).",
            "default": 25
          },
          "appIds": {
            "title": "Games (Steam App IDs or links)",
            "type": "array",
            "description": "Steam app IDs or store/steamcharts links, for example 730 (Counter-Strike 2) or 570 (Dota 2). Gives players now, 24h peak and all-time peak. Leave empty to scrape only the lists above.",
            "items": {
              "type": "string"
            }
          },
          "includeMonthlyHistory": {
            "title": "Add monthly player history",
            "type": "boolean",
            "description": "One row per month with average and peak players, back to the game's first tracked month.",
            "default": true
          },
          "maxMonthsPerGame": {
            "title": "Months of history per game",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Cap on monthly rows per game, for example 60 = the last 5 years (up to 200).",
            "default": 60
          },
          "includeStoreDetails": {
            "title": "Add Steam store details (slower)",
            "type": "boolean",
            "description": "Adds header image, free-to-play flag, release date, genres and short description to every game row. Included in the row price but adds about 2 seconds per game, so keep lists short.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows to return",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum rows delivered and charged across all record types, for example 10. Free plans are capped at 10 rows (preview); paid plans up to 1,000,000."
          },
          "onlyNew": {
            "title": "Only new records",
            "type": "boolean",
            "description": "Skip records seen in earlier runs and do not charge for them: a month of history once, a game when it first enters a list, a gainer or game snapshot once per day. A scan that finds nothing new stops after about two minutes.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional label to keep several independent monitors, for example \"top-100-daily\". Leave empty for the default monitor.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget seen records",
            "type": "boolean",
            "description": "Clear this monitor's remembered records before the run, so everything counts as new again.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}