> For the complete documentation index, see [llms.txt](https://dev.plyr.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.plyr.network/api-reference/assets/badge/get-badge-info.md).

# 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);
```
