{
  "openapi": "3.0.1",
  "info": {
    "title": "Steam Discussions Scraper - Game Forums, Replies & Quotes",
    "description": "Extract Steam Community discussion threads and replies for any game: author, date, quotes, awards, developer replies, pinned and locked status, and whether the poster owns the game. Scrape by game, forum, thread or keyword.",
    "version": "0.2",
    "x-build-id": "i12LRqOKOh5n9sP1f"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/metaldata~steam-discussions-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-metaldata-steam-discussions-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/metaldata~steam-discussions-scraper/runs": {
      "post": {
        "operationId": "runs-sync-metaldata-steam-discussions-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/metaldata~steam-discussions-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-metaldata-steam-discussions-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": {
          "games": {
            "title": "Games",
            "type": "array",
            "description": "Games whose Steam discussions to scrape. Type a game's name (e.g. 'Stardew Valley'), its Steam app ID (e.g. '413150') or paste its Steam store URL. Threads are taken from the game's General Discussions forum, most recent activity first.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Steam discussion URLs (optional)",
            "type": "array",
            "description": "Steam Community URLs to scrape: a thread (https://steamcommunity.com/app/413150/discussions/0/...), a forum or subforum (https://steamcommunity.com/app/413150/discussions/1/), a game's discussions page, or a discussion search URL.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchKeywords": {
            "title": "Search keywords (optional)",
            "type": "array",
            "description": "Only scrape threads that match these words, such as 'crash', 'refund', 'multiplayer' or a feature name. Uses Steam's own discussion search inside each game above. With keywords, only matching threads are scraped.",
            "items": {
              "type": "string"
            }
          },
          "allSubforums": {
            "title": "Include all subforums",
            "type": "boolean",
            "description": "Also read the game's other forums, such as Bug Reports, Technical Help, Multiplayer or Suggestions, not just General Discussions.",
            "default": false
          },
          "maxThreadsPerGame": {
            "title": "Max threads per game",
            "minimum": 1,
            "type": "integer",
            "description": "How many threads to take from each game (or from each keyword search in a game).",
            "default": 20
          },
          "maxThreads": {
            "title": "Max threads to scrape",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many threads in total. Keep it small for your first runs.",
            "default": 20
          },
          "maxRepliesPerThread": {
            "title": "Max replies per thread",
            "minimum": 0,
            "type": "integer",
            "description": "How many replies to take from each thread (the opening post is always included). Set 0 for opening posts only. Some Steam threads have thousands of replies.",
            "default": 100
          },
          "newestRepliesFirst": {
            "title": "Newest replies first",
            "type": "boolean",
            "description": "Take the newest replies instead of the oldest when a thread has more replies than your limit. Good for monitoring long-running threads.",
            "default": false
          },
          "minReplies": {
            "title": "Minimum replies (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip threads with fewer replies than this. Checked from the forum's thread list, so skipped threads cost nothing.",
            "default": 0
          },
          "maxReplies": {
            "title": "Maximum replies (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip threads with more replies than this. Leave at 0 for no upper limit.",
            "default": 0
          },
          "dateFrom": {
            "title": "Only include posts from this date (optional)",
            "type": "string",
            "description": "Posts before this date are left out, and threads with no activity since then are skipped. Replies are read newest first, so only pages inside your date range are fetched."
          },
          "dateTo": {
            "title": "Only include posts up to this date (optional)",
            "type": "string",
            "description": "Posts after this date are left out. Threads started after it are skipped."
          },
          "skipPinned": {
            "title": "Skip pinned threads",
            "type": "boolean",
            "description": "Leave out threads pinned to the top of a forum (often rules and announcements).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Routes requests through Apify Proxy, which keeps larger runs from being rate limited by Steam. Defaults to Apify's automatic datacenter proxy.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}