# การตั้งงาน ‘Search Volume’ แบบ Live

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/keywords_data/bing/search_volume/live`

**Tags:** DataForSEO

ปริมาณการค้นหา Bing สำหรับรายการ `keywords` คืนค่า `keyword`, `location_code`, `language_code`, `search_partners`, `device`, `competition`, `cpc`, `search_volume`, `categories` และ `monthly_searches` — สังเกต `categories` ที่ตัวเทียบเท่าฝั่ง Google ไม่คืนค่า และไม่มี `competition_index` ห่อด้วย envelope ของ DataForSEO: ข้อมูลอยู่ใน `tasks[0].result` ผลลัพธ์อยู่ใน `tasks[0].status_code` — คำขอที่ถูกปฏิเสธยังคงคืน HTTP 200 คู่แฝดฝั่ง Google คือ `post_dataforseo_keywords_gads_search_volume_live`; ควรรันทั้งคู่เมื่อผู้ชมไม่ได้มีเฉพาะบน Google คู่แบบ submit และ fetch ของ endpoint นี้ทำงานเดียวกันแบบอะซิงโครนัส ในราคาเดียวกัน สำหรับชุดงานที่ใหญ่เกินกว่าจะรอผลได้

### ข้อมูลอ้างอิงราคา

- การวัดปริมาณการใช้งาน: ต้นทุนการตอบกลับที่รายงาน
- ค่าประมาณคำขออ้างอิง: USD 0.09
- ตัวคูณอ้างอิงสำหรับลูกค้า: 1.0 ห้ามนำไปใช้ซ้ำกับยอดที่เรียกเก็บจากลูกค้าแล้ว

เป็นข้อมูลเมตาอ้างอิงเท่านั้น ไม่ใช่ใบเสนอราคาสำหรับบัญชี ไม่ใช่ราคาที่รับประกัน และไม่ใช่เพดานการใช้จ่าย เครดิตของทรัพยากรไม่ใช่เครดิต Felo ยอดเรียกเก็บขั้นสุดท้ายเป็นไปตามบันทึกการเรียกเก็บเงินของ Felo

## Related links

- [บทความ Help Center](<https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis>)
- [Status endpoint](<https://docs.dataforseo.com/v3/keywords_data/bing/status/>)

## 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>keywords</em><br><strong>ฟิลด์ที่จำเป็น</strong><br>จำนวนคีย์เวิร์ดสูงสุดที่ระบุได้: 1000<br>จำนวนอักขระสูงสุดสำหรับแต่ละคีย์เวิร์ด: 100<br>คีย์เวิร์ดที่ระบุจะถูกแปลงเป็นตัวพิมพ์เล็ก และข้อมูลจะถูกส่งในอาร์เรย์แยกต่างหาก ดูรายละเอียดกฎและข้อจำกัดของฟิลด์ <code>keyword</code> และ <code>keywords</code> ใน DataForSEO API ได้ในบทความ Help Center"
          },
          "location_name": {
            "type": "string",
            "description": "<em>ชื่อเต็มของสถานที่ของเครื่องมือค้นหา</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>location_code</code> หรือ <code>location_coordinate</code><br><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>location_code</code> หรือ <code>location_coordinate</code></strong><br>คุณสามารถรับรายการสถานที่ของเครื่องมือค้นหาที่ใช้ได้พร้อม <code>location_name</code> ได้โดยส่งคำขอแยกไปที่ <code>https://api.dataforseo.com/v3/keywords_data/bing/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>location_code</code> ได้โดยส่งคำขอแยกไปที่ <code>https://api.dataforseo.com/v3/keywords_data/bing/locations</code><br>ตัวอย่าง:<br><code class=\"long-string\">2840</code>"
          },
          "location_coordinate": {
            "type": "string",
            "description": "<em>พิกัด GPS ของสถานที่</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>location_name</code> หรือ <code>location_code</code><br><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>location_name</code> หรือ <code>location_code</code></strong><br>พารามิเตอร์ <code>location_coordinate</code> ต้องระบุในรูปแบบ <em>\"latitude,longitude\"</em><br><strong>ข้อมูลจะคืนสำหรับประเทศที่พิกัดที่ระบุตั้งอยู่</strong><br>ตัวอย่าง:<br><code class=\"long-string\">52.6178549,-155.352142</code>"
          },
          "language_name": {
            "type": "string",
            "description": "<em>ชื่อเต็มของภาษาของเครื่องมือค้นหา</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>language_code</code><br>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>language_code</code><br>ภาษาที่รองรับ:<br><code>English</code>, <code>French</code>, <code>German</code>"
          },
          "language_code": {
            "type": "string",
            "description": "<em>รหัสภาษาของเครื่องมือค้นหา</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>language_name</code><br>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>language_name</code><br>ภาษาที่รองรับ:<br><code class=\"long-string\">en</code>, <code>fr</code>, <code>de</code>"
          },
          "device": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>ประเภทอุปกรณ์</em><br>ฟิลด์ไม่บังคับ<br>ระบุฟิลด์นี้หากต้องการข้อมูลสำหรับประเภทอุปกรณ์โดยเฉพาะ;<br>ค่าที่เป็นไปได้: <code>all</code>, <code>mobile</code>, <code>desktop</code>, <code>tablet</code><br>ค่าเริ่มต้น: <code>all</code>"
          },
          "sort_by": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>พารามิเตอร์การเรียงลำดับผลลัพธ์</em><br>ฟิลด์ไม่บังคับ<br>ใช้พารามิเตอร์เหล่านี้เพื่อเรียงลำดับผลลัพธ์ตาม <code>search_volume</code>, <code>cpc</code>, <code>competition</code> หรือ <code>relevance</code> จากมากไปน้อย<br>ค่าเริ่มต้น: <code>relevance</code>"
          },
          "date_from": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>วันที่เริ่มต้นของช่วงเวลา</em><br>ฟิลด์ไม่บังคับ<br>ค่าต่ำสุด: 24 เดือนนับจากวันที่วันนี้;<br>หากไม่ระบุฟิลด์นี้ ข้อมูลจะคืนสำหรับ 12 เดือนล่าสุด;<br>ค่าต่ำสุด: ย้อนหลังสองปีจากวันที่วันนี้;<br>หาก Status endpoint คืน <code>false</code> ในฟิลด์ <code>actual_data</code> จะตั้ง <code>date_from</code> เป็นเดือนก่อนหน้าและก่อนหน้านั้นได้;<br>หาก Status endpoint คืน <code>true</code> ในฟิลด์ <code>actual_data</code> จะตั้ง <code>date_from</code> เป็นเดือนล่าสุดและก่อนหน้านั้นได้;<br>รูปแบบวันที่: <code>\"yyyy-mm-dd\"</code><br>ตัวอย่าง:<br><code>\"2020-01-01\"</code><strong>หมายเหตุ:</strong> เราไม่แนะนำให้ใช้ช่วงเวลาที่กำหนดเองสำหรับวันที่ในปีที่ผ่านมา"
          },
          "date_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>วันที่สิ้นสุดของช่วงเวลา</em><br>ฟิลด์ไม่บังคับ<br>หากไม่ระบุฟิลด์นี้ ข้อมูลจะคืนสำหรับ 12 เดือนล่าสุด;<br>ค่าต่ำสุด: ย้อนหลังสองปีจากวันที่วันนี้;<br>ค่าสูงสุด: หนึ่งเดือนนับจากวันที่วันนี้;<br><strong>หมายเหตุ:</strong> เราไม่แนะนำให้ใช้ช่วงเวลาที่กำหนดเองสำหรับวันที่ในปีที่ผ่านมา;<br>รูปแบบวันที่: <code>\"yyyy-mm-dd\"</code><br>ตัวอย่าง:<br><code>\"2020-03-15\"</code><strong>หมายเหตุ:</strong> เราไม่แนะนำให้ใช้ช่วงเวลาที่กำหนดเองสำหรับวันที่ในปีที่ผ่านมา"
          },
          "search_partners": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>ประเภทพาร์ทเนอร์การค้นหาของ Bing</em><br>ฟิลด์ไม่บังคับ<br>หากระบุ <code class=\"prettyprint\">true</code> ผลลัพธ์จะส่งสำหรับเครือข่ายที่ Bing เป็นเจ้าของ ดำเนินการ และซินดิเคตทั่ว Bing, Yahoo, AOL และไซต์พาร์ทเนอร์ที่ให้บริการค้นหาของ Bing, AOL และ Yahoo<br>ค่าเริ่มต้น: <code>false</code> - ผลลัพธ์จะคืนสำหรับเครือข่ายค้นหาของ Bing, AOL และ Yahoo"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>ตัวระบุงานที่ผู้ใช้กำหนด</em><br>ฟิลด์ไม่บังคับ<br><em>จำกัด 255 อักขระ</em><br>ใช้พารามิเตอร์นี้เพื่อระบุงานและจับคู่กับผลลัพธ์<br>คุณจะพบค่า <code>tag</code> ที่ระบุในออบเจ็กต์ <code>data</code> ของการตอบกลับ"
          }
        },
        "example": [
          {
            "location_name": "United States",
            "language_code": "en",
            "keywords": [
              "tom and jerry",
              "silicon valley",
              "spider man"
            ]
          }
        ]
      }
    ]
  },
  "example": [
    {
      "location_name": "United States",
      "language_code": "en",
      "keywords": [
        "tom and jerry",
        "silicon valley",
        "spider man"
      ]
    }
  ]
}
```

