Increment and return hits for an id (POST)
Endpoints
Increment hits (POST)
One of X-Auth-Token header or token query is required.
POST
Increment and return hits for an id (POST)
Increment the counter for an id and return the updated value.
Authentication
Tip
- Send your secret via
X-Auth-Tokenheader or?token=query.
- Use your own deployment URL (e.g.,
https://<project>.vercel.app) and your secret token from the server env (SECRET_TOKEN). - The public instance at
https://nums.advay.cais read-friendly; incrementing requires your own secret.
- Viewing counts does not require any token. See
/countand/count.txt.
Headers
Secret token for authentication (required unless token query provided)
Query Parameters
Counter id (default home)
Secret token (alternative to header)
Optional custom deployment URL (defaults to https://nums.advay.ca)