Developer API
REST API for Add2Coin. Base URL: https://add2coin.com/api
akka_uid).
For server-side integrations, use the v1 API with a Bearer token from /api/v1/auth/token.
Public Endpoints No auth required
Returns live platform stats. Cached for 5 minutes. No authentication required.
Optional parameter: ?ref=REFCODE — returns stats for a specific embedder.
Used by the WordPress and PrestaShop plugins to show an embedder's dashboard stats.
| Parameter | Type | Description |
|---|---|---|
| ref | string required | Your Add2Coin referral/embedder code |
Authenticated Endpoints Session required
Returns the logged-in user's A2C balance, pending earnings, and live price.
Returns all data needed by the Add2Coin Chrome extension in a single request. Includes balance, stats, streak, price, and user info.
Called automatically by earn.js after 10 seconds of visible engagement. Do not call this manually.
| Parameter | Type | Description |
|---|---|---|
| ref | string required | Embedder ref code (from earn.js URL) |
| uid | string optional | Watcher session cookie value |
Embedding earn.js
Add one line to any webpage to start earning A2C for you and your visitors:
Replace YOUR_REF_CODE with your referral code from your dashboard.
A2C tokens are minted nightly to everyone who generated impressions that day.
Rate Limits
API calls are rate-limited per IP. Impression endpoints are limited to prevent fraud. If you hit a rate limit you will receive a 429 Too Many Requests response.
Support
For API support or integration questions: contact@add2coin.com