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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@cli4ai/dataforseo

v2.0.13

Published

SEO Intelligence - Google Trends, Keywords, Competitors & More

Readme

@cli4ai/dataforseo

Official @cli4ai package • https://cli4ai.com • Install cli4ai: npm i -g cli4ai

SEO intelligence tool using the DataForSEO API (trends, keywords, SERP, competitors, audits).

Setup

npm i -g cli4ai
cli4ai add -g dataforseo
cli4ai secrets init dataforseo

Location

Default is NZ. Use -l / --location to change:

cli4ai run dataforseo -l au keywords example.com.au   # Australia
cli4ai run dataforseo -l us serp "coffee shop"        # United States
cli4ai run dataforseo -l uk audit example.co.uk       # United Kingdom
cli4ai run dataforseo locations                        # List all locations

Available locations: nz, au, us, ca, uk, de, fr, es, it, nl, sg, jp, in, global

Commands

Google Trends

| Command | Description | |---------|-------------| | explore <keyword> | Deep dive into keyword trend | | compare <kw1> <kw2>... | Compare multiple keywords | | seasonal <keyword> | Identify seasonal patterns | | quick <keyword> | Quick one-line trend check |

Keyword Research

| Command | Description | |---------|-------------| | keywords <domain> | Find keywords a domain ranks for | | volume <keywords...> | Get search volume and CPC | | difficulty <keywords...> | Check keyword difficulty (0-100) | | related <keyword> | Find semantically related keywords | | intent <keywords...> | Analyse search intent |

Competitor Analysis

| Command | Description | |---------|-------------| | competitors <keywords...> | Find who competes for keywords | | serp <keyword> | See who ranks #1-10 | | gaps <your-domain> <competitor> | Find keyword gaps | | overlap <domain1> <domain2> | Find shared keywords |

Domain Analysis

| Command | Description | |---------|-------------| | backlinks <domain> | Backlink profile summary | | ranked <domain> | All keywords domain ranks for | | pages <domain> | Top performing pages | | audit <domain> | Quick SEO audit |

Utility

| Command | Description | |---------|-------------| | balance | Check API balance | | locations | List available location codes |

Examples

# Check trends in different markets
cli4ai run dataforseo quick coffee                    # NZ (default)
cli4ai run dataforseo -l au quick coffee              # Australia
cli4ai run dataforseo -l us quick coffee              # United States

# Competitor analysis
cli4ai run dataforseo gaps haydn.co.nz resene.co.nz
cli4ai run dataforseo -l au gaps bunnings.com.au mitre10.com.au

# Quick audit
cli4ai run dataforseo audit thecolab.ai
cli4ai run dataforseo -l uk audit example.co.uk

# Check API balance
cli4ai run dataforseo balance

API Costs

Each call costs ~$0.001-0.01 depending on the endpoint. Current balance: Check with cli4ai run dataforseo balance