Get Started
Prerequisites
Counter API is a REST API to help developers to keep their count data online. It is designed to use in static applications where you do not have backend to store your data.
Available Libraries
CounterAPI provides official libraries to make integration easy in your applications:
JavaScript Library
The JavaScript library supports both browser and Node.js environments, making it versatile for frontend and backend applications.
- Repository: counter.js
- Documentation: JavaScript Guide
- Features:
- Universal JavaScript support (Node.js, browser, ESM)
- Compatible with v2 CounterAPI endpoints (the only available version — v1 was deprecated August 7, 2026)
- TypeScript support
- Promise-based API
- Custom error handling
Go Library
The Go library provides a native implementation for Go applications.
- Repository: counter-go
- Documentation: Go Guide
- Features:
- Native Go implementation
- Thread-safe
- Context support
- Support for v2 API endpoints (the only available version — v1 was deprecated August 7, 2026)
Quick Start
The fastest way to get Counter API for your JavaScript project, install it with yarn or npm.
To use it, open up your terminal in the desired directory and run the following command:
Next Steps
Choose your preferred language to get started:
- JavaScript developers:
- Start with the JavaScript Quick Start
- Learn about Browser Implementation
-
Explore Node.js Implementation
-
Go developers:
- Begin with the Go Quick Start
- Learn about Counter Names in Go