Display your current game on your website, blog, or GitHub README.
The generated card (PNG image) includes your avatar, in-game name, and the title of the current game (if in-game).
- Get your Steam ID (in Home > Account)
- Set
Game DetailstoPublicon your Steam profile (required for retrieving current game) - Reference the following link in your markdown or HTML
https://steam-current-game.vercel.app/api/?steamids=<steamid>replacing<steamid>with your own.
The image is 368x368 pixels (2x resolution square format). Display as-is or scale:
<!-- Native size (368x368) - crisp 2x rendering -->
<img src="https://steam-current-game.vercel.app/api/?steamids=<steamid>" alt="Steam Status">
<!-- Compact size (scales to 184x184) -->
<img src="https://steam-current-game.vercel.app/api/?steamids=<steamid>" width="184" alt="Steam Status">
<!-- Small size (scales to 128x128) -->
<img src="https://steam-current-game.vercel.app/api/?steamids=<steamid>" width="128" alt="Steam Status">This requires a Steam Web API Key, you can get one at https://steamcommunity.com/dev/apikey
Test locally with the Vercel CLI.
The project relies on the STEAM_WEB_API_KEY, make sure that it is available in the current environment.
One way to do this is by defining it in a .env file (containing STEAM_WEB_API_KEY=<api_key>).
npx vercel dev
This requires a Steam Web API Key, you can get one at https://steamcommunity.com/dev/apikey