# การวิเคราะห์เนื้อหา – API แนวโน้มหมวดหมู่

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/content_analysis/category_trends/live`

**Tags:** DataForSEO

ตัวชี้วัดรายช่วงเวลาเดียวกันกับ `post_dataforseo_content_phrase_trends_live` แต่ใช้กับหมวดหมู่ผลิตภัณฑ์ทั้งหมวดแทนคำค้นเดียว รับ `category_code` จาก `get_dataforseo_content_categories` โดย `date_from`, `date_to` และ `date_group` กำหนดช่วงและความละเอียด และคืนค่า `date` พร้อม `total_count`, `rank`, `top_domains` (แต่ละรายการมี `domain` และ `count`), `sentiment_connotations` (anger, happiness, love, sadness, share, fun), `connotation_types` (positive, negative, neutral), `text_categories`, `page_categories`, `page_types`, `countries` และ `languages` ต่อช่วงเวลา ใช้เพื่อดูการเคลื่อนไหวของตลาดมากกว่าวลีเดียว; สลับไปยัง endpoint วลีเมื่อรู้คำที่สนใจอยู่แล้ว

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

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

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

## Related links

- [Categories](<https://docs.dataforseo.com/v3/content_analysis/categories/>)
- [endpoint Search](<https://docs.dataforseo.com/v3/content_analysis/search/live/?bash>)
- [Content Analysis API - Filters](<https://docs.dataforseo.com/v3/content_analysis/filters>)
- [บทความ Help Center นี้](<https://dataforseo.com/help-center/what-are-the-initial-dataset-filters-and-how-do-they-work>)
- [บทความ Help Center นี้](<https://dataforseo.com/help-center/using-the-rank_scale-parameter-in-content-analysis-api>)
- [Locations](<https://docs.dataforseo.com/v3/content_analysis/locations/>)
- [Languages](<https://docs.dataforseo.com/v3/content_analysis/languages/>)

## 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": {
          "category_code": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>รหัสหมวดหมู่เป้าหมาย</em><br><strong>ฟิลด์ที่จำเป็น</strong><br>หากต้องการดูรายการหมวดหมู่ที่ใช้ได้ทั้งหมด โปรดดูที่ endpoint Categories"
          },
          "page_type": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>ประเภทหน้าเป้าหมาย</em><br>ฟิลด์ที่ไม่บังคับ<br>ใช้พารามิเตอร์นี้เพื่อกรองชุดข้อมูลตามประเภทหน้า<br>ค่าที่เป็นไปได้: <br><code>\"ecommerce\"</code>, <code>\"news\"</code>, <code>\"blogs\"</code>, <code>\"message-boards\"</code>, <code>\"organization\"</code>"
          },
          "search_mode": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>ประเภทการจัดกลุ่มผลลัพธ์</em><br>ฟิลด์ที่ไม่บังคับ<br>ประเภทการจัดกลุ่มที่เป็นไปได้:<br><code>as_is</code> - คืนข้อมูลการอ้างอิงทั้งหมดสำหรับ <code>category_code</code> เป้าหมาย<br><code>one_per_domain</code> - คืนข้อมูลหนึ่งการอ้างอิงของ <code>category_code</code> ต่อโดเมน<br>ค่าเริ่มต้น: <code>as_is</code>"
          },
          "internal_list_limit": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>จำนวนสูงสุดของรายการภายในอาร์เรย์ภายใน</em><br>ฟิลด์ที่ไม่บังคับ<br>ใช้ฟิลด์นี้เพื่อจำกัดจำนวนรายการภายในอาร์เรย์ต่อไปนี้:<br><code>top_domains</code><br><code>text_categories</code><br><code>page_categories</code><br><code>countries</code><br><code>languages</code><br>ค่าเริ่มต้น: <code>1</code><br>ค่าสูงสุด: <code>20</code>"
          },
          "date_from": {
            "type": "string",
            "description": "<em>วันที่เริ่มต้นของช่วงเวลา</em><br><strong>ฟิลด์ที่จำเป็น</strong><br>ค่าต่ำสุด: <code>2022-10-31</code><br>รูปแบบวันที่: <code>\"yyyy-mm-dd\"</code><br>ตัวอย่าง:<br><code>\"2019-01-15\"</code>"
          },
          "date_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>วันที่สิ้นสุดของช่วงเวลา</em><br>ฟิลด์ที่ไม่บังคับ<br>หากไม่ระบุฟิลด์นี้ ระบบจะใช้วันที่ของวันนี้เป็นค่าเริ่มต้น<br>รูปแบบวันที่: <code>\"yyyy-mm-dd\"</code><br>ตัวอย่าง:<br><code>\"2019-01-15\"</code>"
          },
          "date_group": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>ช่วงเวลาที่จะใช้จัดกลุ่มผลลัพธ์</em><br>ฟิลด์ที่ไม่บังคับ<br>ค่าเริ่มต้น: <code>month</code><br>ค่าที่เป็นไปได้: <code>day</code>, <code>week</code>, <code>month</code>"
          },
          "initial_dataset_filters": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": [
                "object",
                "null"
              ]
            },
            "description": "<em>พารามิเตอร์การกรองชุดข้อมูลเริ่มต้น</em><br>ฟิลด์ที่ไม่บังคับ<br>พารามิเตอร์การกรองเริ่มต้นที่ใช้กับฟิลด์ใน endpoint Search;<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>like</code>,<code>not_like</code>, <code>has</code>, <code>has_not</code>, <code>match</code>, <code>not_match</code><br>ใช้โอเปอเรเตอร์ <code>%</code> ร่วมกับ <code>like</code> และ <code>not_like</code> เพื่อจับคู่สตริงใด ๆ ที่มีอักขระศูนย์ตัวขึ้นไป<br>ตัวอย่าง:<br><code>[\"domain\",\"&lt;&gt;\", \"logitech.com\"]</code><p><code>[[\"domain\",\"&lt;&gt;\",\"logitech.com\"],\"and\",[\"content_info.connotation_types.negative\",\"&gt;\",1000]]</code><p><code>[[\"domain\",\"&lt;&gt\",\"logitech.com\"]],<br>\"and\",<br>[[\"content_info.connotation_types.negative\",\"&gt;\",1000],<br>\"or\",<p>[\"content_info.text_category\",\"has\",10994]]]</code><br>ดูข้อมูลเพิ่มเติมเกี่ยวกับตัวกรองได้ที่ Content Analysis API - Filters<br>ดูรายละเอียดเพิ่มเติมเกี่ยวกับตัวกรองชุดข้อมูลเริ่มต้นได้ในบทความ Help Center นี้"
          },
          "rank_scale": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>กำหนดสเกลที่ใช้คำนวณและแสดงค่าอันดับ <code>rank</code></em><br>ฟิลด์ที่ไม่บังคับ<p>ใช้พารามิเตอร์นี้เพื่อเลือกว่าจะแสดงค่าอันดับในช่วง 0–100 หรือ 0–1000<p>ค่าที่เป็นไปได้:<br><code>one_hundred</code> — แสดงค่าอันดับในช่วง 0–100<br><code>one_thousand</code> — แสดงค่าอันดับในช่วง 0–1000<p>ค่าเริ่มต้น: <code>one_thousand</code><p>ดูรายละเอียดว่าพารามิเตอร์นี้ทำงานอย่างไรได้ในบทความ Help Center นี้"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>ตัวระบุงานที่ผู้ใช้กำหนด</em><br>ฟิลด์ไม่บังคับ<br><em>จำกัด 255 อักขระ</em><br>ใช้พารามิเตอร์นี้เพื่อระบุงานและจับคู่กับผลลัพธ์<br>คุณจะพบค่า <code>tag</code> ที่ระบุในออบเจ็กต์ <code>data</code> ของการตอบกลับ"
          }
        },
        "example": [
          {
            "category_code": 10994,
            "search_mode": "as_is",
            "date_from": "2022-09-01",
            "date_group": "month"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "category_code": 10994,
      "search_mode": "as_is",
      "date_from": "2022-09-01",
      "date_group": "month"
    }
  ]
}
```

