felixlerch / steam-widget

Steam Profile Widget / Badge
https://steam-widget.com
Apache License 2.0
2 stars 0 forks source link
badge badge-generator badges profile profile-card profile-picture spring-boot steam steam-api widget widget-generator widgets

Steam Profile Widget / Badge

This is a small Spring Boot Service for getting a small Steam profile widget / badge for every public Steam profile.

Generator Page

For easy use, you can use the generator page by putting in your SteamID64, customURL, CommunityID.

Generator Page:

https://steam-widget.com

Usage

For the SteamId, you can use the SteamID64, customURL, or CommunityID. Below are the details on how to use the service to generate widgets in both image and HTML formats.

Image Version

To generate an image widget, use the following URL format:

https://steam-widget.com/widget/img?id=<SteamId>&purpose=<Purpose>&width=<Width>

Parameters:

Example:

This URL generates an image widget for the Steam user lizard_darksoul with a purpose of github_repo and a width of 350 pixels.

https://steam-widget.com/widget/img?id=lizard_darksoul&purpose=github_repo&width=350

Embedded HTML:

<img src="https://steam-widget.com/widget/img?id=lizard_darksoul&purpose=github_repo&width=350">

Embedded Markdown:

![Steam Profile](https://steam-widget.com/widget/img?id=lizard_darksoul&purpose=github_repo&width=350)

Embedded BBCode:

[img]https://steam-widget.com/widget/img?id=lizard_darksoul&purpose=github_repo&width=350[/img]

HTML Version

To generate an HTML widget, use the following URL format:

https://steam-widget.com/widget/html?id=<SteamId>&purpose=<Purpose>

Parameters:

Example:

This URL generates an HTML widget for the Steam user lizard_darksoul with a purpose of github_repo.

https://steam-widget.com/widget/html?id=lizard_darksoul&purpose=github_repo

Embedded HTML:

<iframe src="https://steam-widget.com/widget/html?id=lizard_darksoul&purpose=github_repo" style="border: 0" width="325" height="75"></iframe>

Metrics

Profile Metrics

To get metrics about a profile, use the following URL format:

https://steam-widget.com/metric?id=<Steam64Id>

Formats

There are formats for this endpoint:

Hit Metrics

To get hit metrics about a profile, use the following URL format:

https://steam-widget.com/metric/hits?id=<Steam64Id>&purpose=<Purpose>

Formats

There are formats for this endpoint:

Credits

License

Copyright 2024 Felix Lerch

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.