Find organic competitors and export a competitor keyword gap list
To find high-intent keywords that organic competitors already rank for while your site does not, identify true commercial competitors with POST /v1/seo/competitors, pull bounded slices of their POST /v1/seo/ranked-keywords, and diff those terms locally against your own site’s ranked keywords.
Prerequisites and cost scope
- Inputs: Your own
domain(full URLs are normalized automatically), one targetcountry+language, and an optional topic word forcontains. - Cost control: Both
competitorsandranked-keywordsbill$0.018per call plus$0.0003per returned row. Pulling 20 competitors (~$0.024) plus 100 ranked keywords for 2 shortlisted competitors (~$0.096) stays under$0.15total. See BeatAPI pricing.
1. Find real organic competitors in your market
With BeatAPI MCP connected in Claude Code or Cursor, you can delegate the full gap analysis in one prompt:
Run BeatAPI
data:seo.competitorsforyourdomain.com(country: "us",language: "en",limit: 20), shortlist 2 direct product competitors, and pull 50data:seo.ranked_keywordsfor each plusyourdomain.com. Output a CSV of keywords where a competitor ranksposition <= 20and we are missing or below 20, keepingposition_seen_atand totalusage.price_usd.
To run step 1 over HTTP (limit supports 1–999; general mega-sites like youtube.com and wikipedia.org are excluded automatically):
Shortlist 2–3 direct product competitors based on shared_keywords, avg_position, and search_traffic_estimate. Skip broad news or directory domains even if they share many informational queries.
2. Pull bounded ranked keywords for each competitor
Call POST https://api.beatapi.io/v1/seo/ranked-keywords for each shortlisted competitor. Use contains (plain text only—no % or _) when you want to audit one product line first:
Save keyword, position, absolute_position, url, title, search_volume, keyword_difficulty, intent, search_traffic_estimate, and position_seen_at. Paginate with offset: 50, 100, etc. only while rows remain relevant.
Example cost breakdown
3. Diff locally against your own site
Run one matching POST /v1/seo/ranked-keywords query for yourdomain.com in the same country and language (with the same contains filter if used). Locally in Python or a spreadsheet:
- Lowercase
keywordand deduplicate by(domain, keyword). - Flag terms where the competitor ranks in positions
1–20(position <= 20) and your domain is absent or ranks below position20. - Keep
position_seen_aton every row—rankings are recorded snapshots, not live SERPs.
4. Deliver the keyword gap table
Export a CSV with keyword, competitor_domain, competitor_position, competitor_url, your_position (blank if absent), search_volume, keyword_difficulty, intent, and position_seen_at, plus a footer recording total billed_rows and usage.price_usd.

