# ライブ Google My Business 質問と回答タスクを設定

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/business_data/google/questions_and_answers/live`

**Tags:** DataForSEO

Google Business Profile 上の質問と回答を、`keyword` と `location_code` で検索します。`keyword`、`se_domain`、`location_code`、`language_code`、`check_url`、`datetime`、`cid`、`feature_id`、`item_types` を返します。DataForSEO のエンベロープ構造です。データは `tasks[0].result`、結果ステータスは `tasks[0].status_code` に格納され、拒否されたリクエストでも HTTP 200 が返ります。

### 料金の参考情報

- 計量方式：レスポンスで報告されるコスト。
- 参考リクエスト見積もり：0.2428 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": {
          "keyword": {
            "type": "string",
            "description": "<em>キーワード</em><br><strong>必須フィールド</strong><br>指定するキーワードはローカルビジネスの名前を示す必要があります<br><code>keyword</code> フィールドには<strong>最大 700 文字</strong>まで指定できます<br><strong>すべての %## はデコードされます（また、文字 ‘+’ はスペースにデコードされます）</strong><br><code>keyword</code> に “%” 文字を使用する場合は “%25” と指定してください； <p>このフィールドは次のパラメータを渡すためにも使用できます：<br><code>cid</code> - ビジネスエンティティの Google 定義の一意の ID；<br><code>place_id</code> - Google Maps 内のビジネスエンティティの識別子<p>例：<br><code>cid:194604053573767737</code><br><code>place_id:GhIJQWDl0CIeQUARxks3icF8U8A</code><p><code>cid</code> と <code>place_id</code> の識別子の詳細については、<a href=\"https://dataforseo.com/help-center/what-is-cid-place-id-feature-id\" rel=\"noopener noreferrer\" target=\"_blank\">こちらのヘルプセンター記事</a>をご覧ください<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> または <code>location_coordinate</code> を指定しない場合は必須フィールド</strong><br><strong>このフィールドを使用する場合、<code>location_code</code> または <code>location_coordinate</code> を指定する必要はありません</strong><br><code>location_name</code> を含む利用可能なロケーションの一覧は、<code>https://api.dataforseo.com/v3/business_data/google/locations</code> に個別にリクエストして取得できます<br>例：<br><code class=\"long-string\">London,England,United Kingdom</code>"
          },
          "location_code": {
            "type": "integer",
            "description": "<em>検索エンジンのロケーションコード</em><br><strong>必須フィールド</strong>（<code>location_name</code> または <code>location_coordinate</code> を指定しない場合）<br><strong>このフィールドを使用する場合、<code>location_name</code> または <code>location_coordinate</code> を指定する必要はありません</strong><br>別途 <code>https://api.dataforseo.com/v3/business_data/google/locations</code> にリクエストを送信すると、<code>location_code</code> を含む利用可能なロケーションの一覧を取得できます<br>例:<br><code class=\"long-string\">2840</code>"
          },
          "location_coordinate": {
            "type": "string",
            "description": "<em>ロケーションの GPS 座標</em><br><strong><code>location_name</code> または <code>location_code</code> を指定しない場合は必須フィールド</strong><br><strong>このフィールドを使用する場合、<code>location_name</code> または <code>location_code</code> を指定する必要はありません</strong><br><code>location_coordinate</code> パラメータは <em>\"latitude,longitude,radius\"</em> 形式で指定します<br><em>\"latitude\"</em> と <em>\"longitude\"</em> の小数点以下の最大桁数：7<br><em>\"radius\"</em> の最小値：199.9（mm）<br><em>\"radius\"</em> の最大値：199999（mm）<br>例：<br><code class=\"long-string\">53.476225,-2.243572,200</code>"
          },
          "language_name": {
            "type": "string",
            "description": "<em>検索エンジンの言語の正式名</em><br><strong><code>language_code</code> を指定しない場合は必須フィールド</strong><br><strong>このフィールドを使用する場合、<code>language_code</code> を指定する必要はありません</strong><br><code>language_name</code> を付した利用可能な言語のリストは、<code>https://api.dataforseo.com/v3/business_data/google/languages</code> に個別にリクエストして取得できます<br>例：<br><code class=\"long-string\">English</code>"
          },
          "language_code": {
            "type": "string",
            "description": "<em>検索エンジンの言語コード</em><br><strong><code>language_name</code> を指定しない場合は必須フィールド</strong><br><strong>このフィールドを使用する場合、<code>language_name</code> を指定する必要はありません</strong><br><code>language_code</code> を付した利用可能な言語のリストは、<code>https://api.dataforseo.com/v3/business_data/google/languages</code> に個別にリクエストして取得できます<em><br></em>例：<em><br></em><code class=\"long-string\">en</code>"
          },
          "depth": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>解析深度</em><br>任意フィールド<br>SERP 内の結果数<br>デフォルト値：<code>20</code><br>最大値：<code>100</code><br><strong>アカウントには、最大 20 件の結果を含む SERP ごとに課金されます；</strong> <br>検索エンジンが 20 件を超える結果を返した場合、深度を 20 より大きく設定すると追加料金が発生する可能性があります</a>；<br>指定した深度がレスポンス内の質問数より大きい場合、その差額はアカウント残高に自動的に返金されます；<br>コストは<a title=\"Pricing\" href=\"https://dataforseo.com/pricing/business-data/google-questions-and-answers-api-pricing\" target=\"_blank\" rel=\"noopener noreferrer\">料金ページ</a>で計算できます。"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>ユーザー定義のタスク識別子</em><br>任意フィールド<br><em>文字数上限は 255 です</em><br>このパラメーターを使ってタスクを識別し、結果と照合できます<br>指定した <code>tag</code> の値は、レスポンスの <code>data</code> オブジェクトに含まれます"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_name": "Los Angeles,California,United States",
            "keyword": "The Last Bookstore"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_name": "Los Angeles,California,United States",
      "keyword": "The Last Bookstore"
    }
  ]
}
```

