← 返回 Skills 市场
alexgusevski

dataforseo-cli

作者 alexgusevski · GitHub ↗ · v1.0.7
cross-platform ⚠ suspicious
750
总下载
2
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install dataforseo-cli
功能描述
LLM-friendly keyword research CLI for AI agents. Check search volume, CPC, keyword difficulty, and competition via DataForSEO API. Find related keywords, ana...
使用说明 (SKILL.md)

Keyword Research with dataforseo-cli

LLM-friendly keyword research CLI. Wraps the DataForSEO API and outputs TSV by default — compact, structured, and optimized for agent context windows.

npm: https://www.npmjs.com/package/dataforseo-cli GitHub: https://github.com/alexgusevski/dataforseo-cli

Setup

1. Install from npm

npm install -g dataforseo-cli

2. Check credentials

dataforseo-cli status

If credentials are already configured, you're good to go. If not, authenticate:

# With login + password
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 are stored in ~/.config/dataforseo-cli/config.json. The locations and languages commands work without credentials (local data).

Commands

status — Check credentials

Check if API credentials are configured without making any API calls.

dataforseo-cli status

Exits 0 if configured, exits 1 if not. Shows login username (not password).

volume — Keyword metrics

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

dataforseo-cli volume \x3Ckeywords...> [options]

Arguments:

  • \x3Ckeywords...> — One or more keywords (required). Batch multiple keywords in one call to save API requests.

Options:

  • -l, --location \x3Ccode> — Location code (default: 2840 = US)
  • --language \x3Ccode> — Language code (default: en)
  • --json — Output as JSON array
  • --table / --human — Output as human-readable table

Example:

dataforseo-cli volume "seo tools" "keyword research" "backlink checker"

Output (TSV):

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
  • difficulty — 0–100 scale (0-30 easy, 31-60 medium, 61-100 hard)
  • cpc — Cost per click in USD
  • competition — LOW / MEDIUM / HIGH
  • trend — 12 monthly search volumes, newest first

related — Keyword suggestions

Find related keyword ideas from a seed keyword.

dataforseo-cli related \x3Cseed> [options]

Arguments:

  • \x3Cseed> — Seed keyword (required, single keyword)

Options:

  • -l, --location \x3Ccode> — Location code (default: 2840 = US)
  • --language \x3Ccode> — Language code (default: en)
  • -n, --limit \x3Cn> — Max results (default: 50)
  • --json — Output as JSON array
  • --table / --human — Output as human-readable table

Example:

dataforseo-cli related "ai agents" -n 20

Output (TSV):

keyword	volume	cpc	competition	difficulty
best ai agents	8100	3.10	0.82	52
ai agent framework	2400	1.85	0.65	38

competitor — Domain keyword analysis

See what keywords a domain currently ranks for.

dataforseo-cli competitor \x3Cdomain> [options]

Arguments:

  • \x3Cdomain> — Target domain (required, e.g. ahrefs.com)

Options:

  • -l, --location \x3Ccode> — Location code (default: 2840 = US)
  • --language \x3Ccode> — Language code (default: en)
  • -n, --limit \x3Cn> — Max results (default: 50)
  • --json — Output as JSON array
  • --table / --human — Output as human-readable table

Example:

dataforseo-cli competitor semrush.com -n 10

Output (TSV):

keyword	position	volume	cpc	difficulty	url
backlink checker	1	33100	4.50	72	https://ahrefs.com/backlink-checker

locations — Look up location codes

List all available location codes, or filter by name. Works offline — no API credentials needed.

dataforseo-cli locations [search] [--json]

Arguments:

  • [search] — Optional filter by name (e.g. sweden, new york)

Without search — lists all locations:

dataforseo-cli locations

With search — filters by name:

dataforseo-cli locations sweden

Output (TSV):

code	name	country	type
2752	Sweden	SE	Country

languages — Look up language codes

List all available language codes, or filter by name. Works offline — no API credentials needed.

dataforseo-cli languages [search] [--json]

Without search — lists all languages:

dataforseo-cli languages

With search — filters by name:

dataforseo-cli languages swedish

Output (TSV):

name	code
Swedish	sv

Output Formats

All data commands default to TSV (tab-separated values) — the most token-efficient structured format for LLMs.

Flag Description
(default) TSV — fewest tokens, best for agent pipelines
--json JSON array — use when you need structured parsing
--table / --human Human-readable aligned table — for human review

Caching

Results are cached in ~/.config/dataforseo-cli/cache/ to avoid duplicate API calls and save costs. Same query + location + language = cache hit.

dataforseo-cli --print-cache

Workflow: SEO Article Research

  1. Start with seed keyword: dataforseo-cli volume "your topic"
  2. Expand: dataforseo-cli related "your topic" -n 30
  3. Filter: Pick keywords with volume > 100, difficulty \x3C 60
  4. Check competitors: dataforseo-cli competitor competitor-domain.com -n 20
  5. Write article targeting the best keyword cluster

