Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

DataForSEO Content Analysis Rating Distribution

API 文件
https://api.sandbase.ai/v1/api/dataforseo/v3/content_analysis/rating_distribution/live

Returns the distribution of ratings across analyzed web content and media sources. Helps evaluate audience sentiment and review scores across aggregated citations.

價格
自 $0.024 起美元/次呼叫
方法
POST
回應
JSON
參數
0 個必填 · 1 個選填

Playground

輸入
Search query.
輸出範例
回應outputs · 716 B · 32 行
[
  {
    "cost": 0,
    "status_code": 20000,
    "status_message": "Ok.",
    "tasks": [
      {
        "cost": 0,
        "data": {
          "api": "content_analysis",
          "function": "rating_distribution"
        },
        "id": "08200930-2190-0466-0000-5fe3b19f4335",
        "path": [
          "v3",
          "content_analysis",
          "rating_distribution",
          "… 1 more items in the full response"
        ],
        "result": null,
        "result_count": 0,
        "status_code": 40503,
        "status_message": "POST Data Is Invalid.",
        "time": "0 sec."
      }
    ],
    "tasks_count": 1,
    "tasks_error": 1,
    "time": "0.0303 sec.",
    "version": "0.1.20260806"
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

DataForSEO Content Analysis Rating Distribution API

Returns a list of rating buckets for web content that mentions a keyword. Each bucket covers a score range from min to max and holds counts of sentiment, countries, languages, page types and categories. The request needs one keyword.

Use cases

  • Compare how many citations of a brand fall into each rating range.
  • Check whether low-rated mentions of a brand come from stores, blogs or message boards.
  • Find which countries and languages produce the most content in a given rating range.
  • Track emotion counts such as anger and happiness for a brand in each rating bucket.

Request

curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/content_analysis/rating_distribution/live" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "nike"}'

The result is returned in outputs[0].

Parameters

NameTypeRequiredDescription
keywordstringNoSearch query.

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",
        "function": "rating_distribution",
        "keyword": "nike"
      },
      "id": "11030828-2190-0466-0000-0426958cc45a",
      "path": [
        "v3"
      ],
      "result": [
        {
          "max": 0.1,
          "metrics": {
            "connotation_types": {
              "negative": 0,
              "neutral": 0,
              "positive": 0
            },
            "countries": null,
            "languages": null,
            "page_categories": null,
            "page_types": null,
            "rank": 0,
            "sentiment_connotations": {
              "anger": 0,
              "fun": 0,
              "happiness": 0,
              "love": 0,
              "sadness": 0,
              "share": 0
            },
            "text_categories": null
          },
          "min": 0,
          "type": "content_analysis_rating_distribution"
        }
      ],
      "result_count": 10,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "14.8977 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "14.9059 sec.",
  "version": "0.1.20261022"
}

Response fields

FieldMeaning
tasks[].result[].min / maxLower and upper bound of the rating range for this bucket. In the example, the buckets run in steps of 0.1, such as 0 to 0.1 and 0.1 to 0.2.
tasks[].result[].metrics.connotation_typesCounts of negative, neutral and positive citations in the bucket.
tasks[].result[].metrics.sentiment_connotationsCounts of citations by emotion: anger, fun, happiness, love, sadness and share.
tasks[].result[].metrics.countriesCitation counts keyed by country code, such as DE or CH. The value is null when the bucket has no data.
tasks[].result[].metrics.languagesCitation counts keyed by language code, such as en or de.
tasks[].result[].metrics.page_typesCitation counts by page type, such as ecommerce, blogs, news, message-boards and organization.
tasks[].result[].metrics.page_categories[] / text_categories[]Lists of category ID arrays with a count for each. A category of null means no category was assigned.
tasks[].result[].metrics.rankRank value for the bucket. It is 0 in empty buckets and 454 in the 0.1 to 0.2 bucket.
tasks[].result_countNumber of result buckets in the task.

Notes

  • Pass the brand, product or topic you want to analyze as keyword.
  • Buckets with no matching content return 0 counts or null for the breakdown fields, so check for null before reading them.
  • Category values are numeric IDs, not names.

Pricing

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

探索更多

相關 APIs

所有 APIs
API價格回應
DataForSEO每次呼叫 $0.024 起JSON
DataForSEO每次呼叫 $0.0102 起JSON
DataForSEO每次呼叫 $0.000724 起JSON
DataForSEO每次呼叫 $0.004JSON
DataForSEO每次呼叫 $0.00162 起JSON
DataForSEO每次呼叫 $0.001105 起JSON

問題

常見問題

我要如何使用 DataForSEO Content Analysis Rating Distribution API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/dataforseo/v3/content_analysis/rating_distribution/live。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

DataForSEO Content Analysis Rating Distribution API 的費用是多少?

每次起 $0.024,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

DataForSEO Content Analysis Rating Distribution API 接受哪些參數?

不需要任何參數。 選填:keyword (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

DataForSEO Content Analysis Rating Distribution API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 DataForSEO 開發者帳號或 API 金鑰嗎?

不需要。DataForSEO Content Analysis Rating Distribution 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 DataForSEO API 存取權。