# SERP 競合

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/dataforseo_labs/google/serp_competitors/live`

**Tags:** DataForSEO

同じ `keywords` 群で一緒にランクインしているドメインと、共有するキーワードの数。`se_type`、`seed_keywords`、`total_count`、`items_count`、`items` を返します。DataForSEO のエンベロープに包まれます。データは `tasks[0].result`、結果は `tasks[0].status_code` に格納され、拒否されたリクエストでも HTTP 200 が返ります。⚠️ これらは**検索**の競合で、共通のランキングによって決まります。リンクグラフでの対応は `post_dataforseo_backlinks_competitors_live` で、2 つのリストはしばしば一致しません。それ自体が有用な情報です。

### 料金の参考情報

- 計測方法：報告されたレスポンスコスト。
- 参考リクエスト見積もり：0.0192 USD。
- 参照用の顧客乗数：1.0。確定済みの顧客金額に再適用しないでください。

参照用のメタデータのみであり、アカウントへの見積もり、保証された価格、支出上限ではありません。リソースクレジットは Felo クレジットではありません。最終的な請求は Felo の請求記録に従います。

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "<em>キーワード配列</em><br><strong>必須フィールド</strong><br>結果はこの配列で指定したキーワードに基づきます<br>UTF-8 エンコーディング<br>キーワードは小文字形式に変換されます<br><strong>指定できるキーワードは最大 200 個です</strong><p>DataForSEO API の <code>keyword</code> フィールドと <code>keywords</code> フィールドのルールと制限については、こちらの <a href=\"https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis\" rel=\"noopener noreferrer\" target=\"_blank\">ヘルプセンター記事</a>を参照してください"
          },
          "location_name": {
            "type": "string",
            "description": "<em>ロケーションの正式名称</em><br><strong><code>location_code</code> を指定しない場合は必須フィールド</strong><br><strong>注意：</strong><code>location_name</code> または <code>location_code</code> のいずれかを指定する必要があります<br>別途 <br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code> にリクエストを送信すると、利用可能なロケーションとその <code>location_name</code> パラメーターの一覧を取得できます<br>例：<br><code class=\"long-string\">United Kingdom</code>"
          },
          "location_code": {
            "type": "integer",
            "description": "<em>ロケーションの一意の識別子</em><br><strong><code>location_name</code> を指定しない場合は必須フィールド</strong><br><strong>注意：</strong><code>location_name</code> または <code>location_code</code> のいずれかを指定する必要があります<br>別途 <br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code> にリクエストを送信すると、利用可能なロケーションとその <code>location_code</code> パラメーターの一覧を取得できます<br>例：<br><code class=\"long-string\">2840</code>"
          },
          "language_name": {
            "type": "string",
            "description": "<em>言語の正式名称</em><br><strong><code>language_code</code> を指定しない場合は必須フィールド</strong><br><strong>注意：</strong><code>language_name</code> または <code>language_code</code> のいずれかを指定する必要があります<br>別途 <br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code> にリクエストを送信すると、利用可能な言語とその <code>language_name</code> パラメーターの一覧を取得できます<br>例：<br><code class=\"long-string\">English</code>"
          },
          "language_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>言語の一意の識別子</em><br><strong><code>language_name</code> を指定しない場合は必須フィールド</strong><br><strong>注意：</strong><code>language_name</code> または <code>language_code</code> のいずれかを指定する必要があります<br>別途 <br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code> にリクエストを送信すると、利用可能な言語とその <code>language_code</code> パラメーターの一覧を取得できます<br>例：<br><code class=\"long-string\">en</code>"
          },
          "include_subdomains": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>サブドメインを検索に含めるかどうかを示します</em><br>任意フィールド<br><code>false</code> に設定すると、サブドメインは無視されます<br>デフォルト値：<code>true</code>"
          },
          "item_types": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>検索結果タイプ</em><br>レスポンスに含める検索結果のタイプを示します<br>任意フィールド<p>指定可能な値： <br><code>[\"organic\", \"paid\", \"featured_snippet\", \"local_pack\"]</code><br>デフォルト値： <br><code>[\"organic\", \"paid\"]</code>"
          },
          "limit": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>返されるドメインの最大数</em><br>任意フィールド<br>デフォルト値: <code>100</code><br>最大値: <code>1000</code>"
          },
          "offset": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>返されるドメインの結果配列内のオフセット</em><br>任意フィールド<br>デフォルト値：<code>0</code><br><code>10</code> を指定すると、結果配列の最初の 10 件のドメインがスキップされ、後続のドメインのデータが返されます"
          },
          "filters": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": [
                "object",
                "null"
              ]
            },
            "description": "<em>結果フィルターパラメーターの配列</em><br>任意フィールド<br><strong>複数のフィルターを同時に追加できます（最大 8 個）</strong><br>条件の間には論理演算子 <code>and</code>、<code>or</code> を設定してください<br>次の演算子がサポートされています：<br><code>regex</code>、<code>not_regex</code>、<code>&lt;</code>、<code>&lt;=</code>、<code>&gt;</code>、<code>&gt;=</code>、<code>=</code>、<code>&lt;&gt;</code>、<code>in</code>、<code>not_in</code>、<code>match</code>、<code>not_match</code>、<code>ilike</code>、<code>not_ilike</code>、<code>like</code>、<code>not_like</code><br><code>like</code> と <code>not_like</code>、および <code>ilike</code> と <code>not_ilike</code> で <code>%</code> 演算子を使用すると、0 文字以上の任意の文字列に一致させられます<br>例：<br><code>[\"median_position\",\"in\",[1,10]]</code><p><code>[[\"median_position\",\"in\",[1,10]],\"and\",[\"domain\",\"not_like\",\"%wikipedia.org%\"]]</code><p><code>[[\"domain\",\"not_like\",\"%wikipedia.org%\"],<br>\"and\",<br>[[\"relevant_serp_items\",\"&gt;\",0],\"or\",[\"median_position\",\"in\",[1,10]]]]</code><br>フィルターの詳細については、<a href=\"/v3/dataforseo_labs/filters\" target=\"_blank\" rel=\"noopener noreferrer\">Dataforseo Labs - Filters</a> またはこちらの <a href=\"https://dataforseo.com/help-center/how-to-use-filters-in-dataforseo-labs-api\" rel=\"noopener noreferrer\" target=\"_blank\">ヘルプセンターガイド</a>を参照してください"
          },
          "order_by": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>結果の並べ替えルール</em><br>任意フィールド<br><code>filters</code> 配列と同じ値を使用して結果を並べ替えられます<br>指定可能な並べ替えの種類：<br><code>asc</code> - 結果は昇順で並べ替えられます<br><code>desc</code> - 結果は降順で並べ替えられます<br>区切り文字にはカンマを使用します<br>例：<br><code>[\"avg_position,asc\"]</code><br>デフォルトのルール：<br><code>[\"rating,desc\"]</code><br><strong>1 回のリクエストで設定できる並べ替えルールは 3 つまでです</strong><br>複数の並べ替えルールはカンマで区切ってください<br>例：<br><code>[\"avg_position,asc\",\"etv,desc\"]</code>"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>ユーザー定義のタスク識別子</em><br>任意フィールド<br><em>文字数上限は 255 です</em><br>このパラメーターを使ってタスクを識別し、結果と照合できます<br>指定した <code>tag</code> の値は、レスポンスの <code>data</code> オブジェクトに含まれます"
          }
        },
        "example": [
          {
            "keywords": [
              "phone"
            ],
            "language_name": "English",
            "location_code": 2840,
            "item_types": [
              "organic"
            ],
            "limit": 5
          }
        ]
      }
    ]
  },
  "example": [
    {
      "keywords": [
        "phone"
      ],
      "language_name": "English",
      "location_code": 2840,
      "item_types": [
        "organic"
      ],
      "limit": 5
    }
  ]
}
```

