NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Cloud Counter API

GET

Track and adjust persistent totals without running a database.

Cloud Counter stores and updates persistent numeric counters by ID without needing a database. It tracks increments, decrements, and custom values while returning timestamps and number properties like parity and prime status.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/counter?id=test_counter
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "created": "2024-04-26T22:09:46.000Z",
    "id": "test_counter",
    "lastAction": "get",
    "lastRead": "2025-12-16T22:21:45.000Z",
    "lastUpdated": "2024-04-26T22:09:46.000Z",
    "numberOfDigits": 1,
    "ordinal": "zeroth",
    "value": 0,
    "words": "zero",
    "isEven": true,
    "isNegative": false,
    "isZero": true,
    "isPrime": false
  }
}

About the Cloud Counter API

A cloud counter API that keeps a named number for you between requests, with no database to run. Pick an ID, call it with up, down, set or get, and the current value comes back with timestamps for when it was created, last read and last changed. It works as a persistent counter for page views, button clicks, download tallies, queue numbers or anything else you would otherwise store a single integer for.

Because the counter lives behind a simple GET request, it fits static sites, serverless functions, no-code automations, IoT devices and quick prototypes. Each response also describes the number: spelled out in words and as an ordinal, its digit count, and whether it is even, negative, zero or prime.

Counters are scoped to your API key, and you can list or delete them at any time. The Free plan increments and decrements in steps of one and can set any value. Paid plans let up and down move the counter by any amount in one call, and higher plans allow more counters per key.

How it works

Cloud Counter stores each counter under your API key, keyed by id. An id must be 1 to 64 letters, digits, underscores or hyphens; anything else returns a 400. The first call to an unknown id, for any action other than delete, creates it at 0. Creation is refused once your key holds its maximum number of counters: five on the Free plan and the entry paid plan, 50 on higher plans.

action defaults to get. up adds value and down subtracts it, with value defaulting to 1; on the Free plan value is ignored for these two, so they always step by one. set replaces the value with a whole number from 0 to 100,000,000. down can take a counter below zero, but no action may leave it beyond 100,000,000 in either direction; a change that would is refused with a 400 and the counter is left unchanged. delete removes the counter and returns a confirmation message, or a 404 if it does not exist. list returns every counter on the key as id, value and created, with a count.

Every read stamps lastRead. Every change also updates lastUpdated and lastAction, which a plain get leaves alone. All timestamps are ISO 8601 in UTC.

The descriptive fields are recomputed on each call. words and ordinal spell out the value in English ("twenty-five", "twenty-fifth"). numberOfDigits ignores the minus sign. isEven, isNegative and isZero are as named. isPrime uses trial division and is false for anything below 2. Updates are read-then-write rather than atomic, so simultaneous calls on the same counter can overwrite each other.

What people use it for

Article View Counts
Increment a page tally each time a reader loads a blog post, returning the fresh total without querying a local database.
Feature Usage Quotas
To enforce monthly limits, SaaS backends increase a user action counter and check whether the total crosses allowed thresholds.
Live Score Tracking
Gaming servers adjust player points up or down during matches while fetching parity and formatted word representations.
Inventory Stock Adjustments
When shoppers complete checkout, decrement item tallies and inspect the remaining balance without maintaining dedicated database tables.

Without writing code

Word Counter Widget for Windows counts the words in anything you copy.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Cloud Counter

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Cloud Counter API.

Read the docs →
What operations can I perform on a counter?
You can increment, decrement, set an exact value, delete a counter, and fetch its current total. You can also retrieve a list of all your active counters to review their values and creation dates.
Does the counter support negative numbers and zero?
Yes. Counters handle positive numbers, zero, and negative values. When you inspect a counter, the response confirms whether the current value is negative, zero, even, or prime, alongside its digit count.
Can I adjust a counter by custom step amounts on the Free plan?
Supplying a custom value parameter requires a paid plan. The Free plan supports default increments and decrements, while Starter and higher let you specify custom adjustment amounts or assign explicit target values.
What would 50,000 counter updates a month cost me?
Fifty thousand counter updates consume 50,000 credits, taking up a quarter of the Starter plan's 200,000 monthly credits. That works out to about $0.00015 per call, or $0.15 per 1,000 calls. The Free plan includes 200 calls per month for testing.
What metadata does reading a counter return?
Fetching a counter returns its current count, creation timestamp, last read timestamp, last updated timestamp, and last action performed. The Cloud Counter response also provides formatted text words, ordinal text, digit count, and parity flags.

Ready to build with Cloud Counter? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs