# Premium API usage stats

## GetUsage

GetUsage fetches usage stats for API key. Require API key to be set.

```go
package main

import (
	"fmt"
	"log"
	"os"

	"github.com/DiFronzo/blockchair"
)

var clientID string

func init() {
	clientID = os.Getenv("API_KEY")
}

func main() {
	c := blockchair.New()
	c.APIKey = clientID
	resp, err := c.GetUsage()
	if err != nil {
		log.Fatalln(err)
	}
	
	fmt.Println(resp)

}
```

{% hint style="warning" %}
**Request cost** is 0.
{% endhint %}
