Steam Library Exporter
Export your full Steam game library to CSV or JSON with rich metadata from four APIs.
Why?
Steam shows you your library — it doesn't let you query it. This tool pulls playtime, genres, prices, reviews, Metacritic scores, community tags, and estimated ownership data into a single flat CSV you can open in Excel, pandas, Google Sheets, Tableau, or any BI tool.
Features
| Feature | Description |
|---|---|
| Interactive mode | Run without arguments for a guided step-by-step setup — no flags to memorize |
| 24 metadata columns | appid, name, playtime, genres, developers, publishers, release date, Metacritic score, prices, review counts, SteamSpy tags, and more (20 with --no-steamspy) |
| CSV & JSON export | --format csv (default) or --format json for structured data |
| Four API sources | Steam Web API, Steam Store API, Steam Reviews API, SteamSpy |
| Sort options | --sort playtime|name|metacritic|reviews |
| Filter unplayed | --min-playtime N to skip games under N hours |
| Environment variables | Set STEAM_API_KEY and STEAM_ID once — never retype credentials |
| Progress with ETA | Shows elapsed time and estimated time remaining per game |
| Export summary | Prints total playtime, played/unplayed counts, top genres, and avg Metacritic |
| Optional SteamSpy | Skip with --no-steamspy to cut export time by ~25% (drops the 4 SteamSpy columns) |
| Partial export | Use --limit N to test with a small batch before running the full library |
| Custom output path | Override the default filename with --output |
| Cross-platform | Runs on Windows, macOS, and Linux wherever Python 3.10+ is installed |
Quick Start
1. Install
Via PyPI (recommended) — provides the steam-export command:
pip install steam-library-exporter
Or as an isolated app with pipx — keeps its dependencies out of your global Python:
pipx install steam-library-exporter
Upgrade:
pip install -U steam-library-exporter # pipx: pipx upgrade steam-library-exporter
Or clone and run from source (development):
git clone https://github.com/davidmalko87/steam-library-exporter.git
cd steam-library-exporter
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
python steam_export.py --help # same flags as steam-export
Where files live: No config or
.envfile is read — credentials come only from--key/--steamid, the interactive prompts, or theSTEAM_API_KEY/STEAM_IDenvironment variables set in your shell. The export is written to the folder you runsteam-exportfrom assteam_library.csv(orsteam_library.json) unless you pass--output PATHor enter another name in interactive mode; nothing else is written, and progress goes to the terminal only. A clone behaves the same way.
2. Configure
You need two things:
| Item | How to get it |
|---|---|
| Steam Web API key | steamcommunity.com/dev/apikey (free) |
| Steam64 ID | steamid.io — 17-digit number |
Pass them with --key / --steamid, type them into interactive mode, or set them once as environment variables (see below).
Set both Profile and Game details to Public in Steam → Settings → Privacy.
3. Run
steam-export --help # all flags
steam-export # interactive mode — guided step-by-step (no flags needed)
From a clone, use python steam_export.py in place of steam-export — the flags are identical. If steam-export is not on your PATH after a pip install, python -m steam_export runs the same CLI.
CLI — export with flags:
# Quick test — top 5 games by playtime
steam-export --key YOUR_API_KEY --steamid YOUR_STEAM64_ID --limit 5
# Full library export
steam-export --key YOUR_API_KEY --steamid YOUR_STEAM64_ID
# Export to JSON
steam-export --key YOUR_API_KEY --steamid YOUR_STEAM64_ID --format json
# Sort by name, skip unplayed games
steam-export --key YOUR_API_KEY --steamid YOUR_STEAM64_ID --sort name --min-playtime 1
# Faster — skip SteamSpy data (drops the 4 SteamSpy columns)
steam-export --key YOUR_API_KEY --steamid YOUR_STEAM64_ID --no-steamspy
# Custom output filename
steam-export --key YOUR_API_KEY --steamid YOUR_STEAM64_ID --output my_games.csv
Environment variables — set once, then run without --key / --steamid:
# macOS / Linux
export STEAM_API_KEY=YOUR_API_KEY
export STEAM_ID=YOUR_STEAM64_ID
steam-export --format csv
# Windows (PowerShell)
$env:STEAM_API_KEY = "YOUR_API_KEY"
$env:STEAM_ID = "YOUR_STEAM64_ID"
steam-export --format csv
Running
steam-exportwith no arguments always starts interactive mode — the environment variables are only offered there as defaults (Use this key? [Y/n]). To export straight away (scripts, cron, Task Scheduler), pass at least one flag, as above.
Configuration Reference
| Flag | Required | Default | Description |
|---|---|---|---|
--key KEY |
Yes* | — | Steam Web API key |
--steamid STEAMID |
Yes* | — | Steam64 ID (17-digit number) |
--output OUTPUT |
No | steam_library.<format> |
Output file path |
--format FORMAT |
No | csv |
Export format: csv or json |
--sort FIELD |
No | playtime |
Sort by: playtime, name, metacritic, or reviews |
--min-playtime N |
No | 0 (all) |
Minimum playtime in hours to include a game |
--no-steamspy |
No | off | Skip SteamSpy API calls (faster export; the 4 SteamSpy columns are omitted) |
--limit N |
No | 0 (all) |
Export only the top N games by playtime |
--version |
No | — | Print version and exit |
* Not required if the corresponding environment variable is set.
Environment Variables
| Variable | Replaces |
|---|---|
STEAM_API_KEY |
--key |
STEAM_ID |
--steamid |
Output Columns
appid, name, playtime_hours, playtime_2weeks_hours, type, developers, publishers, genres, categories, release_date, metacritic_score, price_current, price_initial, is_free, short_description, header_image, total_positive, total_negative, review_score_desc, total_reviews, estimated_owners, avg_playtime_global, median_playtime_global, steamspy_tags
- With
--no-steamspythe last four (SteamSpy) columns are left out entirely, not blank, so the file has 20 columns. playtime_hoursandplaytime_2weeks_hoursare your own playtime in hours;avg_playtime_globalandmedian_playtime_globalare SteamSpy figures in minutes.price_currentis Steam's formatted price string (e.g.$29.99) in the currency Steam picks for your region.price_initialis the pre-discount price and is only filled while the game is on sale; Steam leaves it empty otherwise. Both are empty for free games.- List fields (
developers,publishers,genres,categories,steamspy_tags) are joined with,;estimated_ownersis SteamSpy's range as returned (e.g.20,000,000 .. 50,000,000). - Missing values are empty strings in both formats — JSON output uses
"", notnull.
Sample rows
Selected columns, in export order:
appid,name,playtime_hours,genres,metacritic_score,price_current,review_score_desc,estimated_owners
570,Dota 2,1842.3,"Action, Strategy, Free To Play",90,,Very Positive,"100,000,000 .. 200,000,000"
730,Counter-Strike 2,634.1,"Action, Free To Play",,,Very Positive,"100,000,000 .. 200,000,000"
1091500,Cyberpunk 2077,112.7,RPG,86,$29.99,Very Positive,"20,000,000 .. 50,000,000"
Project Structure
steam-library-exporter/
├── .github/
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.yml
│ │ └── feature_request.yml
│ ├── workflows/
│ │ ├── ci.yml
│ │ └── publish.yml # Publishes to PyPI when a v* tag is pushed
│ ├── dependabot.yml
│ └── PULL_REQUEST_TEMPLATE.md
├── steam_export.py # CLI entry point and all logic
├── pyproject.toml # Packaging metadata, steam-export console script
├── requirements.txt # Python dependencies
├── CHANGELOG.md # Version history
├── CONTRIBUTING.md # Development and versioning guide
├── .gitignore
├── LICENSE # MIT
└── README.md
Known Limitations
- Rate limits: Steam Store API requires ~1.5 s between requests. A 200-game library takes roughly 13 minutes.
- Private profiles: The tool cannot read libraries set to Private in Steam Privacy Settings.
- Free-to-play games: Some F2P titles may lack price data in the Store API response.
- SteamSpy accuracy: Estimated ownership ranges are approximate (SteamSpy infers data, Steam does not publish it).
- SteamSpy playtime: SteamSpy currently returns
0for average and median playtime, soavg_playtime_globalandmedian_playtime_globalare always0. - Excel and special characters: The CSV is UTF-8 without a BOM. Double-clicking it in Excel on Windows can garble characters such as ™, ® or non-Latin titles; import it via Data → From Text/CSV with UTF-8 selected instead.
- No incremental export: The script always fetches and writes the full library from scratch.
Security
Never commit your API key. The
.gitignoreexcludes common credential files (.env,*.key), but always verify before pushing.
Your Steam Web API key is read-only and scoped to public data, but treat it like any credential. On shared machines, prefer interactive mode or the environment variables over --key: command-line arguments are visible to other users in the process list. Anything typed on the command line, an export STEAM_API_KEY=... line included, is also saved in your shell history.
License
MIT © 2026 David Malko
Links
Metadata
Release files for steam-library-exporter 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| steam_library_exporter-1.1.1.tar.gz | 16.1 kB | With provenance | Details for steam_library_exporter-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| steam_library_exporter-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for steam_library_exporter-1.1.1-py3-none-any.whl |
Total release size: 28.8 kB
Release files / steam_library_exporter-1.1.1.tar.gz
| Download URL | steam_library_exporter-1.1.1.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea35d5e733b3ec53f5b156989c45d3b3e473d3e2c899e601518e45a382b15c41
|
|
BLAKE2b-256 checksum How to use checksums |
6e4c8060a6e404c313e66fc82f71c6f7f58baa895a64af8dda2bca5869642606
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / steam_library_exporter-1.1.1-py3-none-any.whl
| Download URL | steam_library_exporter-1.1.1-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94d1399e38309e026064b745f2dc1ba6b8200303baf5f15bb10ed318891387e6
|
|
BLAKE2b-256 checksum How to use checksums |
fe2e188dd5b68f2d5444635e438870811151edb9660e7858482a59ac66186a74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logSecurity for steam-library-exporter 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for steam_library_exporter-1.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.