Quick Start Guide ¶
Steam Stats automatically generates and embeds Steam gaming statistic cards in your GitHub profile README.
Go Live Immediately¶
- Verify your Prerequisites
- Obtain your Steam API Key
- Locate your Steam IDs
- Configure the GitHub Action
- Insert the README markers and Verify
Once complete, check out the generated cards in your README and explore the User Guide for customization and troubleshooting.
Step 1: Prerequisites¶
Before you begin, ensure you have: - GitHub account with repository access - Steam account with $5+ purchase history - Basic familiarity with GitHub Actions
Step 2: Get Steam Web API Key¶
- Visit Steam Developer Portal
- Enter your domain (can be anything, e.g.,
localhost
) - Copy your API key
Step 3: Find Your Steam IDs¶
You'll need both your Steam ID and Custom ID: - Steam ID: 17-digit number from Account Details - Custom ID: From your profile URL
Step 4: Configure GitHub Secrets¶
Add these to your repository secrets:
STEAM_API_KEY
: Your API key from Step 2STEAM_ID
: Your Steam ID (as variable)STEAM_CUSTOM_ID
: Your Custom ID (as variable)
Step 5: Add Workflow File¶
Create .github/workflows/steam-stats.yml
:
name: Steam Stats
on:
workflow_dispatch:
schedule:
# Runs every Monday at 12 AM IST (UTC+5:30)
- cron: "30 18 * * 0"
jobs:
steam-stats:
name: Steam Stats
runs-on: ubuntu-latest
steps:
- name: Steam Stats
uses: nicconike/steam-stats@master
with:
STEAM_API_KEY: ${{ secrets.STEAM_API_KEY }}
STEAM_ID: ${{ vars.STEAM_ID }}
STEAM_CUSTOM_ID: ${{ vars.STEAM_CUSTOM_ID }}
WORKSHOP_STATS: True # Optional
LOG_SCALE: True # Optional
Step 6: Add README Markers¶
In your README.md
, add:
<!-- Steam-Stats start -->
<!-- Steam-Stats end -->
<!-- Steam-Workshop start -->
<!-- Steam-Workshop end -->
Verification¶
Run your workflow manually to test. Check:
- Workflow completes successfully
- PNG files appear in your repository
- README displays the generated cards