Time required: 15-20 minutes
Difficulty: Beginner-friendly (no prior GitHub/Vercel experience needed)
This guide will walk you through deploying the ANT Supply API to api.autonomi.com. Once complete, you'll have live endpoints that CoinMarketCap and CoinGecko can query.
- A GitHub account (free)
- A Vercel account (free)
- Access to DNS settings for autonomi.com
- The API files (in the
ant-supply-apifolder)
- Go to github.com
- Click Sign up
- Enter your email, create a password, choose a username
- Complete the verification and setup
A "repository" (or "repo") is just a folder that stores your code online.
- Log into GitHub
- Click the + icon in the top-right corner
- Select New repository
- Repository name:
ant-supply-api - Description:
ANT Token Supply API for CoinMarketCap and CoinGecko - Visibility: Select Public (required for free Vercel deployment)
- DO NOT check "Add a README file" (we'll upload our own)
- Click Create repository
Keep this page open - you'll need it in a moment.
There are two ways to do this. Choose whichever feels easier:
-
On your new repository page, click uploading an existing file (in the "Quick setup" section)
-
Drag and drop ALL these files/folders from the
ant-supply-apifolder:api/(the whole folder)package.jsonvercel.json.gitignoreREADME.md
-
Scroll down and click Commit changes
If you're comfortable with Terminal:
# Navigate to the ant-supply-api folder
cd /path/to/ant-supply-api
# Initialize git
git init
# Add all files
git add .
# Commit the files
git commit -m "Initial commit: ANT Supply API"
# Connect to your GitHub repository (replace YOUR-USERNAME)
git remote add origin https://github.com/YOUR-USERNAME/ant-supply-api.git
# Push to GitHub
git branch -M main
git push -u origin mainVercel is a free hosting platform that will run your API.
- Go to vercel.com
- Click Sign Up
- Choose Continue with GitHub
- Authorize Vercel to access your GitHub account
- Once logged into Vercel, click Add New... → Project
- You'll see a list of your GitHub repositories
- Find
ant-supply-apiand click Import
The default settings should work, but verify:
- Framework Preset: Other
- Root Directory:
./(leave as default) - Build Command: Leave empty
- Output Directory: Leave empty
- Click Deploy
Vercel will build and deploy your API. This takes about 30-60 seconds.
When it's done, you'll see "Congratulations!" and a preview URL like:
https://ant-supply-api-xxxxx.vercel.app
Click the preview URL and add /api/health to test:
https://ant-supply-api-xxxxx.vercel.app/api/health
You should see:
{
"status": "healthy",
"service": "ANT Supply API",
"timestamp": "2026-02-03T..."
}Test the other endpoints too:
/api/total-supply/api/circulating-supply/api/supply
Now let's point api.autonomi.com to your Vercel deployment.
- In your Vercel project dashboard, click Settings (top menu)
- Click Domains (left sidebar)
- Type
api.autonomi.comin the input field - Click Add
You'll see something like:
| Type | Name | Value |
|---|---|---|
| CNAME | api | cname.vercel-dns.com |
Or possibly:
| Type | Name | Value |
|---|---|---|
| A | api | 76.76.21.21 |
Keep this page open.
You need to add this record wherever your DNS is managed (e.g., Cloudflare, Namecheap, GoDaddy, Route53, etc.).
Example for Cloudflare:
- Log into Cloudflare
- Select the
autonomi.comdomain - Go to DNS → Records
- Click Add record
- Enter:
- Type: CNAME
- Name: api
- Target: cname.vercel-dns.com
- Proxy status: DNS only (grey cloud) - Important!
- Click Save
Example for Namecheap:
- Log into Namecheap
- Go to Domain List → click Manage next to autonomi.com
- Go to Advanced DNS
- Click Add New Record
- Enter:
- Type: CNAME
- Host: api
- Value: cname.vercel-dns.com
- TTL: Automatic
- Click the checkmark to save
DNS changes can take anywhere from 5 minutes to 24 hours to propagate worldwide. Usually it's under 30 minutes.
- Go back to Settings → Domains in Vercel
- You should see a green checkmark next to
api.autonomi.comwhen it's working - Vercel automatically provisions an SSL certificate (HTTPS)
Once the green checkmark appears, test:
https://api.autonomi.com/api/health
https://api.autonomi.com/api/total-supply
https://api.autonomi.com/api/circulating-supply
https://api.autonomi.com/api/supply
Before submitting to CoinMarketCap/CoinGecko, verify all endpoints work:
| Endpoint | Expected Response |
|---|---|
https://api.autonomi.com/api/health |
{"status": "healthy", ...} |
https://api.autonomi.com/api/total-supply |
{"total_supply": "1200000000", "decimals": 18} |
https://api.autonomi.com/api/circulating-supply |
{"circulating_supply": "...", "decimals": 18} |
https://api.autonomi.com/api/supply |
Full details with all wallets |
- DNS hasn't propagated yet. Wait 15-30 minutes and refresh.
- Make sure you used
cname.vercel-dns.comexactly (no typos). - If using Cloudflare, make sure proxy is OFF (grey cloud, not orange).
- Check Vercel logs: Go to your project → Deployments → click latest deployment → Functions tab
- Look for error messages in the logs
- The Arbitrum RPC endpoint has rate limits. The API caches for 1 minute to avoid this.
- If you see this in testing, wait a minute and try again.
- Some registrars add the domain automatically (api becomes api.autonomi.com.autonomi.com)
- Try adding just
apiwithout the full domain - Use a DNS checker like dnschecker.org to see if your record is propagating
Once everything is working, use these URLs in your submissions:
Total Supply Endpoint:
https://api.autonomi.com/api/total-supply
Circulating Supply Endpoint:
https://api.autonomi.com/api/circulating-supply
Full Details Endpoint (optional, for documentation):
https://api.autonomi.com/api/supply
If you need to change the API later:
- Edit the files in your GitHub repository
- Vercel automatically detects changes and redeploys (usually within 1-2 minutes)
- No manual action needed
If you get stuck:
- Take a screenshot of any error messages
- Note which step you're on
- Check Vercel's status page: vercel.com/status
- Vercel has good documentation: vercel.com/docs
What you've accomplished:
✅ Created a GitHub repository with the API code
✅ Deployed to Vercel (free hosting)
✅ Connected your custom domain api.autonomi.com
✅ Have working endpoints for CMC/CoinGecko
The API:
- Queries the Arbitrum blockchain in real-time
- Calculates circulating supply by subtracting 5 excluded wallets
- Caches results for 1 minute
- Costs $0/month on Vercel's free tier