# Business Data Tripadvisor レビュータスクの設定

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/business_data/tripadvisor/reviews/task_post`

**Tags:** DataForSEO

1 つの施設の Tripadvisor レビューをキューに登録し、タスク `id` を返します。DataForSEO のエンベロープに包まれます。データは `tasks[0].result`、結果は `tasks[0].status_code` に格納され、拒否されたリクエストでも HTTP 200 が返ります。取得には `get_dataforseo_business_tripadvisor_reviews_fetch` を使用してください。Trustpilot の同等エンドポイントは `post_dataforseo_business_trustpilot_reviews_submit` です。

### 料金の参考情報

- 計量方式：レスポンスで報告されるコスト。
- 参考リクエスト見積もり：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": {
          "url_path": {
            "type": "string",
            "description": "<em>ビジネスエンティティの URL パス</em><br><strong><code>keyword</code> を指定しない場合は必須フィールド</strong><br>ビジネスエンティティの Tripadvisor ページへの URL パス；<br>例：<br><code>Hotel_Review-g60763-d23462501-Reviews-Margaritaville_Times_Square-New_York_City_New_York.html</code><br><code>https://www.tripadvisor.com/Hotel_Review-g60763-d23462501-Reviews-Margaritaville_Times_Square-New_York_City_New_York.html</code>"
          },
          "keyword": {
            "type": "string",
            "description": "<em>キーワード</em><br><strong><code>url_path</code> を指定しない場合は必須フィールド</strong><br>指定するキーワードは、Tripadvisor 上の既存のビジネスまたは著名な場所の名前を示す必要があります；<br><code>keyword</code> フィールドには最大 700 文字まで指定できます；<br>すべての %## はデコードされます（また、文字 ‘+’ はスペースにデコードされます）；<br><code>keyword</code> に “%” 文字を使用する場合は “%25” と指定してください"
          },
          "location_name": {
            "type": "string",
            "description": "<em>検索エンジンのロケーションの正式名</em><br><strong><code>location_code</code> または <code>url_path</code> を指定しない場合は必須フィールド</strong><br><code>location_name</code> を含む利用可能なロケーションの一覧は、<code>https://api.dataforseo.com/v3/business_data/tripadvisor/locations</code> に個別にリクエストして取得できます<br>例：<br><code class=\"long-string\">London,England,United Kingdom</code>"
          },
          "location_code": {
            "type": "integer",
            "description": "<em>検索エンジンのロケーションコード</em><br><strong><code>location_name</code> または <code>url_path</code> を指定しない場合は必須フィールド</strong><br><code>location_code</code> を含む利用可能なロケーションの一覧は、<code>https://api.dataforseo.com/v3/business_data/tripadvisor/locations</code> に個別にリクエストして取得できます<br>例：<br><code class=\"long-string\">1003854</code>"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>タスクの優先度</em><br>任意フィールド<br>次の値を指定できます：<br>1 – 通常の実行優先度（デフォルトで設定）<br>2 – 高い実行優先度。実行優先度の高いタスクには追加料金がかかります。<br>コストは<a title=\"Pricing\" href=\"https://dataforseo.com/pricing/business-data/business-data-api-tripadvisor-pricing\" target=\"_blank\" rel=\"noopener noreferrer\">料金ページ</a>で計算できます。"
          },
          "language_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>検索エンジンの言語の正式名</em><br>任意フィールド<br><strong>このフィールドを使用すると、アカウントに追加のリクエスト 1 回分の料金が発生します</strong><br><code>language_name</code> を付した利用可能な言語のリストは、<code>https://api.dataforseo.com/v3/business_data/tripadvisor/languages</code> に個別にリクエストして取得できます<br>例：<br><code class=\"long-string\">English</code><br>このエンドポイントで言語パラメータを設定すると、追加料金が発生します。<br>コストは<a title=\"Pricing\" href=\"https://dataforseo.com/pricing/business-data/business-data-api-tripadvisor-pricing\" target=\"_blank\" rel=\"noopener noreferrer\">料金ページ</a>で計算できます。"
          },
          "language_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>検索エンジンの言語コード</em><br>任意フィールド<br><strong>このフィールドを使用すると、アカウントに追加のリクエスト 1 回分の料金が発生します</strong><br><code>language_code</code> を付した利用可能な言語のリストは、<code>https://api.dataforseo.com/v3/business_data/tripadvisor/languages</code> に個別にリクエストして取得できます<br>例：<em><br></em><code class=\"long-string\">en</code><br>このエンドポイントで言語パラメータを設定すると、追加料金が発生します。<br>コストは<a title=\"Pricing\" href=\"https://dataforseo.com/pricing/business-data/business-data-api-tripadvisor-pricing\" target=\"_blank\" rel=\"noopener noreferrer\">料金ページ</a>で計算できます。"
          },
          "depth": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>解析深度</em><br>任意フィールド<br>SERP 内のレビュー件数；<br>当社のシステムは 10 件のレビューを連続して処理するため、解析深度は 10 の倍数で設定することを強くお勧めします；<br>デフォルト値：<code>10</code>；<br>最大値：<code>4490</code><br><strong>アカウントには、最大 10 件の結果を含む SERP ごとに課金されます；</strong> <br>検索エンジンが 10 件を超える結果を返した場合、深度を 10 より大きく設定すると追加料金が発生する可能性があります</a>；<br>コストは<a title=\"Pricing\" href=\"https://dataforseo.com/pricing/business-data/business-data-api-tripadvisor-pricing\" target=\"_blank\" rel=\"noopener noreferrer\">料金ページ</a>で計算できます。"
          },
          "ratings": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>観光スポットの Tripadvisor 旅行者評価</em><br>任意フィールド<br>評価は、旅行者が観光スポットを訪問した後に書いたレビューに基づきます。<br>指定可能な値：<code>excellent</code>、<code>very_good</code>、<code>average</code>、<code>poor</code>、<code>terrible</code><br>複数の値を同時に指定できます"
          },
          "visit_type": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>レビューを投稿した旅行者のタイプでフィルターします</em><br>任意フィールド<br>使用可能な値: <code>families</code>、<code>couples</code>、<code>solo</code>、<code>business</code>、<code>friends</code><br>複数の値を同時に指定できます"
          },
          "months": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>旅行者が訪問した月でフィルター</em><br>任意フィールド<br>指定可能な値：<code>january</code>、<code>february</code>、<code>march</code>、<code>april</code>、<code>may</code>、<code>april</code>、<code>june</code>、<code>july</code>、<code>august</code>、<code>september</code>、<code>october</code>、<code>november</code>、<code>december</code><br>複数の値を同時に指定できます"
          },
          "sort_by": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>結果の並べ替えパラメーター</em><br>任意フィールド<br>このフィールドを使用して結果を並べ替えられます；<br>指定可能な並べ替えの種類：<br><code>most_recent</code><br><code>detailed_reviews</code>"
          },
          "translate_reviews": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>URL パスに従ってレビューを翻訳</em><br>任意フィールド<br><code>true</code> に設定すると、返されるレビューは指定した <code>url_path</code> に対応する言語に翻訳されます；<br>たとえば、<code>url_path</code> に <code>tripadvisor.it</code> が含まれ、<code>translate_reviews</code> が <code>true</code> の場合、レビューはイタリア語に翻訳されます；<br>デフォルト値：<code>true</code><br>レビューの翻訳方法の詳細については、<a href=\"https://dataforseo.com/help-center/how-to-translate-reviews-in-tripadvisor-business-data-api\" rel=\"noopener noreferrer\" target=\"_blank\">こちらのヘルプセンター記事</a>をご覧ください"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>ユーザー定義のタスク識別子</em><br>任意フィールド<br><em>文字数上限は 255 です</em><br>このパラメーターを使ってタスクを識別し、結果と照合できます<br>指定した <code>tag</code> の値は、レスポンスの <code>data</code> オブジェクトに含まれます"
          },
          "postback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>タスク結果送信用の URL</em><br>任意フィールド<br>タスクが完了すると、結果を <code>gzip</code> 形式で圧縮し、指定した <code>postback_url</code> に POST リクエストを送信します<br>‘$id’ 文字列を <code>$id</code> 変数として、‘$tag’ を URL エンコードされた <code>$tag</code> 変数として使用できます。リクエストの送信前に必要な値を設定します。<br>例:<br><code>http://your-server.com/postbackscript?id=$id</code><br><code>http://your-server.com/postbackscript?id=$id&amp;tag=$tag</code><br><strong>注意:</strong> <code>postback_url</code> 内の特殊文字は URL エンコードされます<br>たとえば、<code>#</code> 文字は <code>%23</code> にエンコードされます<p>詳細については、<a href=\"https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api\" target=\"_blank\" rel=\"noopener noreferrer\">ヘルプセンター</a>を参照してください"
          },
          "pingback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>タスク完了通知の URL</em><br>任意フィールド<br>タスクが完了すると、指定した URL に GET リクエストを送信して通知します<br>‘$id’ 文字列を <code>$id</code> 変数として、‘$tag’ を URL エンコードされた <code>$tag</code> 変数として使用できます。リクエストの送信前に必要な値を設定します。<br>例:<br><code>http://your-server.com/pingscript?id=$id</code><br><code>http://your-server.com/pingscript?id=$id&amp;tag=$tag</code><br><strong>注意:</strong> <code>pingback_url</code> 内の特殊文字は URL エンコードされます<br>たとえば、<code>#</code> 文字は <code>%23</code> にエンコードされます<p>詳細については、<a href=\"https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api\" target=\"_blank\" rel=\"noopener noreferrer\">ヘルプセンター</a>を参照してください"
          }
        },
        "example": [
          {
            "url_path": "Hotel_Review-g60763-d23462501-Reviews-Margaritaville_Times_Square-New_York_City_New_York.html",
            "location_code": 1003854,
            "pingback_url": "https://your-server.com/pingback.php?id=$id&tag=$tag",
            "tag": "some_string_123"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "url_path": "Hotel_Review-g60763-d23462501-Reviews-Margaritaville_Times_Square-New_York_City_New_York.html",
      "location_code": 1003854,
      "pingback_url": "https://your-server.com/pingback.php?id=$id&tag=$tag",
      "tag": "some_string_123"
    }
  ]
}
```

## Responses

### 200 — 操作成功

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

**application/json**

Schema: object | null

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

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

`#/components/schemas/Response36Afe1097B20_BusinessDataTripadvisorReviewsTaskPostResponseInfo`

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

### Response36Afe1097B20_BusinessDataTripadvisorReviewsTaskPostTaskInfo

`#/components/schemas/Response36Afe1097B20_BusinessDataTripadvisorReviewsTaskPostTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "object",
            "null"
          ],
          "description": "<em>結果の配列</em><br>この場合、値は <code>null</code> になります"
        }
      }
    }
  ]
}
```
