> ## Documentation Index
> Fetch the complete documentation index at: https://slatehq.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Keyword Ideas

> Discover keyword ideas — matching terms, related terms, or search suggestions — from a seed keyword using Ahrefs.

## Overview

The Keyword Ideas block expands a seed keyword into a list of related keyword ideas from Ahrefs. Choose between matching terms, related terms, or search suggestions to find new topics and long-tail variations. Use it early in keyword research to build a wider list before scoring keywords.

***

## Configuration

### Seed Keyword(s) (Required)

The seed keyword or keywords used to generate ideas. Enter one keyword, or several separated by commas.

**Example:**

```
ai seo
```

You can reference placeholders from previous steps: `{{step_1.output}}`

***

### Idea Type

The type of keyword ideas to fetch.

**Default:** Matching Terms

**Options:**

| Value | Description |
| - | - |
| **Matching Terms** | Keywords that contain your seed keyword. |
| **Related Terms** | Keywords that share results with your seed keyword. |
| **Search Suggestions** | Autocomplete-style suggestions for your seed keyword. |

***

### Country

The country database used for the ideas.

**Default:** `us`

**Common values:** `us`, `uk`, `ca`, `de`, `fr`, `es`, `it`, `br`, `au`, `in`, `jp`. The Country dropdown lists 250 country options.

***

### Limit

The maximum number of keyword ideas to return.

**Default:** `10`

**Range:** 1–1000

**Example:** `50`

***

### Output Format

Controls how the block returns data to the next step.

**Default:** Text (Human Readable)

**Options:**

| Value | Description |
| - | - |
| **Text (Human Readable)** | Returns the ideas as readable markdown text. |
| **JSON (Raw)** | Returns the raw Ahrefs response. Best when later steps read specific fields. |

***

## Error Handling

Define what happens if the block fails to retrieve data.

**Options:**

1. **Terminate workflow**: Stop execution immediately.
2. **Continue execution**: Proceed to the next step despite the error.
3. **Retry**: Run the block again until it succeeds, up to the **Number of retries** you choose (1–5). If every retry fails, the workflow stops at this block.

***

## Output Data

With **JSON (Raw)** output, the block returns a list of keyword idea objects with these fields.

### keyword

The keyword idea.

**Example:** `"ai seo tools"`

### volume

Monthly search volume for the keyword.

**Example:** `8100`

### difficulty

Keyword Difficulty score from 0–100.

**Example:** `34`

### parent\_topic

The broader topic the keyword belongs to.

**Example:** `"ai seo"`

### traffic\_potential

Estimated monthly organic traffic for the top-ranking page.

**Example:** `15000`

### intents

Search intent signals for the keyword.

**Example:** `["informational", "commercial"]`

With **Text (Human Readable)** output, the block returns the same data as readable markdown text instead of JSON.

***

## Sample Output

```json theme={null}
[
  {
    "keyword": "ai seo tools",
    "volume": 8100,
    "difficulty": 34,
    "parent_topic": "ai seo",
    "traffic_potential": 15000,
    "intents": ["informational", "commercial"]
  },
  {
    "keyword": "ai seo software",
    "volume": 2400,
    "difficulty": 29,
    "parent_topic": "ai seo",
    "traffic_potential": 5200,
    "intents": ["commercial"]
  }
]
```

***

## Best Practices

* Start with a broad seed keyword, then narrow with Matching Terms.
* Use Related Terms to find topics you might miss with exact matches.
* Raise the Limit when you want a larger pool to filter later.
* Use JSON output when a later step scores or filters the ideas.
* Feed Text output into an LLM block to cluster ideas into topics.
* Run several idea types and combine the results for full coverage.

***

## Common Use Cases

| Use Case | Configuration | Next Steps |
| - | - | - |
| Topic discovery | Broad seed, Related Terms | Cluster into content topics |
| Long-tail research | Seed, Matching Terms | Score with Keyword Metrics |
| Content gap fill | Seed, Search Suggestions | Draft new article topics |
| Building a keyword list | Higher limit | Save to a sheet |

***

## What's Next

* Score ideas with [Keyword Metrics](https://slatehq.com/docs/workflows/blocks/ahrefs/keyword-metrics.md)
* See what a domain ranks for in [URL Organic Keywords](https://slatehq.com/docs/workflows/blocks/ahrefs/url-organic-keywords.md)
* Cluster ideas with the [LLM Block](https://slatehq.com/docs/workflows/blocks/ai/llm.md)
* Process each idea with the [Loop Block](https://slatehq.com/docs/workflows/blocks/flow/loop.md)
* Save results in [Google Sheets](https://slatehq.com/docs/workflows/blocks/apps/google-sheets.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.