Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

DataForSEO Content Analysis Category Trends

เอกสาร API
https://api.sandbase.ai/v1/api/dataforseo/v3/content_analysis/category_trends/live

Citation counts, sentiment and top domains over time for a content category.

ราคา
เริ่มต้นที่ $0.024324USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 4 ไม่บังคับ

Playground

อินพุต
Content category code, e.g. 10994.
Start date, "yyyy-mm-dd".
"day", "week" or "month".
Optional end date.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

DataForSEO Content Analysis Category Trends API

Returns time-bucketed content statistics for one content category. You send a category_code and a date_from, and you can group results by day, week or month with date_group. Each bucket shows counts by sentiment, country, language, page type and sub-category.

Use cases

  • Track whether positive or negative mentions in a content category are rising week over week.
  • Compare how many pages in a category are blogs, news, ecommerce or message boards over time.
  • Find which countries and languages produce the most content for a category in a given period.
  • Spot shifts in emotions such as happiness or anger across a category before planning content.

Request

curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/content_analysis/category_trends/live" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_code": 10994, "date_from": "2026-09-01", "date_group": "week"}'

The result is returned in outputs[0].

Parameters

NameTypeRequiredDescription
category_codeintegerNoContent category code, e.g. 10994.
date_fromstringNoStart date, "yyyy-mm-dd".
date_groupstringNo"day", "week" or "month".
date_tostringNoOptional end date.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "data": {
        "api": "content_analysis",
        "category_code": 10994,
        "date_from": "2026-09-01",
        "date_group": "week",
        "function": "category_trends"
      },
      "id": "11030828-2190-0468-0000-a26395f7a23d",
      "path": [
        "v3"
      ],
      "result": [
        {
          "connotation_types": {
            "negative": 84064,
            "neutral": 216464,
            "positive": 169808
          },
          "countries": {
            "AU": 8664,
            "BR": 4088,
            "CL": 2928,
            "DE": 19472,
            "ES": 6280,
            "FR": 15304,
            "GB": 26512,
            "US": 79008
          },
          "date": "2026-08-31",
          "languages": {
            "de": 36256,
            "en": 332264,
            "es": 15512,
            "fr": 58200,
            "it": 1088,
            "ja": 3880,
            "pt": 5104,
            "ro": 4176
          },
          "page_categories": [
            {
              "category": null,
              "count": 21168
            }
          ],
          "page_types": {
            "blogs": 36368,
            "ecommerce": 254736,
            "message-boards": 160,
            "news": 3000,
            "organization": 124616
          },
          "rank": 480,
          "sentiment_connotations": {
            "anger": 248,
            "fun": 840,
            "happiness": 65608,
            "love": 2624,
            "sadness": 304,
            "share": 7920
          }
        }
      ],
      "result_count": 10,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "24.8884 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "24.9285 sec.",
  "version": "0.1.20261022"
}

Response fields

FieldMeaning
tasks[].result[].dateStart date of the time bucket, in yyyy-mm-dd format. With date_group set to week, the sample dates are a week apart.
tasks[].result[].rankA rank number for the category in that bucket. The response does not state the scale, so treat it as a relative value.
tasks[].result[].connotation_types.negative / neutral / positiveCounts of content in the bucket grouped by overall tone.
tasks[].result[].sentiment_connotations.anger / fun / happiness / love / sadness / shareCounts of content in the bucket tagged with each emotion.
tasks[].result[].countriesCounts of content by two-letter country code, such as US or GB. Only a handful of countries appear per bucket.
tasks[].result[].languagesCounts of content by language code, such as en or de.
tasks[].result[].page_types.blogs / ecommerce / news / organization / message-boardsCounts of content by type of page.
tasks[].result[].page_categories[].categoryList of category codes for a sub-category group, or null when no category applies. Use it together with count.
tasks[].result[].page_categories[].countNumber of items in that category group for the bucket.

Notes

  • The date in each result is the start of its bucket and may fall before your date_from. The first sample bucket is 2026-08-31 for a date_from of 2026-09-01.
  • Set date_to to limit the range. Set date_group to day, week or month to change the bucket size.
  • Read the data from tasks[].result[]. Check tasks[].status_code for 20000 to confirm the task succeeded.
  • Each page_categories[].category value is an array of numeric category codes, and you can reuse such codes as category_code in a new call.

Pricing

Billed at the actual cost of each call, about $0.024324 for the request above. Failed calls are not charged.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
DataForSEOเริ่มต้นที่ $0.024324 ต่อครั้งJSON
DataForSEOเริ่มต้นที่ $0.0102 ต่อครั้งJSON
DataForSEOเริ่มต้นที่ $0.000724 ต่อครั้งJSON
DataForSEO$0.004 ต่อการเรียกJSON
DataForSEOเริ่มต้นที่ $0.00162 ต่อครั้งJSON
DataForSEOเริ่มต้นที่ $0.001105 ต่อครั้งJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ DataForSEO Content Analysis Category Trends API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/dataforseo/v3/content_analysis/category_trends/live โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

DataForSEO Content Analysis Category Trends API ราคาเท่าไร?

เริ่มต้นที่ $0.024324 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

DataForSEO Content Analysis Category Trends API รับพารามิเตอร์อะไรบ้าง?

ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: category_code (integer), date_from (string), date_group (string) และ date_to (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

DataForSEO Content Analysis Category Trends API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ DataForSEO ไหม?

ไม่จำเป็น DataForSEO Content Analysis Category Trends ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง DataForSEO API แยกต่างหาก