## Responses

### 200 — 操作成功

Headers:
- `X-Request-Id` (string) — Felo サポートに問い合わせる際に伝えるリクエスト識別子。

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSerpCompetitorsLiveResponseInfo"
    }
  ]
}
```

### 400 — リクエストを処理できませんでした。リクエストパラメータを確認してください。

### 401 — 有効な Felo API キーが必要です。

### 402 — 請求要件が満たされていないため、リクエストを続行できません。

### 403 — このアカウントにはこの操作を行う権限がありません。

### 429 — リクエストまたは支出の上限に達しました。

### 502 — サービスがリクエストを完了できませんでした。

### 503 — API または請求サービスが一時的に利用できません。

### 504 — リクエストの処理中にサービスがタイムアウトしました。

### default — エラーレスポンス。上流のパススルーレスポンスはプロバイダーの形式を使用する場合があります

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "API の現在のバージョン"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "一般的なステータスコード\nレスポンスコードの完全な一覧はこちらです"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "一般的な情報メッセージ\n一般的な情報メッセージの完全な一覧はこちらです"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "合計実行時間（秒）"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "タスクの総コスト（USD）",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "tasks 配列内のタスク数",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "エラーで返された tasks 配列内のタスク数",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "タスク識別子\n当社システム内で UUID 形式の一意のタスク識別子"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "タスクのステータスコード\nDataForSEO によって生成され、次の範囲の値になります: 10000-60000\nレスポンスコードの完全な一覧はこちらです"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "タスクの情報メッセージ\n一般的な情報メッセージの完全な一覧はこちらです"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "実行時間（秒）"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "タスクの総コスト（USD）",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "result 配列内の要素数",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "URL パス"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "POST リクエストで指定したものと同じパラメーターを含みます"
    }
  }
}
```