## Responses

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

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

**application/json**

Schema: object | null

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

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

`#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoriesInfo`

```json
{
  "properties": {
    "category": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "integer",
          "null"
        ]
      }
    },
    "count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_ContentAnalysisCategoryTrendsLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoryTrendsLiveResponseInfo`

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

### Response36Afe1097B20_ContentAnalysisCategoryTrendsLiveResultInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoryTrendsLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "ประเภทขององค์ประกอบ"
    },
    "date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>วันที่ที่มีการให้ข้อมูล</em>"
    },
    "total_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>จำนวนผลลัพธ์ทั้งหมดในฐานข้อมูลของเราที่เกี่ยวข้องกับคำขอของคุณ</em>",
      "format": "int64"
    },
    "rank": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>อันดับของ URL ทั้งหมดที่อ้างอิง <code>keyword</code></em><br>ผลรวมอันดับที่ปรับมาตรฐานของ URL ทั้งหมดที่อ้างอิง <code>keyword</code> เป้าหมายสำหรับวันที่ที่กำหนด"
    },
    "top_domains": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_TopDomainInfo"
          }
        ]
      },
      "description": "<em>โดเมนชั้นนำที่อ้างอิงคีย์เวิร์ดเป้าหมาย</em><br>มีออบเจ็กต์ที่มีโดเมนชั้นนำที่อ้างอิงหมวดหมู่เป้าหมายและจำนวนการอ้างอิงต่อแต่ละโดเมน"
    },
    "sentiment_connotations": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>ความหมายเชิงอารมณ์</em><br>มีความรู้สึก (ปฏิกิริยาทางอารมณ์) ที่เกี่ยวข้องกับการอ้างอิงหมวดหมู่เป้าหมาย และจำนวนการอ้างอิงต่อแต่ละความรู้สึก<br>ความหมายที่เป็นไปได้: <code>\"anger\"</code>, <code>\"fear\"</code>, <code>\"happiness\"</code>, <code>\"love\"</code>, <code>\"sadness\"</code>, <code>\"share\"</code>, <code>\"neutral\"</code>, <code>\"fun\"</code>"
    },
    "connotation_types": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>ประเภทความหมายเชิงอารมณ์</em><br>มีความรู้สึก (ขั้วความรู้สึก) ประเภทต่าง ๆ ที่เกี่ยวข้องกับการอ้างอิงหมวดหมู่ และจำนวนการอ้างอิงต่อแต่ละประเภทความรู้สึก<br>ประเภทความหมายที่เป็นไปได้: <code>\"positive\"</code>, <code>\"negative\"</code>, <code>\"neutral\"</code>"
    },
    "text_categories": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoriesInfo"
          }
        ]
      },
      "description": "<em>หมวดหมู่ข้อความ</em><br>มีออบเจ็กต์ที่มีหมวดหมู่ข้อความและจำนวนการอ้างอิงในแต่ละหมวดหมู่ข้อความ<br>หากต้องการดูรายการหมวดหมู่ที่ใช้ได้ทั้งหมด โปรดดูที่ endpoint Categories"
    },
    "page_categories": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoriesInfo"
          }
        ]
      },
      "description": "<em>หมวดหมู่หน้าเว็บ</em><br>มีออบเจ็กต์ที่มีหมวดหมู่หน้าเว็บและจำนวนการอ้างอิงในแต่ละหมวดหมู่หน้าเว็บ<br>หากต้องการดูรายการหมวดหมู่ที่ใช้ได้ทั้งหมด โปรดดูที่ endpoint Categories"
    },
    "page_types": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>ประเภทหน้าเว็บ</em><br>มีประเภทหน้าเว็บและจำนวนการอ้างอิงต่อแต่ละประเภทหน้าเว็บ"
    },
    "countries": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>ประเทศ</em><br>มีประเทศและจำนวนการอ้างอิงในแต่ละประเทศ<br>หากต้องการดูรายการประเทศที่ใช้ได้ทั้งหมด โปรดดูที่ endpoint Locations"
    },
    "languages": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>ภาษา</em><br>มีภาษาและจำนวนการอ้างอิงในแต่ละภาษา<br>หากต้องการดูรายการภาษาที่ใช้ได้ทั้งหมด โปรดดูที่ endpoint Languages"
    }
  }
}
```

### Response36Afe1097B20_ContentAnalysisCategoryTrendsLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoryTrendsLiveTaskInfo`

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

### Response36Afe1097B20_TopDomainInfo

`#/components/schemas/Response36Afe1097B20_TopDomainInfo`

```json
{
  "properties": {
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    }
  }
}
```
