# Use Catalogs In-Game

### List Catalogs

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

```csharp
LootLockerSDKManager.ListCatalogs((response) =>
{
    if(!response.success)
    {
        Debug.Log("error: " + response.errorData.message);
        Debug.Log("request ID: " + response.errorData.request_id);
        return;
    }

});
```

To see what data gets returned, please refer to our [Reference Documentation](https://ref.lootlocker.com/game-api/#list-catalogs-for-game).
{% endtab %}

{% tab title="Unreal" %}

<figure><img src="/files/2uSjTokLcL2GEKaEvQ0z" alt=""><figcaption><p><a href="https://blueprintue.com/blueprint/hu44-0v2/">Blueprint example of listing catalogs available in your game</a></p></figcaption></figure>
{% endtab %}
{% endtabs %}

### List Catalog Items

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

```csharp
LootLockerSDKManager.ListCatalogItems(catalogKey, 10, "", (response) =>
{
    if(!response.success)
    {
        Debug.Log("error: " + response.errorData.message);
        Debug.Log("request ID: " + response.errorData.request_id);
        return;
    }

});
```

To see what data gets returned, please refer to our [Reference Documentation](https://ref.lootlocker.com/game-api/#list-catalog-items-by-key).
{% endtab %}

{% tab title="Unreal" %}

<figure><img src="/files/0ufEvCfiKPbnyCooimdQ" alt=""><figcaption><p><a href="https://blueprintue.com/blueprint/y6kzftl-/">Blueprint example of getting catalog items</a></p></figcaption></figure>
{% endtab %}
{% endtabs %}

### Buy Catalog Items

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

```csharp
string walletID = "";
LootLockerCatalogItemAndQuantityPair[] items = { };

LootLockerSDKManager.LootLockerPurchaseCatalogItems(walletID, items, (response) =>
{
    if(!response.success)
    {
        Debug.Log("error: " + response.errorData.message);
        Debug.Log("request ID: " + response.errorData.request_id);
        return;
    }

});
```

To see what data gets returned, please refer to our [Reference Documentation](https://ref.lootlocker.com/game-api/#make-a-purchase-in-game-only).
{% endtab %}

{% tab title="Unreal" %}

<figure><img src="/files/6fa9vDA33vrnppqayCU9" alt=""><figcaption><p><a href="https://blueprintue.com/blueprint/9zeed0-8/">Blueprint example of buying catalog items</a></p></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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/use-catalog.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.
