npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dataforseo-cli

v1.0.6

Published

Lightweight CLI for DataForSEO keyword research, optimized for LLM/agent use

Readme

dataforseo-cli

LLM-friendly keyword research CLI built for AI agents. Wraps the DataForSEO API and outputs TSV by default — compact, structured, and optimized for agent context windows. Also supports --json and --table output.

Built to plug into SEO automation pipelines, coding agents, and any workflow where an AI needs keyword data without parsing HTML or navigating dashboards.

Install

npm install -g dataforseo-cli

Setup

# Check if credentials are already configured
dataforseo-cli status

# If not, set them:
dataforseo-cli --set-credentials login=YOUR_LOGIN password=YOUR_PASSWORD

# Or with base64 token (from DataForSEO email)
dataforseo-cli --set-credentials base64=YOUR_BASE64_TOKEN

Credentials stored in ~/.config/dataforseo-cli/config.json.

Commands

status

Check if API credentials are configured (no API call, no secrets printed).

dataforseo-cli status
# ✓ Credentials configured (login: k*****[email protected])

volume

Search volume, CPC, keyword difficulty (0–100), competition, and 12-month trend.

API endpoints: keywords_data/google_ads/search_volume/live + dataforseo_labs/google/bulk_keyword_difficulty/live

dataforseo-cli volume "seo tools" "keyword research"
dataforseo-cli volume "seo verktyg" --location 2752 --language sv
keyword	volume	cpc	difficulty	competition	trend
seo tools	12500	2.35	45	HIGH	14800,13900,12500,12100,11800,12000,12500,13000,12800,12500,12200,11900

trend is 12 monthly search volumes (newest first). difficulty is 0–100. cpc is in USD.

related

Keyword suggestions from a seed keyword.

API endpoint: dataforseo_labs/google/keyword_suggestions/live

dataforseo-cli related "seo tools"
dataforseo-cli related "ai agents" -n 20
keyword	volume	cpc	competition	difficulty
best seo tools	8100	3.10	0.82	52
free seo tools	6600	1.85	0.65	38

competitor

Keywords a domain ranks for.

API endpoint: dataforseo_labs/google/ranked_keywords/live

dataforseo-cli competitor ahrefs.com
dataforseo-cli competitor semrush.com -n 20 --json
keyword	position	volume	cpc	difficulty	url
backlink checker	1	33100	4.50	72	https://ahrefs.com/backlink-checker

locations

Look up location codes for --location.

dataforseo-cli locations sweden

languages

Look up language codes for --language.

dataforseo-cli languages swedish

Options

Filtering:

| Flag | Short | Description | Default | |------|-------|-------------|---------| | --location <code> | -l | Location code | 2840 (US) | | --language <code> | | Language code | en | | --limit <n> | -n | Max results (related, competitor) | 50 |

Output format:

| Flag | Description | |------|-------------| | (default) | TSV — fewest tokens, ideal for LLM/agent pipelines | | --json | JSON array | | --table / --human | Human-readable table |

Why TSV?

Most keyword tools output JSON or HTML tables. For AI agents, that's wasteful — JSON brackets and keys burn tokens, HTML is even worse. TSV is the most compact structured format: easy to parse, minimal overhead, and fits more data in a context window.

Caching

Results cached in ~/.config/dataforseo-cli/cache/ to avoid duplicate API calls (and costs).

dataforseo-cli --print-cache

Agent Skill

This repo includes a SKILL.md following the Agent Skills spec. Install it in any compatible agent:

npx skills add alexgusevski/dataforseo-cli

Author

Alexander Gusev (@alexgusevski)

License

MIT