> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.beatapi.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.beatapi.io/_mcp/server.

# Build a keyword research sheet with volume, difficulty, and monthly trends

> Expand 1–20 seed terms with POST /v1/seo/keyword-ideas, shortlist locally, fetch monthly_searches via POST /v1/seo/keyword-overview, and export a sortable CSV with spend tracking.

When you start from a handful of topic ideas and need an editorial backlog without paying for a monthly SEO suite, expand your seed terms with `POST /v1/seo/keyword-ideas`, cut irrelevant queries locally, and run one `POST /v1/seo/keyword-overview` batch on the shortlist to attach `monthly_searches` before exporting a CSV.

## Prerequisites and cost scope

* **Inputs:** 1–20 seed keywords (up to 80 characters each), one target `country` (such as `us`), and one `language` (such as `en`). China (`cn`) is not supported.
* **Cost control:** Both `keyword-ideas` and `keyword-overview` bill `$0.018` per call plus `$0.0003` per returned row. Starting with `limit: 50` on `keyword-ideas` costs at most `$0.033` before you commit to full monthly history. See [BeatAPI pricing](https://beatapi.io/pricing).

## 1. Expand seed keywords with a bounded limit

If you are using Claude Code or Cursor with [BeatAPI MCP](https://beatapi.io/integrations) connected, you can hand the whole workflow to your agent first:

> Use BeatAPI `data:seo.keyword_ideas` (`country: "us"`, `language: "en"`, `limit: 50`) for `["redis cluster", "redis sentinel", "redis failover"]`. Filter out off-topic terms, then pass the top 25 keywords to `data:seo.keyword_overview` for `monthly_searches`. Export a CSV leaving missing volumes blank, and report total `billed_rows` and `usage.price_usd`.

To run it directly over HTTP, send 1–20 seed terms to `POST https://api.beatapi.io/v1/seo/keyword-ideas` with BeatAPI Bearer authentication and an `Idempotency-Key` header:

```bash
curl -sS https://api.beatapi.io/v1/seo/keyword-ideas \
  -H "Authorization: Bearer $BEATAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: seo-ideas-redis-2026-11-23-p0" \
  -d '{"keywords":["redis cluster","redis sentinel","redis failover"],"country":"us","language":"en","limit":50,"offset":0}' \
  -o keyword-ideas-p0.json
```

Save the raw JSON alongside `request_id`, `billed_rows`, and `usage.price_usd`. If you need more candidates, increment `offset` by `limit` (for example `offset: 50`) while `results` stays relevant; stop as soon as queries drift off-topic.

## 2. Shortlist locally before pulling monthly history

Review `keyword`, `search_volume`, `keyword_difficulty`, `cpc_usd`, and `intent` locally:

* Remove branded terms you do not target and duplicate intents.
* Leave missing `search_volume` or `keyword_difficulty` fields blank—never fill missing values with `0`.
* Keep up to 100 shortlisted terms per batch for the next call.

## 3. Fetch monthly seasonality for the shortlist

Send your shortlisted terms (1–100 keywords per call, automatically lowercased and deduplicated) to `POST https://api.beatapi.io/v1/seo/keyword-overview`:

```json
{
  "keywords": [
    "redis cluster setup",
    "redis sentinel vs cluster",
    "redis automatic failover"
  ],
  "country": "us",
  "language": "en"
}
```

Each returned row adds `monthly_searches[]` (`year`, `month`, `search_volume`) and `updated_at`:

```json
{
  "object": "seo.keyword_overview",
  "request_id": "task_xxx",
  "results": [
    {
      "keyword": "redis cluster setup",
      "search_volume": 590,
      "cpc_usd": 15.62,
      "keyword_difficulty": 15,
      "intent": "informational",
      "monthly_searches": [{ "year": 2026, "month": 9, "search_volume": 590 }]
    }
  ],
  "billed_rows": 25,
  "usage": { "price_usd": "0.0255" }
}
```

## Example cost breakdown

| Step                  | Endpoint                        | Example volume              | Cost          |
| --------------------- | ------------------------------- | --------------------------- | ------------- |
| Expand 3 seed terms   | `POST /v1/seo/keyword-ideas`    | 1 call, 50 rows             | `$0.0330`     |
| Pull 12-month history | `POST /v1/seo/keyword-overview` | 1 call, 25 shortlisted rows | `$0.0255`     |
| **Total**             | **2 calls**                     | **75 billed rows**          | **`$0.0585`** |

Rejected (`400`) and failed (`503`) calls cost `$0`.

## 4. Export the editorial CSV and log spend

Write one UTF-8 CSV row per keyword with these columns:

| Column               | Source field                      | Notes                                                 |
| -------------------- | --------------------------------- | ----------------------------------------------------- |
| `keyword`            | `keyword`                         | Lowercased term                                       |
| `intent`             | `intent`                          | e.g. `informational`, `commercial`                    |
| `search_volume`      | `search_volume`                   | Blank if omitted (unknown, not zero)                  |
| `keyword_difficulty` | `keyword_difficulty`              | BeatAPI 0–100 scale only; do not mix with other tools |
| `cpc_usd`            | `cpc_usd`                         | Paid search reference                                 |
| `trend_3m`           | Derived from `monthly_searches[]` | Compare latest 3 months vs prior 3 months             |
| `updated_at`         | `updated_at`                      | Refresh timestamp                                     |

If any call returns `503`, retry with backoff; `400` and `503` cost nothing. If a downstream step fails after a `200`, recover the response with `GET /v1/tasks/{request_id}` instead of paying twice.

## Related

* [BeatAPI SEO Data API](https://beatapi.io/seo)
* [SEO API reference](/seo)
* [Keyword ideas & difficulty FAQ](/faq/seo-keyword-ideas)
* [Row billing FAQ](/faq/seo-row-billing)