Skip to content

gamer2810/steam-miniprofile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 

Repository files navigation

A little tool to feature Steam's miniprofile on your website

This is a tool that loads your miniprofile(with animated background and frame) as a HTML entity so that you can feature it on your website.

This tool only shows PUBLIC information of your Steam account and therefore DOES NOT NEED your Steam's API KEY or CREDENTIALS.

Preview:
Preview GIF

Guide

  1. Get your Steam's ID, you can use any of these IDs from SteamDB or google how to find it yourself. image

  2. Replace YOUR_ACCOUNTID_HERE with the ID acquired from step 1

 https://gamer2810.github.io/steam-miniprofile/?accountId=YOUR_ACCOUNTID_HERE

Examples:

Internationalization / Change Language

Add query parameter lang in your URL. Example: https://gamer2810.github.io/steam-miniprofile/?lang=schinese

Available languages: bulgarian,danish,english,french,greek,italian,koreana,polish,brazilian,russian,latam,swedish,tchinese,ukrainian,czech,dutch,finnish,german,hungarian,japanese,norwegian,portuguese,romanian,schinese,spanish,thai,turkish,vietnamese

Interactive

You can make the content clickable and open your steam profile on click using interactive and vanityId search params.

  1. vanityId is what comes after your normal steamcommunity links Example: https://steamcommunity.com/id/k3k2810 -> vanityId = k3k2810
  2. interactive=true

Full example: https://gamer2810.github.io/steam-miniprofile/?interactive=true&vanityId=k3k2810

To add this to your site

  1. You can load it into any div with JQuery or Javascript. Jquery's Load() guide.
  2. You can also load it as an iframe

    <iframe src="https://gamer2810.github.io/steam-miniprofile/?accountId=YOUR_ACCOUNTID_HERE" style="border:0px #ffffff none;" name="myiFrame" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" height="400px" width="600px" allowfullscreen></iframe>

  • Once it's loaded, you can mod it however you like using CSS.
  • A working example can be found at My site.

How it works

sequenceDiagram
    User->>+gamer2810.github.io: Get Steam Miniprofile
    loop Every 5 minutes
        Note right of Pipedream: Glitch shutdowns the CORS Server<br>every 5 minutes, so we schedule a request<br> every 5 mins to wake it up, ensuring response time
        Pipedream->>CORS Server: Wake up
    end
    gamer2810.github.io->>-User: Return loading miniprofile
    Note right of User: Wait for real profile to load
    gamer2810.github.io->>+CORS Server: Get real profile HTML
    Note right of CORS Server: https://glitch.com/~steam-miniprofile-cors
    CORS Server->>+Steam: Get real profile HTML
    Steam->>-CORS Server: Requested HTML
    CORS Server->>-gamer2810.github.io:Profile HTML with CORS headers
    gamer2810.github.io-->User: Replace loading miniprofile with real HTML

Loading

Note

  • This works by calling Steam's API and render the response with Steam's CSS. This site is not affiliated with Steam or Valve.
  • Your profile will need to be public for this to work.
  • It will track your public status (Online, Offline), but it wont track your friend-only status (Away, Snooze,...).
  • You need to have your Game Details privacy settings set to PUBLIC if you want to show rich presence with steam-miniprofile.
  • If your AccountID is invalid, it will instead load MY (as in the one writing this) miniprofile :).
  • You might have to disable caching of the iframe on your web, or changes on Steam won't be reflected immediately.

Contact

  1. If you decide to use this tool, I'd love to see you show it off in Discussion.
  2. If the tool does not work, please open an Issue and I will take a look.

Have a good day and Please feed me a star if you are feeling generous. I'm humgry

Star History Chart