Tips

  • Batch keywords in volume — DataForSEO charges per API request, not per keyword
  • Default location is USA (2840). Always set --location for local/international SEO
  • Use locations and languages without arguments to see all available options
  • Difficulty scale: 0-30 easy, 31-60 medium, 61-100 hard
安全使用建议
This is an instruction-only skill that wraps a public npm CLI for DataForSEO. Before installing or using it: 1) Review the npm package and GitHub repo code to ensure there is no unexpected behavior (global npm packages run third-party code). 2) Be aware the tool will ask for and persist your DataForSEO credentials in ~/.config/dataforseo-cli/config.json and will cache queries under ~/.config/dataforseo-cli/cache/ — check and tighten file permissions or use safer secret storage if you need to. 3) Confirm you are comfortable with the DataForSEO account you supply (billing/API usage may incur cost). 4) Note the registry metadata did not declare required credentials — treat that omission as a transparency issue and prefer packages whose registry metadata accurately lists needed secrets. If you want lower risk, inspect the package source or run it in an isolated environment/container before granting it access to your real credentials or home directory.
功能分析
Type: OpenClaw Skill Name: dataforseo-cli Version: 1.0.7 The skill bundle provides instructions for installing and using the `dataforseo-cli` tool, which performs keyword research via the DataForSEO API. The `SKILL.md` clearly outlines the tool's purpose, installation steps (`npm install -g dataforseo-cli`), and how to configure API credentials, which are stored locally in `~/.config/dataforseo-cli/config.json`. All instructions are transparent, directly related to the stated functionality, and do not contain any evidence of prompt injection attempts against the agent, data exfiltration, malicious execution, or persistence mechanisms within the provided files. The inherent risks are standard for any skill that installs external software and handles API keys, but the skill bundle itself does not exhibit malicious intent.
能力评估
Purpose & Capability
SKILL.md describes a CLI wrapper for the DataForSEO API (volume, related, competitor, locations, languages) which aligns with the skill name and description. However, the registry metadata lists no required credentials or env vars while the instructions clearly require DataForSEO credentials (login/password or base64 token) to be configured. That metadata omission is an inconsistency to be aware of.
Instruction Scope
Instructions are specific to installing and using an npm CLI that queries DataForSEO and caches results. They instruct storing credentials in ~/.config/dataforseo-cli/config.json and caching results in ~/.config/dataforseo-cli/cache/. These actions are coherent for a CLI but involve reading/writing files in the user's home config — a legitimate function but a privacy/safety consideration (credentials and query history are persisted). Instructions do not ask for unrelated system files or other credentials.
Install Mechanism
There is no built-in install spec in the registry; the SKILL.md recommends running 'npm install -g dataforseo-cli' (package on npm and GitHub links provided). Installing an npm package globally executes third-party code on the host — a standard but non-trivial risk. The package source is public (npm + GitHub), which mitigates risk if you audit it first.
Credentials
Functionality legitimately requires DataForSEO API credentials (login/password or base64 token), but the skill metadata declares no required env vars/primary credential. The credential requirement is proportional to the stated purpose, but the metadata omission reduces transparency. Also, credentials are stored in plaintext JSON under ~/.config by default — verify file permissions and consider using secure storage if available.
Persistence & Privilege
The skill does not request permanent 'always' inclusion. It writes its own config and cache under ~/.config/dataforseo-cli/, which is expected for a CLI tool. Default autonomous invocation is allowed (platform default) but not combined here with unusual privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dataforseo-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dataforseo-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.7
No file changes detected between versions 1.0.6 and 1.0.7. - No updates or modifications present in this release. - Functionality and documentation remain unchanged from the previous version.
v1.0.6
- Added new status command: check if credentials are configured without making API calls. - Updated setup instructions to recommend using dataforseo-cli status before authenticating. - Minor clarifications about which commands require credentials.
v1.0.4
Removed unnecessary credential-printing instruction Added npm + GitHub provenance links at the top
v1.0.0
Initial release of dataforseo-cli. - LLM-friendly CLI for keyword research using the DataForSEO API. - Commands for checking keyword volume, finding related keywords, competitor keyword analysis, and listing location/language codes. - Outputs in TSV (optimized for compactness in agent pipelines), with JSON and table formats available. - Supports API credential management and local caching to reduce duplicate requests. - Includes offline location and language code lookup.
元数据
Slug dataforseo-cli
版本 1.0.7
许可证
累计安装 0
当前安装数 0
历史版本数 4
常见问题

dataforseo-cli 是什么?

LLM-friendly keyword research CLI for AI agents. Check search volume, CPC, keyword difficulty, and competition via DataForSEO API. Find related keywords, ana... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 750 次。

如何安装 dataforseo-cli?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dataforseo-cli」即可一键安装,无需额外配置。

dataforseo-cli 是免费的吗?

是的,dataforseo-cli 完全免费(开源免费),可自由下载、安装和使用。

dataforseo-cli 支持哪些平台?

dataforseo-cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 dataforseo-cli?

由 alexgusevski(@alexgusevski)开发并维护,当前版本 v1.0.7。

💬 留言讨论