## Responses

### 200 — 操作成功

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

**application/json**

Schema: object | null

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

### 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_BusinessDataGoogleQuestionsAndAnswersLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_BusinessDataGoogleQuestionsAndAnswersLiveResponseInfo`

```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_BusinessDataGoogleQuestionsAndAnswersLiveTaskInfo"
              }
            ]
          },
          "description": "<em>タスクの配列</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_BusinessDataGoogleQuestionsAndAnswersLiveResultInfo

`#/components/schemas/Response36Afe1097B20_BusinessDataGoogleQuestionsAndAnswersLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>POST 配列で受け取ったキーワード</em><br><strong>キーワードは %## がデコードされた状態で返されます（プラス記号「+」はスペースにデコードされます）</strong><br><code>cid</code> パラメータは、タスク設定時に <code>keyword</code> フィールドで指定した場合、このフィールドに含まれます；<br>例:<br><code>cid:2946633002421908862</code><br>パラメータの詳細については、<a href=\"https://dataforseo.com/help-center/what-is-cid-place-id-feature-id\" target=\"_blank\" rel=\"noopener noreferrer\">このヘルプセンター記事</a>をご覧ください"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>POST 配列で指定された検索エンジンのドメイン</em>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>POST 配列内のロケーションコード</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>POST 配列内の言語コード</em>"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>検索エンジン結果への直接 URL</em><br>正確な結果が提供されていることを確認するために使用できます"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>結果を受信した日時</em><br>UTC 形式：“yyyy-mm-dd hh-mm-ss +00:00”<br>例：<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "cid": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>Google 定義のクライアント ID</em><br>地域の施設の一意の ID；<br>識別子の詳細については、<a href=\"https://dataforseo.com/help-center/what-is-cid-place-id-feature-id\" target=\"_blank\" rel=\"noopener noreferrer\">このヘルプセンター記事</a>をご覧ください"
    },
    "feature_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em> SERP 機能の一意の識別子</em>"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>項目タイプ</em><br><code>items</code> 配列で検出された検索エンジン結果のタイプ；<br>可能な項目タイプ: <code>google_business_question_item</code>"
    },
    "items_without_answers": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_GoogleBusinessQuestionItem"
          }
        ]
      },
      "description": "<em>回答のない Google ビジネス質問項目の配列</em>"
    },
    "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_GoogleBusinessQuestionItem"
          }
        ]
      },
      "description": "<em>項目の配列</em><br><code>google_business_question_item</code> 内の項目"
    }
  }
}
```

### Response36Afe1097B20_BusinessDataGoogleQuestionsAndAnswersLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_BusinessDataGoogleQuestionsAndAnswersLiveTaskInfo`

```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_BusinessDataGoogleQuestionsAndAnswersLiveResultInfo"
              }
            ]
          },
          "description": "<em>結果の配列</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_GoogleBusinessAnswerElement

`#/components/schemas/Response36Afe1097B20_GoogleBusinessAnswerElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "要素の種類"
    },
    "answer_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>回答の ID</em>"
    },
    "profile_image_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ユーザーのプロフィール画像の URL</em>"
    },
    "profile_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ユーザーのプロフィールの URL</em>"
    },
    "profile_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ユーザーの表示名</em>"
    },
    "answer_text": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>回答の現在のテキスト</em>"
    },
    "original_answer_text": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>回答の元のテキスト</em>"
    },
    "time_ago": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>回答が投稿された推定時刻</em>"
    },
    "timestamp": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>回答が投稿された正確な時刻</em>"
    }
  }
}
```

### Response36Afe1097B20_GoogleBusinessQuestionItem

`#/components/schemas/Response36Afe1097B20_GoogleBusinessQuestionItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "要素の種類"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em><code>type</code> 値が同一の要素グループ内での位置</em><br><code>type</code> 値が異なる要素の位置は <code>rank_group</code> から除外されます"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>すべての要素の中での絶対ランク</em>"
    },
    "question_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>質問の ID</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>質問の URL</em>"
    },
    "profile_image_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ユーザーのプロフィール画像の URL</em>"
    },
    "profile_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ユーザーのプロフィールの URL</em>"
    },
    "profile_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ユーザーの表示名</em>"
    },
    "question_text": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>質問の現在のテキスト</em>"
    },
    "original_question_text": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>質問の元のテキスト</em>"
    },
    "time_ago": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>質問が投稿された推定時刻</em>"
    },
    "timestamp": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>質問が投稿された正確な時刻</em>"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_GoogleBusinessAnswerElement"
          }
        ]
      },
      "description": "<em>項目の配列</em><br><code>google_business_question_item</code> 内の項目"
    }
  }
}
```
