keywordstring
Search query.
https://api.sandbase.ai/v1/api/dataforseo/v3/content_analysis/rating_distribution/liveReturns the distribution of ratings across analyzed web content and media sources. Helps evaluate audience sentiment and review scores across aggregated citations.
[
{
"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"
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
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.
anger and happiness for a brand in each rating bucket.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].
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | No | Search query. |
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"
}
| Field | Meaning |
|---|---|
tasks[].result[].min / max | Lower 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_types | Counts of negative, neutral and positive citations in the bucket. |
tasks[].result[].metrics.sentiment_connotations | Counts of citations by emotion: anger, fun, happiness, love, sadness and share. |
tasks[].result[].metrics.countries | Citation counts keyed by country code, such as DE or CH. The value is null when the bucket has no data. |
tasks[].result[].metrics.languages | Citation counts keyed by language code, such as en or de. |
tasks[].result[].metrics.page_types | Citation 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.rank | Rank value for the bucket. It is 0 in empty buckets and 454 in the 0.1 to 0.2 bucket. |
tasks[].result_count | Number of result buckets in the task. |
keyword.0 counts or null for the breakdown fields, so check for null before reading them.Billed at the actual cost of each call, about $0.024 for the request above. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
keywordstringSearch query.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"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"
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
DataForSEO | 1回あたり $0.024 から | JSON |
DataForSEO | 1回あたり $0.0102 から | JSON |
DataForSEO | 1回あたり $0.000724 から | JSON |
DataForSEO | $0.004 / 回 | JSON |
DataForSEO | 1回あたり $0.00162 から | JSON |
DataForSEO | 1回あたり $0.001105 から | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/dataforseo/v3/content_analysis/rating_distribution/live に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.024 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須パラメータはありません。 任意: keyword (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。DataForSEO Content Analysis Rating Distribution は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。DataForSEO の API アクセスを別途申請する必要はありません。