# Amazon ASIN タスクの設定

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/merchant/amazon/asin/task_post`

**Tags:** DataForSEO

`asin` で 1 つの Amazon 商品の検索をキューに登録し、タスク `id` を返します。この系列は全体が非同期です。送信すると `tasks[0].id` にタスク `id` が返り、フェッチツールは準備ができ次第結果を返します。⚠️ Amazon エンドポイントはロケール形式の言語（`en_US`、または `English (United States)`）を要求し、Google エンドポイントが受け付ける裸の `en` は拒否します。完全に省略した場合も `Invalid Field: 'language_name'` が返るため、このメッセージは誤りだけでなく欠落も意味します。`get_dataforseo_merchant_amazon_languages` に 27 個の有効なペアが一覧されています。`get_dataforseo_merchant_amazon_asin_fetch` で取得します。

### 料金の参考情報

- 計量方式：報告されたレスポンスコスト。
- 参考リクエスト見積もり：0.012 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": {
          "asin": {
            "type": "string",
            "description": "<em>製品 ID</em><br><strong>必須フィールド</strong><br>Amazon の<a href=\"https://dataforseo.com/help-center/asin-in-amazon-api\" target=\"_blank\" rel=\"noopener noreferrer\">一意の製品識別子（ASIN）</a><br><code>asin</code> パラメーターは、別途 <a href=\"/v3/merchant/amazon/products/task_post\" target=\"_blank\" rel=\"noopener noreferrer\">Amazon Products エンドポイント</a> にリクエストを送信して取得できます"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>タスクの優先度</em><br>任意フィールド<br>次の値を指定できます：<br>1 – 通常の実行優先度（デフォルトで設定）<br>2 – 高い実行優先度 実行優先度の高いタスクには追加料金が発生します。<br>コストは<a title=\"Pricing\" href=\"https://dataforseo.com/pricing/merchant/amazon-api\" target=\"_blank\" rel=\"noopener noreferrer\">料金ページ</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>https://api.dataforseo.com/v3/merchant/amazon/locations</code> にリクエストを送信すると、利用可能なロケーションとその <code>location_name</code> パラメーターの一覧を取得できます<br>例：<br><code class=\"long-string\">HA1,England,United Kingdom</code>"
          },
          "location_code": {
            "type": "integer",
            "description": "<em>検索エンジンのロケーションコード</em><br><strong><code>location_name</code> または <code>location_coordinate</code> を指定しない場合は必須フィールド</strong><br><strong>このフィールドを使用する場合、<code>location_name</code> または <code>location_coordinate</code> を指定する必要はありません</strong><br>別途次の URL にリクエストを送信すると、利用可能なロケーションとその <code>location_code</code> パラメーターの一覧を取得できます<br><code>https://api.dataforseo.com/v3/merchant/amazon/locations</code><br>例：<br><code class=\"long-string\">9045969</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<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>別途次の URL にリクエストを送信すると、利用可能な言語とその <code>language_name</code> パラメーターの一覧を取得できます<br><code>https://api.dataforseo.com/v3/merchant/amazon/languages</code><br>例：<br><code class=\"long-string\">English (United Kingdom)</code>"
          },
          "language_code": {
            "type": "string",
            "description": "<em>検索エンジンの言語コード</em><br><strong><code>language_name</code> を指定しない場合は必須フィールド</strong><br><strong>このフィールドを使用する場合、<code>language_name</code> を指定する必要はありません</strong><br>別途 <code>https://api.dataforseo.com/v3/merchant/amazon/languages</code> にリクエストを送信すると、利用可能な言語とその <code>language_code</code> パラメーターの一覧を取得できます<em><br></em>例：<em><br></em><code class=\"long-string\">en_GB</code>"
          },
          "se_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>検索エンジンのドメイン</em><br>任意フィールド<br>指定したロケーションと言語に応じて、関連する検索エンジンのドメインが自動的に選択されます<br>ただし、このフィールドでカスタムの検索エンジンドメインを設定できます<br>例：<br><em><code>amazon.com</code></em>、<em><code>amazon.co.uk</code></em>、<em><code>amazon.fr</code></em> など。"
          },
          "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>を参照してください"
          },
          "postback_data": {
            "type": "string",
            "description": "<em>postback_url のデータ型</em><br><strong><code>postback_url</code> を指定する場合は必須フィールド</strong><br>サーバーに送信されるデータ型に対応します<br>指定可能な値：<br><code>advanced</code>、<code>html</code>"
          },
          "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": [
          {
            "language_code": "en_US",
            "location_code": 2840,
            "asin": "B0756FCPPN"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en_US",
      "location_code": 2840,
      "asin": "B0756FCPPN"
    }
  ]
}
```

## Responses

### 200 — 操作成功

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

**application/json**

Schema: object | null

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

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

`#/components/schemas/Response36Afe1097B20_MerchantAmazonAsinTaskPostResponseInfo`

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

### Response36Afe1097B20_MerchantAmazonAsinTaskPostTaskInfo

`#/components/schemas/Response36Afe1097B20_MerchantAmazonAsinTaskPostTaskInfo`

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