## Responses

### 200 — ดำเนินการสำเร็จ

Headers:
- `X-Request-Id` (string) — ตัวระบุคำขอที่ต้องระบุเมื่อติดต่อฝ่ายสนับสนุนของ Felo

**application/json**

Schema: object | null

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

### 400 — ไม่สามารถประมวลผลคำขอได้ ตรวจสอบพารามิเตอร์ของคำขอ

### 401 — จำเป็นต้องใช้คีย์ API ของ Felo ที่ถูกต้อง

### 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": "รหัสสถานะของงาน\nสร้างโดย DataForSEO โดยอยู่ในช่วงต่อไปนี้ได้: 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_KeywordsDataBingSearchVolumeLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataBingSearchVolumeLiveResponseInfo`

```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_KeywordsDataBingSearchVolumeLiveTaskInfo"
              }
            ]
          },
          "description": "<em>อาร์เรย์ของงาน</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_KeywordsDataBingSearchVolumeLiveResultInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataBingSearchVolumeLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>คีย์เวิร์ดในอาร์เรย์ POST</em>"
    },
    "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>"
    },
    "search_partners": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>ระบุว่ามีข้อมูลจากเครือข่ายพันธมิตรรวมอยู่ในการตอบกลับหรือไม่</em>"
    },
    "device": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ประเภทอุปกรณ์ในอาร์เรย์ POST</em><br>หากไม่มีข้อมูล ค่าจะเป็น <code>null</code>"
    },
    "competition": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>การแข่งขัน</em><br>แสดงปริมาณการแข่งขันสัมพัทธ์ที่เกี่ยวข้องกับคีย์เวิร์ดที่กำหนดใน SERP แบบเสียเงินเท่านั้น ค่านี้อิงจากข้อมูล Bing Ads<br>ค่าที่เป็นไปได้: <code>0.1</code>, <code>0.5</code>,<code>0.9</code><code>0.1</code> - การแข่งขันต่ำ,<br><code>0.5</code> - การแข่งขันปานกลาง,<br><code>0.9</code> - การแข่งขันสูง;<br>หากไม่มีข้อมูล ค่าจะเป็น <code>null</code>"
    },
    "cpc": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>ต้นทุนต่อคลิก</em><br>แสดงต้นทุนเฉลี่ยต่อคลิก (USD) ที่จ่ายในอดีตสำหรับคีย์เวิร์ด<br>หากไม่มีข้อมูล ค่าจะเป็น <code>null</code>"
    },
    "search_volume": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>อัตราปริมาณการค้นหาเฉลี่ยรายเดือน<br></em>แสดงจำนวนการค้นหา (โดยประมาณ) สำหรับไอเดียคีย์เวิร์ดที่กำหนดบนเครื่องมือค้นหา Bing ขึ้นอยู่กับการกำหนดเป้าหมายของผู้ใช้;<br>ปริมาณการค้นหาจะถูกปัดเป็นหลักสิบที่ใกล้ที่สุด;<br>หากไม่มีข้อมูล ค่าจะเป็น <code>null</code>",
      "format": "int64"
    },
    "categories": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>หมวดหมู่ผลิตภัณฑ์และบริการ</em><br>API ของเราไม่คืนหมวดหมู่สำหรับ endpoint นี้: พารามิเตอร์จะเท่ากับ <code>null</code> เสมอ"
    },
    "monthly_searches": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_MonthlySearchesInfo"
          }
        ]
      },
      "description": "<em>จำนวนการค้นหารายเดือน</em><br>แสดงจำนวนการค้นหา (โดยประมาณ) ของไอเดียคีย์เวิร์ดนี้ (ตามข้อมูลที่มีในช่วงสิบสองเดือนที่ผ่านมา) โดยกำหนดเป้าหมายไปยังสถานที่ทางภูมิศาสตร์ที่ระบุ<br>หากไม่มีข้อมูล ค่าจะเป็น <code>null</code>"
    }
  }
}
```

### Response36Afe1097B20_KeywordsDataBingSearchVolumeLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataBingSearchVolumeLiveTaskInfo`

```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_KeywordsDataBingSearchVolumeLiveResultInfo"
              }
            ]
          },
          "description": "<em>อาร์เรย์ของผลลัพธ์</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_MonthlySearchesInfo

`#/components/schemas/Response36Afe1097B20_MonthlySearchesInfo`

```json
{
  "type": "object",
  "properties": {
    "year": {
      "type": [
        "integer",
        "null"
      ],
      "description": "ปี"
    },
    "month": {
      "type": [
        "integer",
        "null"
      ],
      "description": "เดือน"
    },
    "search_volume": {
      "type": [
        "integer",
        "null"
      ],
      "description": "อัตราปริมาณการค้นหาเฉลี่ยรายเดือน"
    }
  }
}
```
