Premium API usage stats
Special endpoint for Premium API users showing some stats on your API key usage.
GetUsage
GetUsage fetches usage stats for API key. Require API key to be set.
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)
}
Request cost is 0.
Last updated
Was this helpful?