# Get Badge Info

{% hint style="info" %}
Retrieves detailed information about a specific badge.
{% endhint %}

**Endpoint:** `/game/badge/info`\
**Method:** GET

{% tabs %}
{% tab title="Request Parameters" %}

```typescript
{
    gameId: string;          // Game ID
    slug?: string            // Optional, specificed a slug
}
```

{% endtab %}

{% tab title="Success Response" %}

```typescript
[
    {
    gameId: string,
    contractAddress: string,
    name: string,
    description: string,
    slug: string,
    image: string,
    attributes: [ { trait_type: string, value: string } ],
    createdAt: string,
    holders: number,
    count: number
  },
]
```

{% endtab %}

{% tab title="Error Response" %}

```typescript
{
  error: string;
  details?: any;
}
```

{% endtab %}
{% endtabs %}

## Example Usage

```javascript
// Setup request parameters
const timestamp = Date.now().toString();
const params = {
    gameId: 'zoono',
};

// Generate HMAC signature
const hmac = generateHmacSignature(timestamp, params, secretKey);

// Make the API request
const response = await axios.get(apiEndpoint + '/game/badge/info', {
    params,
    headers: {
        apikey: apiKey,
        signature: hmac,
        timestamp: timestamp
    }
});

// Process the response
console.log('Badge Info:', response.data);
```


---

# 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://dev.plyr.network/api-reference/assets/badge/get-badge-info.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.
