Docs menu

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 sitesList the sites in your workspace.
atrby stats --site SVisitors, pageviews, revenue and conversion.
atrby revenue --site SRevenue by source.
atrby vitals --site SCore Web Vitals at p75.
atrby funnel --site SThe 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

Terminal
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'
Was this helpful?
Ask a question about this page