# List all Catalogs

Listing the available Catalogs for your game can be a good way of making sure the Catalogs you're going to use, are available.

## Prerequisites

Before we can list the catalogs, please ensure you have completed the following steps beforehand:

* [A game created in the LootLocker web console](/the-basics/readme.md)
* [Catalogs configured in the LootLocker web console](/commerce/catalogs/how-to/setup-catalogs.md)
* [A player with an active LootLocker game session](https://github.com/lootlocker/gitbook-sync/blob/main/commerce/authentication/README.md)

## In-game implementation

{% tabs %}
{% tab title="Unity" %}

```csharp
LootLockerSDKManager.ListCatalogs((response) =>
{
    if (!response.success)
    {
        Debug.Log("Could not List Catalogs");
        return;
    }

    foreach(var catalog in response.catalogs)
    {
        Debug.Log(catalog.name);
        Debug.Log(catalog.key);
        Debug.Log(catalog.id);
    }
});
```

{% endtab %}

{% tab title="Unreal" %}

<figure><img src="/files/S3C3AtLvOXUzh9f5HTkt" alt=""><figcaption><p><a href="https://blueprintue.com/blueprint/30hp126-/">Blueprint example of listing catalog items</a></p></figcaption></figure>
{% endtab %}

{% tab title="REST" %}

```bash
curl -X GET 'https://api.lootlocker.io/game/catalogs/' \
-H 'x-session-token: {token}' \
-H "Content-Type: application/json"
```

{% endtab %}
{% endtabs %}

## Conclusion

In this how to, we have set up a way for you to list all your available catalogs, at this point, you can sort the catalogs, [set up UI for a store](/commerce/catalogs/how-to/setup-ingame-catalog-store.md), and more.


---

# 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.lootlocker.com/commerce/catalogs/how-to/list-all-catalogs.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.
