# Create ideas

URL: https://docs.hanzo.ai/docs/openapi/seo/seoidea

> Grows a seed phrase into the phrases nobody named yet.

`POST /v1/seo/ideas`

> [SEO →](https://docs.hanzo.ai/docs/openapi/seo) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                        |
| ------------- | -------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/seo/ideas`    |
| **Method**    | `POST`                                 |
| **Operation** | `seoIdea`                              |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY` |

Grows a seed phrase into the phrases nobody named yet.

It takes phrases you have and returns phrases in the same category that you do
not — relevant rather than merely containing the seed — each with its search
volume, click cost, competition and how hard its first page is to reach. This is
where a keyword list comes FROM; seoKeyword is where a list you already have gets
measured.

It is priced per row, so Limit is the knob that decides what the call costs.
Total says how many more there were.

## Request

4 fields, body `application/json` (required).

| Field      | In   | Type            | Required | Description                                             |
| ---------- | ---- | --------------- | -------- | ------------------------------------------------------- |
| `keywords` | body | string\[]       | —        | Keywords are the seeds.                                 |
| `language` | body | string          | —        | Language is the ISO code.                               |
| `limit`    | body | integer (int64) | —        | Limit is how many phrases to return, 1 to 1000.         |
| `location` | body | integer (int64) | —        | Location is the market, as the upstream's numeric code. |

## Response

| Status    | Body            | Meaning |
| --------- | --------------- | ------- |
| `200`     | seo.seoIdeaOut  | ok      |
| `default` | problem-details | refused |

`200` body — 9 fields.

| Field                    | In   | Type             | Always | Description                                                                                                                 |
| ------------------------ | ---- | ---------------- | ------ | --------------------------------------------------------------------------------------------------------------------------- |
| `cost`                   | body | string           | —      | Cost is what this call cost, in USD, as an exact decimal string.                                                            |
| `keywords`               | body | seo.seoMetric\[] | —      | Keywords is the phrases found, each measured.                                                                               |
| `keywords[].competition` | body | number (double)  | —      | Competition is how contested the advertising is, from 0 to 1.                                                               |
| `keywords[].cpc`         | body | number (double)  | —      | CPC is the average cost of one advertising click, in USD.                                                                   |
| `keywords[].difficulty`  | body | integer (int64)  | —      | Difficulty is how hard the first page is to reach organically, 0 to 100.                                                    |
| `keywords[].keyword`     | body | string           | —      | Keyword is the phrase.                                                                                                      |
| `keywords[].level`       | body | string           | —      | Level is the same fact as a word: low, medium or high.                                                                      |
| `keywords[].volume`      | body | integer (int64)  | —      | Volume is the average monthly searches.                                                                                     |
| `total`                  | body | integer (int64)  | —      | Total is how many the upstream holds, which is usually more than Limit returned — it is what raising the limit would reach. |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

```bash
hanzo seo ideas
```

**SDK**

**.ts**

```ts
import { Configuration, SeoApi } from 'hanzoai';

const api = new SeoApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.seoIdea({ keywords: ["<keywords>"], language: "<language>" });
```

**.py**

```python
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import SeoApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = SeoApi(client).seo_idea(keywords=["<keywords>"], language="<language>")
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.SeoAPI.SeoIdea(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::apis::{configuration::Configuration, seo_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = seo_api::seo_idea(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.SeoApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new SeoApi(client).seoIdea();
```

**HTTP**

```bash
curl -X POST https://api.hanzo.ai/v1/seo/ideas \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "keywords": [
         "<keywords>"
       ],
       "language": "<language>"
     }'
```

**MCP**

Tool `seo`, op `seoIdea` — POST the JSON-RPC envelope to `https://api.hanzo.ai/v1/mcp`.

```bash
curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "seo",
         "arguments": {
           "op": "seoIdea",
           "input": {
             "keywords": [
               "<keywords>"
             ],
             "language": "<language>"
           }
         }
       }
     }'
```

---

[SEO API](https://docs.hanzo.ai/docs/openapi/seo) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
