The counter API for developers
CountJar gives every counter its own URL. Call it from a browser, a backend, a cron job or a shell script and get a JSON number back in milliseconds.
Live demo, running on CountJar.
Up, down, set, reset
Every operation you need, with custom step sizes and min/max bounds.
Public or private
Public counters work from any website. Private ones need a scoped token.
Stats & history
Hourly and daily series, unique visitors and time windows like ?window=24h.
Generous limits
600 requests per minute per path, with standard rate-limit headers.
Set it up in three steps
- 1
Sign in with your phone
We text you a 6-digit code. Your account and first workspace are ready right after.
- 2
Create a counter
Pick a name and a type: count, like, poll or rating. Make it public or private.
- 3
Paste the snippet
Copy the widget, badge or API call from the counter's Embed tab.
Questions
Is the counter API free?
Yes. Every account gets 5 counters and 10,000 counts a day for free.
Do I need an API key?
Public counters can be read and incremented without one. Private counters and admin operations use a workspace token sent as a Bearer header.
Does it support CORS?
Yes. Every API response sends Access-Control-Allow-Origin: *, so you can call it straight from the browser.