### Response36Afe1097B20_DataforseoLabsGoogleSerpCompetitorsLiveItem

`#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSerpCompetitorsLiveItem`

```json
{
  "type": "object",
  "properties": {
    "se_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>検索エンジンの種類</em>"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>検出された SERP 競合他社のドメイン名</em>"
    },
    "avg_position": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>指定したキーワードに対するドメインの平均位置</em><br><code>keywords_positions</code> 配列内の値の算術平均",
      "format": "float"
    },
    "median_position": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>指定したキーワードに対するドメインの中央値位置</em><br><code>keywords_positions</code> 配列内の値の中央値"
    },
    "rating": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>可能な最大キーワード位置と実際のキーワード位置の差</em><br>指定したキーワードについての SERP におけるドメインの相対可視性を表します<br><em>sum(100-<code>keywords_positions</code>)</em> として算出されます"
    },
    "etv": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>推定トラフィック量</em><br>指定したキーワードがウェブサイトにもたらす推定月間トラフィックを表します<br>指定したキーワードの検索ボリューム値と、SERP の特定位置における CTR（クリック率）の積の合計として算出されます<br>指標の計算方法の詳細については、<a href=\"https://dataforseo.com/help-center/how-is-etv-calculated\" rel=\"noopener noreferrer\" target=\"_blank\">このヘルプセンター記事</a>をご覧ください"
    },
    "keywords_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>ドメインが SERP で位置を持つ指定キーワードの数</em>",
      "format": "int64"
    },
    "visibility": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>SERP 可視性</em><br>指定したキーワードの SERP 位置に基づくウェブサイトの可視性を表します<br><strong>1 から 10</strong> の範囲の位置のキーワードには、可視性指数がそれぞれ 1 から 0.1 に割り当てられます<br><strong>11 から 20</strong> の範囲の位置のキーワードには、可視性指数 0.05 が固定で割り当てられます<br><strong>20 から 100</strong> の位置のキーワードの可視性指数は 0 になります"
    },
    "relevant_serp_items": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>ドメインに関連する SERP 要素の数</em><br>指定したキーワードについてドメインに関連する SERP 内の検索結果の数を表します"
    },
    "keywords_positions": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "array",
          "null"
        ],
        "items": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "description": "<em>キーワード位置</em><br>関連ドメインが指定したキーワードについて SERP で保持している位置"
    }
  }
}
```

### Response36Afe1097B20_DataforseoLabsGoogleSerpCompetitorsLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSerpCompetitorsLiveResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSerpCompetitorsLiveTaskInfo"
              }
            ]
          },
          "description": "<em>タスクの配列</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_DataforseoLabsGoogleSerpCompetitorsLiveResultInfo

`#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSerpCompetitorsLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "se_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>検索エンジンの種類</em>"
    },
    "seed_keywords": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>リクエストで指定したキーワード</em><br><strong>キーワードはデコードされた %## で返されます（記号 '+' はスペース文字にデコードされます）</strong>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>POST 配列内のロケーションコード</em><br>データがない場合、値は <code>null</code> になります"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>POST 配列内の言語コード</em><br>データがない場合、値は <code>null</code> になります"
    },
    "total_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>当社データベース内のリクエストに関連する結果の総量</em>",
      "format": "int64"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em><code>items</code> 配列で返される結果の数</em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSerpCompetitorsLiveItem"
          }
        ]
      },
      "description": "<em>検出された SERP 競合他社と関連データを含みます</em>"
    }
  }
}
```

### Response36Afe1097B20_DataforseoLabsGoogleSerpCompetitorsLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSerpCompetitorsLiveTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSerpCompetitorsLiveResultInfo"
              }
            ]
          },
          "description": "<em>結果の配列</em>"
        }
      }
    }
  ]
}
```
