analyze keyword
Usage
seo-ops analyze keyword <keyword> [--output=json|table] [--path=<path>] [--mock]
Analyze a keyword using the SpyFu API. Supports mock mode for testing without API access.
Examples
Default Table Output
seo-ops analyze keyword "best accounting software"
Output:
Keyword: best accounting software
Search Volume: 2,400/mo
Keyword Difficulty: 62/100 (hard)
Intent: commercial
CPC: $5.40
Organic Click %: 34%
SERP Features: featured_snippet, video
GOS: 48/100
Top Competitors:
quickbooks.intuit.com (68/100)
xero.com (55/100)
freshbooks.com (42/100)
Related Keywords:
best accounting software for small business (1,900/mo)
best accounting software 2025 (890/mo)
best free accounting software (3,200/mo)
JSON Output
seo-ops analyze keyword "seo guide" --output=json
Output:
{
"keyword": "seo guide",
"search_volume": 3600,
"difficulty": 45,
"intent": "informational",
"cpc": 3.20,
"organic_click_pct": 28,
"gos": 62,
"competitors": [
{"domain": "moz.com", "score": 72},
{"domain": "backlinko.com", "score": 65},
{"domain": "searchengineland.com", "score": 58}
],
"related_keywords": [
{"keyword": "seo guide for beginners", "volume": 1400},
{"keyword": "technical seo guide", "volume": 900}
]
}
Mock Mode (No API Key Required)
seo-ops analyze keyword "test keyword" --mock
Output:
[MOCK] Keyword analysis for: test keyword
Search Volume: 1,000/mo (mock)
Keyword Difficulty: 35/100 (mock)
Intent: informational (mock)
GOS: 50/100 (mock)
Output Fields
| Field | Description |
|---|---|
| Search Volume | Monthly search volume |
| Keyword Difficulty | 0-100 difficulty score |
| Intent | Commercial, informational, etc. |
| CPC | Cost per click |
| Organic Click % | Organic click-through rate |
| SERP Features | Featured snippets, PAAs, videos |
| Top Competitors | Competing domains with scores |
| Related Keywords | Related keyword suggestions |
| GOS | Golden Opportunity Score (0-100) |