Effortlessly export your Steam library game IDs
Overview • Prerequisites • Installation • Usage • Example Output • License • Feedback and Contributions
This script may not work as expected if you don't have a minimum of $5 added to your Steam account. Steam's API may impose restrictions on accounts without a sufficient balance, potentially affecting the accuracy of the results. |
The Steam Library GameID Exporter is a Node.js script that empowers you to seamlessly export game IDs from your Steam library using the Steam Web API. This guide will walk you through the process of setting up and utilizing the script.
Before diving in, ensure you have the following prerequisites in place:
-
Node.js: Verify that Node.js is installed on your system. If not, you can download it from the official Node.js website.
-
Git (Optional): While not mandatory, using Git for version control is highly recommended. Install Git from Git Downloads.
-
Steam API Key: Obtain a Steam Web API key by following the instructions on the Steam Web API Key Registration page.
-
Steam User ID: Identify your unique Steam User ID, which will be used to fetch your game library data. You can easily find your Steam User ID by using Steam ID Finder.
-
Environment Configuration: Create a
.env
file in the project directory with your API key and Steam User ID using this format:
STEAM_API_KEY=your_api_key_here
STEAM_USER_ID=your_steam_user_id_here
- Clone this repository to your local machine:
git clone https://github.com/your-username/Steam-Library-GameID-Exporter.git
- Navigate to the project directory:
cd Steam-Library-GameID-Exporter
- Install the required dependencies:
npm install
- Run the script to export your Steam library game IDs:
node index.js
or
node name-ids.js
-
The script will make an API request to Steam, retrieve your game IDs, and export them to a text file named "exportedIDS.txt" in the project directory.
-
You can find your exported game IDs in the "exportedIDS.txt" file.
Here's an example of what the "exportedIDS.txt" file might look like:
730, 570, 440, 105600, 4000
This project is open-source and is available under the MIT License.
If you encounter any issues or have suggestions for improvements, please open an issue or feel free to submit a pull request.