CLI
Your numbers in the terminal, for scripts and cron jobs.
Updated 21 Oct 2026
Not on npm yet
The
atrby CLI is a thin client of the REST API and isn't published yet. Until it is, the same calls work with curl, as below.Commands
| atrby sites | List the sites in your workspace. |
|---|---|
| atrby stats --site S | Visitors, pageviews, revenue and conversion. |
| atrby revenue --site S | Revenue by source. |
| atrby vitals --site S | Core Web Vitals at p75. |
| atrby funnel --site S | The default funnel: any page, /pricing, paid. |
Every command takes --range (today, 24h, 7d, 30d, 90d) and --json for machine-readable output. It reads your key from ATRBY_API_KEY.
The same with curl
export ATRBY_API_KEY=atr_live_YOUR_KEY # Revenue by source, last 30 days curl -s "https://app.atrby.site/api/v1/revenue?site=acme.io&range=30d" \ -H "Authorization: Bearer $ATRBY_API_KEY" | jq '.sources'