# Getting Friends Data

To get the friends' data, do as in the code snippet below:

```csharp
[SerializeField]
SteamFriendsList steamFriendsList;

IEnumerator AsyncGetFriendsList()
{
    List<SteamFriendEntry> friends = steamFriendsList.GetFriends(true);
    
    // Wait a while for the avatar images to load or ignore this line
    // if you only want to get the names of the player's friends
    yield return new WaitForSeconds(1.5f);

    foreach (SteamFriendEntry steamFriend in friends)
    {
        // Do what your imagination tells you
    }
}
```

{% hint style="info" %}
An advanced working example of the Friends List module can be found at **Assets > Lucky Raccoon Games > Really Simple Steam Integration > Demo > 04 Friends List**
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.luckyraccoongames.com/really-simple-steam-integration/friends-list/getting-friends-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
