Command-line tool

Look up domains from your terminal with npx, no install required.

Quick start

The @seo-api/cli CLI needs Node.js 18 or newer and runs with npx, no install required. login saves your key to ~/.config/seo-api/config.json. --wait keeps retrying pending domains, and --json prints the raw response.

terminal
npx @seo-api/cli login YOUR_API_KEY
npx @seo-api/cli domain example.com
npx @seo-api/cli domain example.com --json

Usage

usage
npx @seo-api/cli domain <domain> [--json] [--wait]
npx @seo-api/cli credits
npx @seo-api/cli login <api-key>
npx @seo-api/cli logout

# The key is read from SEO_API_KEY first, then from the saved login
SEO_API_KEY=YOUR_API_KEY npx @seo-api/cli domain example.com --json | jq .traffic.visits