# Get Avatar by SteamID

<figure><img src="https://3297306079-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg1K5dkF1SAyaDZJSID0b%2Fuploads%2F586fRnNffJnxesAB58PK%2Fimage.png?alt=media&#x26;token=3edeb0cb-2b76-4435-b387-b10925a96a37" alt=""><figcaption></figcaption></figure>

## 📄 <mark style="color:yellow;">Description</mark>

Retrieves the Steam avatar (profile picture) for a given Steam ID and returns it as a Texture2D. Useful when trying to list which users are in the leaderboard and show their avatars.

{% tabs %}
{% tab title="Inputs" %}
<table><thead><tr><th width="200">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>Steam ID</strong></td><td>The ID for the user you want to get avatar for. Either gathered by the <a href="get-steam-id">Get SteamID</a> or by the <a href="get-leaderboard-data">Get Leaderboard Data</a> node.</td></tr><tr><td><a href="enums/avatarsize"><strong>Size Type</strong></a></td><td><p>Specifies the desired size of the avatar.<br><strong>You should always only use the size you actually need. Gathering the small image is easier than the large one.</strong></p><p>→ Large (184x184) = Gathers the image in the largest size available</p><p>→ Medium (64x64) = Gathers the image in a medium size</p><p>→ Small (32x32) = Gathers the image in the smallest size available</p></td></tr></tbody></table>
{% endtab %}

{% tab title="Outputs" %}
<table><thead><tr><th width="200">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>On Success</strong></td><td>Executes if the avatar was successfully retrieved and converted to a texture.</td></tr><tr><td><strong>On Fail</strong></td><td>Executes if the Steam API is not validated, the avatar ID is invalid, image data cannot be retrieved/processed, or the resulting texture is invalid.</td></tr><tr><td><strong>Texture 2D</strong></td><td>The Texture2D containing the user's avatar. Will be invalid on failure.</td></tr></tbody></table>
{% endtab %}
{% endtabs %}
