# Dataforseo Keyword Suggestions

Blocks for getting keyword suggestions with search volume and competition metrics from DataForSEO.

## Data For Seo Keyword Suggestions

### What it is

Get keyword suggestions from DataForSEO Labs Google API

### How it works

This block calls the DataForSEO Labs Google Keyword Suggestions API to generate keyword ideas based on a seed keyword. It provides search volume, competition metrics, CPC data, and keyword difficulty scores for each suggestion.

Configure location and language targeting to get region-specific results. Optional SERP and clickstream data provide additional insights into search behavior and click patterns.

### Inputs

| Input                      | Description                                      | Type | Required |
| -------------------------- | ------------------------------------------------ | ---- | -------- |
| keyword                    | Seed keyword to get suggestions for              | str  | Yes      |
| location\_code             | Location code for targeting (e.g., 2840 for USA) | int  | No       |
| language\_code             | Language code (e.g., 'en' for English)           | str  | No       |
| include\_seed\_keyword     | Include the seed keyword in results              | bool | No       |
| include\_serp\_info        | Include SERP information                         | bool | No       |
| include\_clickstream\_data | Include clickstream metrics                      | bool | No       |
| limit                      | Maximum number of results (up to 3000)           | int  | No       |

### Outputs

| Output        | Description                              | Type                     |
| ------------- | ---------------------------------------- | ------------------------ |
| error         | Error message if the operation failed    | str                      |
| suggestions   | List of keyword suggestions with metrics | List\[KeywordSuggestion] |
| suggestion    | A single keyword suggestion with metrics | KeywordSuggestion        |
| total\_count  | Total number of suggestions returned     | int                      |
| seed\_keyword | The seed keyword used for the query      | str                      |

### Possible use case

**Content Planning**: Generate blog post and article ideas based on keyword suggestions with high search volume.

**SEO Strategy**: Discover new keyword opportunities to target based on competition and difficulty metrics.

**PPC Campaigns**: Find keywords for advertising campaigns using CPC and competition data.

***

## Keyword Suggestion Extractor

### What it is

Extract individual fields from a KeywordSuggestion object

### How it works

This block extracts individual fields from a KeywordSuggestion object returned by the Keyword Suggestions block. It decomposes the suggestion into separate outputs for easier use in workflows.

Each field including keyword text, search volume, competition level, CPC, difficulty score, and optional SERP/clickstream data becomes available as individual outputs for downstream processing.

### Inputs

| Input      | Description                                          | Type              | Required |
| ---------- | ---------------------------------------------------- | ----------------- | -------- |
| suggestion | The keyword suggestion object to extract fields from | KeywordSuggestion | Yes      |

### Outputs

| Output              | Description                           | Type            |
| ------------------- | ------------------------------------- | --------------- |
| error               | Error message if the operation failed | str             |
| keyword             | The keyword suggestion                | str             |
| search\_volume      | Monthly search volume                 | int             |
| competition         | Competition level (0-1)               | float           |
| cpc                 | Cost per click in USD                 | float           |
| keyword\_difficulty | Keyword difficulty score              | int             |
| serp\_info          | data from SERP for each keyword       | Dict\[str, Any] |
| clickstream\_data   | Clickstream data metrics              | Dict\[str, Any] |

### Possible use case

**Keyword Filtering**: Extract search volume and difficulty to filter keywords meeting specific thresholds.

**Data Analysis**: Access individual metrics for comparison, sorting, or custom scoring algorithms.

**Report Generation**: Pull specific fields like CPC and competition for SEO or PPC reports.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://agpt.co/docs/integrations/block-integrations/keyword_suggestions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
