DataForSEO — Content Analysis / Sentiment Analysis / Live
Retrieve content Analysis Sentiment Analysis Live with the DataForSEO API. Review the selected endpoint’s request fields before calling. Use it for search visibility research or technical SEO.
- Selected price
- $0.024 base + $0.000036 / result Published pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
DataForSEO — Content Analysis / Sentiment Analysis / Live
Prepare your request, then continue with your agent.
Pricing
$0.024 base + $0.000036 / result
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
costnumberstatus_codeintegerstatus_messagestringtasksobject[]costnumberdataobjectapistringfunctionstringinternal_list_limitintegerkeywordstring
idstringpathstring[]resultobject[]positive_connotation_distributionobjectnegativeobjectconnotation_typesobjectnegativeintegerneutralintegerpositiveinteger
countriesobjectUSinteger
languagesobjecteninteger
page_categoriesobject[]categorynullcountinteger
page_typesobjectblogsintegerecommercenullmessage-boardsnullnewsnullorganizationnull
rankintegersentiment_connotationsobjectangerintegerfunintegerhappinessintegerloveintegersadnessintegershareinteger
text_categoriesobject[]categorynullcountinteger
top_domainsobject[]countintegerdomainstring
total_countintegertypestring
neutralobjectconnotation_typesobjectnegativeintegerneutralintegerpositiveinteger
countriesobjectUSinteger
languagesobjecteninteger
page_categoriesobject[]categorynullcountinteger
page_typesobjectblogsintegerecommercenullmessage-boardsnullnewsnullorganizationnull
rankintegersentiment_connotationsobjectangerintegerfunintegerhappinessintegerloveintegersadnessintegershareinteger
text_categoriesobject[]categorynullcountinteger
top_domainsobject[]countintegerdomainstring
total_countintegertypestring
positiveobjectconnotation_typesobjectnegativeintegerneutralintegerpositiveinteger
countriesobjectBEinteger
languagesobjecteninteger
page_categoriesobject[]categorynullcountinteger
page_typesobjectblogsintegerecommercenullmessage-boardsnullnewsnullorganizationnull
rankintegersentiment_connotationsobjectangerintegerfunintegerhappinessintegerloveintegersadnessintegershareinteger
text_categoriesobject[]categorynullcountinteger
top_domainsobject[]countintegerdomainstring
total_countintegertypestring
sentiment_connotation_distributionobjectangerobjectconnotation_typesobjectnegativeintegerneutralintegerpositiveinteger
countriesobjectDEinteger
languagesobjectdeinteger
page_categoriesobject[]categorynullcountinteger
page_typesobjectblogsintegerecommercenullmessage-boardsnullnewsnullorganizationnull
rankintegersentiment_connotationsobjectangerintegerfunintegerhappinessintegerloveintegersadnessintegershareinteger
text_categoriesobject[]categoryinteger[]countinteger
top_domainsobject[]countintegerdomainstring
total_countintegertypestring
funobjectconnotation_typesobjectnegativeintegerneutralintegerpositiveinteger
countriesobjectPLinteger
languagesobjectfrinteger
page_categoriesobject[]categorynullcountinteger
page_typesobjectblogsintegerecommercenullmessage-boardsnullnewsnullorganizationnull
rankintegersentiment_connotationsobjectangerintegerfunintegerhappinessintegerloveintegersadnessintegershareinteger
text_categoriesobject[]categorynullcountinteger
top_domainsobject[]countintegerdomainstring
total_countintegertypestring
happinessobjectconnotation_typesobjectnegativeintegerneutralintegerpositiveinteger
countriesobjectDEinteger
languagesobjecteninteger
page_categoriesobject[]categorynullcountinteger
page_typesobjectblogsintegerecommercenullmessage-boardsnullnewsnullorganizationnull
rankintegersentiment_connotationsobjectangerintegerfunintegerhappinessintegerloveintegersadnessintegershareinteger
text_categoriesobject[]categorynullcountinteger
top_domainsobject[]countintegerdomainstring
total_countintegertypestring
loveobjectconnotation_typesobjectnegativeintegerneutralintegerpositiveinteger
countriesobjectUSinteger
languagesobjectjainteger
page_categoriesobject[]categorynullcountinteger
page_typesobjectblogsnullecommercenullmessage-boardsnullnewsintegerorganizationnull
rankintegersentiment_connotationsobjectangerintegerfunintegerhappinessintegerloveintegersadnessintegershareinteger
text_categoriesobject[]categorynullcountinteger
top_domainsobject[]countintegerdomainstring
total_countintegertypestring
sadnessobjectconnotation_typesobjectnegativeintegerneutralintegerpositiveinteger
countriesobjectUSinteger
languagesobjecteninteger
page_categoriesobject[]categorynullcountinteger
page_typesobjectblogsintegerecommercenullmessage-boardsnullnewsnullorganizationnull
rankintegersentiment_connotationsobjectangerintegerfunintegerhappinessintegerloveintegersadnessintegershareinteger
text_categoriesobject[]categorynullcountinteger
top_domainsobject[]countintegerdomainstring
total_countintegertypestring
shareobjectconnotation_typesobjectnegativeintegerneutralintegerpositiveinteger
countriesobjectWWinteger
languagesobjecteninteger
page_categoriesobject[]categorynullcountinteger
page_typesobjectblogsnullecommercenullmessage-boardsnullnewsintegerorganizationnull
rankintegersentiment_connotationsobjectangerintegerfunintegerhappinessintegerloveintegersadnessintegershareinteger
text_categoriesobject[]categoryinteger[]countinteger
top_domainsobject[]countintegerdomainstring
total_countintegertypestring
typestring
result_countintegerstatus_codeintegerstatus_messagestringtimestring
tasks_countintegertasks_errorintegertimestringversionstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
cost?: number;
status_code?: number;
status_message?: string;
tasks?: Array<{
cost?: number;
data?: {
api?: string;
function?: string;
internal_list_limit?: number;
keyword?: string;
};
id?: string;
path?: Array<string>;
result?: Array<{
positive_connotation_distribution?: {
negative?: {
connotation_types?: {
negative?: number;
neutral?: number;
positive?: number;
};
countries?: {
US?: number;
};
languages?: {
en?: number;
};
page_categories?: Array<{
category?: null;
count?: number;
}>;
page_types?: {
blogs?: number;
ecommerce?: null;
"message-boards"?: null;
news?: null;
organization?: null;
};
rank?: number;
sentiment_connotations?: {
anger?: number;
fun?: number;
happiness?: number;
love?: number;
sadness?: number;
share?: number;
};
text_categories?: Array<{
category?: null;
count?: number;
}>;
top_domains?: Array<{
count?: number;
domain?: string;
}>;
total_count?: number;
type?: string;
};
neutral?: {
connotation_types?: {
negative?: number;
neutral?: number;
positive?: number;
};
countries?: {
US?: number;
};
languages?: {
en?: number;
};
page_categories?: Array<{
category?: null;
count?: number;
}>;
page_types?: {
blogs?: number;
ecommerce?: null;
"message-boards"?: null;
news?: null;
organization?: null;
};
rank?: number;
sentiment_connotations?: {
anger?: number;
fun?: number;
happiness?: number;
love?: number;
sadness?: number;
share?: number;
};
text_categories?: Array<{
category?: null;
count?: number;
}>;
top_domains?: Array<{
count?: number;
domain?: string;
}>;
total_count?: number;
type?: string;
};
positive?: {
connotation_types?: {
negative?: number;
neutral?: number;
positive?: number;
};
countries?: {
BE?: number;
};
languages?: {
en?: number;
};
page_categories?: Array<{
category?: null;
count?: number;
}>;
page_types?: {
blogs?: number;
ecommerce?: null;
"message-boards"?: null;
news?: null;
organization?: null;
};
rank?: number;
sentiment_connotations?: {
anger?: number;
fun?: number;
happiness?: number;
love?: number;
sadness?: number;
share?: number;
};
text_categories?: Array<{
category?: null;
count?: number;
}>;
top_domains?: Array<{
count?: number;
domain?: string;
}>;
total_count?: number;
type?: string;
};
};
sentiment_connotation_distribution?: {
anger?: {
connotation_types?: {
negative?: number;
neutral?: number;
positive?: number;
};
countries?: {
DE?: number;
};
languages?: {
de?: number;
};
page_categories?: Array<{
category?: null;
count?: number;
}>;
page_types?: {
blogs?: number;
ecommerce?: null;
"message-boards"?: null;
news?: null;
organization?: null;
};
rank?: number;
sentiment_connotations?: {
anger?: number;
fun?: number;
happiness?: number;
love?: number;
sadness?: number;
share?: number;
};
text_categories?: Array<{
category?: Array<number>;
count?: number;
}>;
top_domains?: Array<{
count?: number;
domain?: string;
}>;
total_count?: number;
type?: string;
};
fun?: {
connotation_types?: {
negative?: number;
neutral?: number;
positive?: number;
};
countries?: {
PL?: number;
};
languages?: {
fr?: number;
};
page_categories?: Array<{
category?: null;
count?: number;
}>;
page_types?: {
blogs?: number;
ecommerce?: null;
"message-boards"?: null;
news?: null;
organization?: null;
};
rank?: number;
sentiment_connotations?: {
anger?: number;
fun?: number;
happiness?: number;
love?: number;
sadness?: number;
share?: number;
};
text_categories?: Array<{
category?: null;
count?: number;
}>;
top_domains?: Array<{
count?: number;
domain?: string;
}>;
total_count?: number;
type?: string;
};
happiness?: {
connotation_types?: {
negative?: number;
neutral?: number;
positive?: number;
};
countries?: {
DE?: number;
};
languages?: {
en?: number;
};
page_categories?: Array<{
category?: null;
count?: number;
}>;
page_types?: {
blogs?: number;
ecommerce?: null;
"message-boards"?: null;
news?: null;
organization?: null;
};
rank?: number;
sentiment_connotations?: {
anger?: number;
fun?: number;
happiness?: number;
love?: number;
sadness?: number;
share?: number;
};
text_categories?: Array<{
category?: null;
count?: number;
}>;
top_domains?: Array<{
count?: number;
domain?: string;
}>;
total_count?: number;
type?: string;
};
love?: {
connotation_types?: {
negative?: number;
neutral?: number;
positive?: number;
};
countries?: {
US?: number;
};
languages?: {
ja?: number;
};
page_categories?: Array<{
category?: null;
count?: number;
}>;
page_types?: {
blogs?: null;
ecommerce?: null;
"message-boards"?: null;
news?: number;
organization?: null;
};
rank?: number;
sentiment_connotations?: {
anger?: number;
fun?: number;
happiness?: number;
love?: number;
sadness?: number;
share?: number;
};
text_categories?: Array<{
category?: null;
count?: number;
}>;
top_domains?: Array<{
count?: number;
domain?: string;
}>;
total_count?: number;
type?: string;
};
sadness?: {
connotation_types?: {
negative?: number;
neutral?: number;
positive?: number;
};
countries?: {
US?: number;
};
languages?: {
en?: number;
};
page_categories?: Array<{
category?: null;
count?: number;
}>;
page_types?: {
blogs?: number;
ecommerce?: null;
"message-boards"?: null;
news?: null;
organization?: null;
};
rank?: number;
sentiment_connotations?: {
anger?: number;
fun?: number;
happiness?: number;
love?: number;
sadness?: number;
share?: number;
};
text_categories?: Array<{
category?: null;
count?: number;
}>;
top_domains?: Array<{
count?: number;
domain?: string;
}>;
total_count?: number;
type?: string;
};
share?: {
connotation_types?: {
negative?: number;
neutral?: number;
positive?: number;
};
countries?: {
WW?: number;
};
languages?: {
en?: number;
};
page_categories?: Array<{
category?: null;
count?: number;
}>;
page_types?: {
blogs?: null;
ecommerce?: null;
"message-boards"?: null;
news?: number;
organization?: null;
};
rank?: number;
sentiment_connotations?: {
anger?: number;
fun?: number;
happiness?: number;
love?: number;
sadness?: number;
share?: number;
};
text_categories?: Array<{
category?: Array<number>;
count?: number;
}>;
top_domains?: Array<{
count?: number;
domain?: string;
}>;
total_count?: number;
type?: string;
};
};
type?: string;
}>;
result_count?: number;
status_code?: number;
status_message?: string;
time?: string;
}>;
tasks_count?: number;
tasks_error?: number;
time?: string;
version?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
DataForSEOCurrent DataForSEO — Content Analysis / Sentiment Analysis / Live · POST · View API reference | $0.024 base + $0.000036 / result | — | —successP50— |
- Pricing
- $0.024 base + $0.000036 / result
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/dataforseo/v3/content_analysis/sentiment_analysis/live- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/dataforseo/v3/content_analysis/sentiment_analysis/live' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '[
{
"internal_list_limit": 1,
"keyword": "logitech"
}
]'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
body | JSON request bodybody | array | Yes | This endpoint will provide you with sentiment analysis data for the citations available for the target keyword. for more info please visit 'https://docs.dataforseo.com/v3/content_analysis/sentiment_analysis/live/?bash' minItems: 1 · maxItems: 1 Nested fields and variants
Nested fields and variants
|
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Configured HTTP 200; actual status is unverified. Example from the provider's documentation. Field values in your results will differ.
{
"cost": 0.02003,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0.02003,
"data": {
"api": "content_analysis",
"function": "sentiment_analysis",
"internal_list_limit": 1,
"keyword": "logitech"
},
"id": "11091707-1535-0465-0000-07fd1ba1463b",
"path": [
"v3",
"content_analysis",
"sentiment_analysis",
"live"
],
"result": [
{
"positive_connotation_distribution": {
"negative": {
"connotation_types": {
"negative": 1176349,
"neutral": 252617,
"positive": 246750
},
"countries": {
"US": 100736
},
"languages": {
"en": 689101
},
"page_categories": [
{
"category": null,
"count": 342061
}
],
"page_types": {
"blogs": 539005,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 638,
"sentiment_connotations": {
"anger": 147,
"fun": 4890,
"happiness": 87373,
"love": 2947,
"sadness": 708,
"share": 90589
},
"text_categories": [
{
"category": null,
"count": 218097
}
],
"top_domains": [
{
"count": 89932,
"domain": "nerdpart.com"
}
],
"total_count": 1683708,
"type": "content_analysis_summary"
},
"neutral": {
"connotation_types": {
"negative": 182173,
"neutral": 2437398,
"positive": 579995
},
"countries": {
"US": 338896
},
"languages": {
"en": 2441543
},
"page_categories": [
{
"category": null,
"count": 656241
}
],
"page_types": {
"blogs": 1468065,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 638,
"sentiment_connotations": {
"anger": 48,
"fun": 2248,
"happiness": 72433,
"love": 2073,
"sadness": 757,
"share": 90082
},
"text_categories": [
{
"category": null,
"count": 215128
}
],
"top_domains": [
{
"count": 53696,
"domain": "xsplit.com"
}
],
"total_count": 2854419,
"type": "content_analysis_summary"
},
"positive": {
"connotation_types": {
"negative": 198296,
"neutral": 785304,
"positive": 2286584
},
"countries": {
"BE": 390724
},
"languages": {
"en": 1729629
},
"page_categories": [
{
"category": null,
"count": 477645
}
],
"page_types": {
"blogs": 1348461,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 616,
"sentiment_connotations": {
"anger": 67,
"fun": 4955,
"happiness": 151184,
"love": 8793,
"sadness": 208,
"share": 118464
},
"text_categories": [
{
"category": null,
"count": 308940
}
],
"top_domains": [
{
"count": 384346,
"domain": "vdsitsolutions.com"
}
],
"total_count": 2986476,
"type": "content_analysis_summary"
}
},
"sentiment_connotation_distribution": {
"anger": {
"connotation_types": {
"negative": 352,
"neutral": 139,
"positive": 113
},
"countries": {
"DE": 41
},
"languages": {
"de": 498
},
"page_categories": [
{
"category": null,
"count": 28
}
],
"page_types": {
"blogs": 125,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 127,
"sentiment_connotations": {
"anger": 177,
"fun": 1,
"happiness": 114,
"love": 0,
"sadness": 2,
"share": 2
},
"text_categories": [
{
"category": [
10013,
10108,
13691
],
"count": 26
}
],
"top_domains": [
{
"count": 6,
"domain": "marktguru.at"
}
],
"total_count": 650,
"type": "content_analysis_summary"
},
"fun": {
"connotation_types": {
"negative": 6625,
"neutral": 3980,
"positive": 8604
},
"countries": {
"PL": 1405
},
"languages": {
"fr": 6386
},
"page_categories": [
{
"category": null,
"count": 3182
}
],
"page_types": {
"blogs": 4867,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 358,
"sentiment_connotations": {
"anger": 1,
"fun": 9139,
"happiness": 3343,
"love": 34,
"sadness": 4,
"share": 93
},
"text_categories": [
{
"category": null,
"count": 4597
}
],
"top_domains": [
{
"count": 893,
"domain": "insidecee.pl"
}
],
"total_count": 19412,
"type": "content_analysis_summary"
},
"happiness": {
"connotation_types": {
"negative": 94796,
"neutral": 100161,
"positive": 186779
},
"countries": {
"DE": 24845
},
"languages": {
"en": 126472
},
"page_categories": [
{
"category": null,
"count": 59456
}
],
"page_types": {
"blogs": 105889,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 549,
"sentiment_connotations": {
"anger": 14,
"fun": 1633,
"happiness": 223776,
"love": 888,
"sadness": 17,
"share": 3448
},
"text_categories": [
{
"category": null,
"count": 32920
}
],
"top_domains": [
{
"count": 11848,
"domain": "dutchcreativeindustry.com"
}
],
"total_count": 393934,
"type": "content_analysis_summary"
},
"love": {
"connotation_types": {
"negative": 4333,
"neutral": 2950,
"positive": 11551
},
"countries": {
"US": 1547
},
"languages": {
"ja": 7933
},
"page_categories": [
{
"category": null,
"count": 2437
}
],
"page_types": {
"blogs": null,
"ecommerce": null,
"message-boards": null,
"news": 7426,
"organization": null
},
"rank": 418,
"sentiment_connotations": {
"anger": 0,
"fun": 36,
"happiness": 1767,
"love": 13820,
"sadness": 3,
"share": 195
},
"text_categories": [
{
"category": null,
"count": 3391
}
],
"top_domains": [
{
"count": 411,
"domain": "logitech.com"
}
],
"total_count": 21252,
"type": "content_analysis_summary"
},
"sadness": {
"connotation_types": {
"negative": 1034,
"neutral": 1116,
"positive": 298
},
"countries": {
"US": 88
},
"languages": {
"en": 1264
},
"page_categories": [
{
"category": null,
"count": 205
}
],
"page_types": {
"blogs": 464,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 320,
"sentiment_connotations": {
"anger": 2,
"fun": 4,
"happiness": 31,
"love": 3,
"sadness": 1029,
"share": 19
},
"text_categories": [
{
"category": null,
"count": 475
}
],
"top_domains": [
{
"count": 33,
"domain": "balans37.com"
}
],
"total_count": 2306,
"type": "content_analysis_summary"
},
"share": {
"connotation_types": {
"negative": 105832,
"neutral": 182464,
"positive": 142178
},
"countries": {
"WW": 82205
},
"languages": {
"en": 298788
},
"page_categories": [
{
"category": null,
"count": 46062
}
],
"page_types": {
"blogs": null,
"ecommerce": null,
"message-boards": null,
"news": 80078,
"organization": null
},
"rank": 477,
"sentiment_connotations": {
"anger": 2,
"fun": 67,
"happiness": 4025,
"love": 132,
"sadness": 20,
"share": 206541
},
"text_categories": [
{
"category": [
10001,
10024,
10185,
10952,
13573
],
"count": 57766
}
],
"top_domains": [
{
"count": 57766,
"domain": "dutchcreativeindustry.com"
}
],
"total_count": 459440,
"type": "content_analysis_summary"
}
},
"type": "content_analysis_sentiment_analysis"
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "22.9506 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "23.0121 sec.",
"version": "0.1.20220819"
}Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.024000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| 任务错误数必须为零 | $0.000000 / billing unit | Response · /tasks_error · Numeric value | Always | 0 billing unit · Decimal places: 0 |
| 本次返回结果 | $0.000036 / result | Response · /tasks/0/result · Array length | Always | 1 result · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.024036.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# DataForSEO — Content Analysis / Sentiment Analysis / Live
Retrieve content Analysis Sentiment Analysis Live with the DataForSEO API. Review the selected endpoint’s request fields before calling. Use it for search visibility research or technical SEO.
## Available implementations
DataForSEO · DataForSEO — Content Analysis / Sentiment Analysis / Live: https://openany.si/markets/apis/capabilities/dataforseo-content-analysis-sentiment-analysis-live?offering=9e5fad3d-63ca-4c70-9d2c-ce04bed22545 · $0.024 base + $0.000036 / result
## Selected API contract
Documentation: https://openany.si/apis/9e5fad3d-63ca-4c70-9d2c-ce04bed22545
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/dataforseo/v3/content_analysis/sentiment_analysis/live
Price: $0.024 base + $0.000036 / result
Provider: DataForSEO
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/dataforseo/v3/content_analysis/sentiment_analysis/live' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '[
{
"internal_list_limit": 1,
"keyword": "logitech"
}
]'
```
## API contract
```json
{
"resource_type": "api",
"name": "DataForSEO — Content Analysis / Sentiment Analysis / Live",
"endpoint": "https://api.openany.si/v1/agent-apis/dataforseo/v3/content_analysis/sentiment_analysis/live",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "This endpoint will provide you with sentiment analysis data for the citations available for the target keyword. for more info please visit 'https://docs.dataforseo.com/v3/content_analysis/sentiment_analysis/live/?bash'",
"json_schema": {
"example": [
{
"internal_list_limit": 1,
"keyword": "logitech"
}
],
"items": {
"example": [
{
"internal_list_limit": 1,
"keyword": "logitech"
}
],
"nullable": true,
"properties": {
"initial_dataset_filters": {
"allOf": [
{
"anyOf": [
{
"anyOf": [
{
"items": false,
"maxItems": 3,
"minItems": 3,
"prefixItems": [
{
"type": "string"
},
{
"type": "string"
},
{}
],
"type": "array"
},
{
"items": {
"anyOf": [
{
"type": "array"
},
{
"enum": [
"and",
"or"
],
"type": "string"
}
]
},
"minItems": 1,
"type": "array"
}
],
"description": "官方过滤器文档中的条件三元组或由 and/or 连接的条件数组;仅检查外层结构,嵌套数组、操作符和值的完整语义仍以官方文档为准。",
"x-coverage": "outer_structure_only_nested_operator_semantics_not_exhaustively_validated",
"x-schema-origin": "derived_from_official_filter_prose_and_examples"
},
{
"type": "null"
}
]
}
],
"description": "initial dataset filtering parameters optional field initial filtering parameters that apply to fields in the Search endpoint you can add several filters at once (8 filters maximum) you should set a logical operator and, or between the conditions the following operators are supported: regex, not_regex, <, <=, >, >=, =, <>, in, not_in, like, not_like, has, has_not, match, not_match you can use the % operator with like and not_like to match any string of zero or more characters example: [\"domain\",\"<>\", \"logitech.com\"] [[\"domain\",\"<>\",\"logitech.com\"],\"and\",[\"content_info.connotation_types.negative\",\">\",1000]] [[\"domain\",\"<>\",\"logitech.com\"]], \"and\", [[\"content_info.connotation_types.negative\",\">\",1000], \"or\", [\"content_info.text_category\",\"has\",10994]]] for more information about filters, please refer to Content Analysis API – Filters learn more about the initial dataset filters in this help center article.",
"nullable": true,
"type": "array",
"x-original-openapi-description": "initial dataset filtering parameters optional field initial filtering parameters that apply to fields in the Search endpoint you can add several filters at once (8 filters maximum) you should set a logical operator and, or between the conditions the following operators are supported: regex, not_regex, <, <=, >, >=, =, <>, in, not_in, like,not_like, has, has_not, match, not_match you can use the % operator with like and not_like to match any string of zero or more characters example: [\"domain\",\"<>\", \"logitech.com\"] [[\"domain\",\"<>\",\"logitech.com\"],\"and\",[\"content_info.connotation_types.negative\",\">\",1000]] [[\"domain\",\"<>\",\"logitech.com\"]], \"and\", [[\"content_info.connotation_types.negative\",\">\",1000], \"or\", [\"content_info.text_category\",\"has\",10994]]] for more information about filters, please refer to Content Analysis API – Filters learn more about the initial dataset filters in this help center article.",
"x-required-status": "optional",
"x-schema-origin": "official_filter_prose_normalized"
},
"internal_list_limit": {
"default": 1,
"description": "maximum number of elements within internal arrays optional field you can use this field to limit the number of elements within the following arrays: top_domains text_categories page_categories countries languages default value: 1 maximum value: 20",
"maximum": 20,
"nullable": true,
"type": "integer",
"x-constraints-from-official-description": [
"default",
"maximum"
],
"x-required-status": "optional"
},
"keyword": {
"description": "target keyword required field UTF-8 encoding the keywords will be converted to a lowercase format; Note: to match an exact phrase instead of a stand-alone keyword, use double quotes and backslashes; example: \"keyword\": \"\\\"tesla palo alto\\\"\" learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article",
"type": "string",
"x-required-status": "required"
},
"keyword_fields": {
"additionalProperties": {
"nullable": true,
"type": "string"
},
"description": "target keyword fields and target keywords optional field use this parameter to filter the dataset by keywords that certain fields should contain; fields you can specify: title, main_title, previous_title, snippet you can indicate several fields; Note: to match an exact phrase instead of a stand-alone keyword, use double quotes and backslashes; example: \"keyword_fields\": { \"snippet\": \"\\\"logitech mouse\\\"\", \"main_title\": \"sale\" }",
"nullable": true,
"type": "object",
"x-required-status": "optional"
},
"page_type": {
"description": "target page types optional field use this parameter to filter the dataset by page types possible values: \"ecommerce\", \"news\", \"blogs\", \"message-boards\", \"organization\"",
"items": {
"type": "string"
},
"nullable": true,
"type": "array",
"x-required-status": "optional"
},
"positive_connotation_threshold": {
"default": 0.4,
"description": "positive connotation threshold optional field specified as the probability index threshold for positive sentiment related to the citation content if you specify this field, connotation_types object in the response will only contain data on citations with positive sentiment probability more than or equal to the specified value possible values: from 0 to 1 default value: 0.4",
"nullable": true,
"type": "number",
"x-constraints-from-official-description": [
"default"
],
"x-required-status": "optional"
},
"rank_scale": {
"description": "defines the scale used for calculating and displaying the rank values optional field you can use this parameter to choose whether rank values are presented on a 0–100 or 0–1000 scale possible values: one_hundred — rank values are displayed on a 0–100 scale one_thousand — rank values are displayed on a 0–1000 scale default value: one_thousand learn more about how this parameter works in this Help Center article",
"nullable": true,
"type": "string",
"x-required-status": "optional"
},
"sentiments_connotation_threshold": {
"default": 0.4,
"description": "sentiment connotation threshold optional field specified as the probability index threshold for sentiment connotations related to the citation content if you specify this field, sentiment_connotations object in the response will only contain data on citations where the probability per each sentiment is more than or equal to the specified value possible values: from 0 to 1 default value: 0.4",
"nullable": true,
"type": "number",
"x-constraints-from-official-description": [
"default"
],
"x-required-status": "optional"
},
"tag": {
"description": "user-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response",
"nullable": true,
"type": "string",
"x-required-status": "optional"
}
},
"required": [
"keyword"
],
"type": "object",
"x-required-origin": "official_required_array_plus_explicit_unconditional_required_field_prose"
},
"maxItems": 1,
"minItems": 1,
"type": "array",
"x-openany-retail-scope": "single_native_task_per_sale_execution",
"x-openapi-version": "3.0.1",
"x-schema-origin": "official_openapi_plus_explicit_official_doc_amendments"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "array"
}
],
"billing": {
"currency": "USD",
"mode": "rules",
"parameters": [],
"policy_version": 2,
"sale": {
"addons": [],
"base_price_micro_usd": "24000",
"max_cost_micro_usd": "24036",
"quantities": [
{
"id": "task_errors",
"label": "任务错误数必须为零",
"max_quantity": "0",
"measure": "value",
"pointer": "/tasks_error",
"price_micro_usd": "0",
"quantity_scale": 0,
"source": "response",
"unit": "task_error",
"unit_quantity": "1"
},
{
"id": "returned_results",
"label": "本次返回结果",
"max_quantity": "1",
"measure": "array_length",
"pointer": "/tasks/0/result",
"price_micro_usd": "36",
"quantity_scale": 0,
"source": "response",
"unit": "result",
"unit_quantity": "1"
}
],
"rounding": "ceil",
"variants": []
}
},
"examples": [
{
"http_status": 200,
"name": "Official example · 官方历史成对样例(未运行) (HTTP assumed)",
"request": {
"body": [
{
"internal_list_limit": 1,
"keyword": "logitech"
}
],
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"cost": 0.02003,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0.02003,
"data": {
"api": "content_analysis",
"function": "sentiment_analysis",
"internal_list_limit": 1,
"keyword": "logitech"
},
"id": "11091707-1535-0465-0000-07fd1ba1463b",
"path": [
"v3",
"content_analysis",
"sentiment_analysis",
"live"
],
"result": [
{
"positive_connotation_distribution": {
"negative": {
"connotation_types": {
"negative": 1176349,
"neutral": 252617,
"positive": 246750
},
"countries": {
"US": 100736
},
"languages": {
"en": 689101
},
"page_categories": [
{
"category": null,
"count": 342061
}
],
"page_types": {
"blogs": 539005,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 638,
"sentiment_connotations": {
"anger": 147,
"fun": 4890,
"happiness": 87373,
"love": 2947,
"sadness": 708,
"share": 90589
},
"text_categories": [
{
"category": null,
"count": 218097
}
],
"top_domains": [
{
"count": 89932,
"domain": "nerdpart.com"
}
],
"total_count": 1683708,
"type": "content_analysis_summary"
},
"neutral": {
"connotation_types": {
"negative": 182173,
"neutral": 2437398,
"positive": 579995
},
"countries": {
"US": 338896
},
"languages": {
"en": 2441543
},
"page_categories": [
{
"category": null,
"count": 656241
}
],
"page_types": {
"blogs": 1468065,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 638,
"sentiment_connotations": {
"anger": 48,
"fun": 2248,
"happiness": 72433,
"love": 2073,
"sadness": 757,
"share": 90082
},
"text_categories": [
{
"category": null,
"count": 215128
}
],
"top_domains": [
{
"count": 53696,
"domain": "xsplit.com"
}
],
"total_count": 2854419,
"type": "content_analysis_summary"
},
"positive": {
"connotation_types": {
"negative": 198296,
"neutral": 785304,
"positive": 2286584
},
"countries": {
"BE": 390724
},
"languages": {
"en": 1729629
},
"page_categories": [
{
"category": null,
"count": 477645
}
],
"page_types": {
"blogs": 1348461,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 616,
"sentiment_connotations": {
"anger": 67,
"fun": 4955,
"happiness": 151184,
"love": 8793,
"sadness": 208,
"share": 118464
},
"text_categories": [
{
"category": null,
"count": 308940
}
],
"top_domains": [
{
"count": 384346,
"domain": "vdsitsolutions.com"
}
],
"total_count": 2986476,
"type": "content_analysis_summary"
}
},
"sentiment_connotation_distribution": {
"anger": {
"connotation_types": {
"negative": 352,
"neutral": 139,
"positive": 113
},
"countries": {
"DE": 41
},
"languages": {
"de": 498
},
"page_categories": [
{
"category": null,
"count": 28
}
],
"page_types": {
"blogs": 125,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 127,
"sentiment_connotations": {
"anger": 177,
"fun": 1,
"happiness": 114,
"love": 0,
"sadness": 2,
"share": 2
},
"text_categories": [
{
"category": [
10013,
10108,
13691
],
"count": 26
}
],
"top_domains": [
{
"count": 6,
"domain": "marktguru.at"
}
],
"total_count": 650,
"type": "content_analysis_summary"
},
"fun": {
"connotation_types": {
"negative": 6625,
"neutral": 3980,
"positive": 8604
},
"countries": {
"PL": 1405
},
"languages": {
"fr": 6386
},
"page_categories": [
{
"category": null,
"count": 3182
}
],
"page_types": {
"blogs": 4867,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 358,
"sentiment_connotations": {
"anger": 1,
"fun": 9139,
"happiness": 3343,
"love": 34,
"sadness": 4,
"share": 93
},
"text_categories": [
{
"category": null,
"count": 4597
}
],
"top_domains": [
{
"count": 893,
"domain": "insidecee.pl"
}
],
"total_count": 19412,
"type": "content_analysis_summary"
},
"happiness": {
"connotation_types": {
"negative": 94796,
"neutral": 100161,
"positive": 186779
},
"countries": {
"DE": 24845
},
"languages": {
"en": 126472
},
"page_categories": [
{
"category": null,
"count": 59456
}
],
"page_types": {
"blogs": 105889,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 549,
"sentiment_connotations": {
"anger": 14,
"fun": 1633,
"happiness": 223776,
"love": 888,
"sadness": 17,
"share": 3448
},
"text_categories": [
{
"category": null,
"count": 32920
}
],
"top_domains": [
{
"count": 11848,
"domain": "dutchcreativeindustry.com"
}
],
"total_count": 393934,
"type": "content_analysis_summary"
},
"love": {
"connotation_types": {
"negative": 4333,
"neutral": 2950,
"positive": 11551
},
"countries": {
"US": 1547
},
"languages": {
"ja": 7933
},
"page_categories": [
{
"category": null,
"count": 2437
}
],
"page_types": {
"blogs": null,
"ecommerce": null,
"message-boards": null,
"news": 7426,
"organization": null
},
"rank": 418,
"sentiment_connotations": {
"anger": 0,
"fun": 36,
"happiness": 1767,
"love": 13820,
"sadness": 3,
"share": 195
},
"text_categories": [
{
"category": null,
"count": 3391
}
],
"top_domains": [
{
"count": 411,
"domain": "logitech.com"
}
],
"total_count": 21252,
"type": "content_analysis_summary"
},
"sadness": {
"connotation_types": {
"negative": 1034,
"neutral": 1116,
"positive": 298
},
"countries": {
"US": 88
},
"languages": {
"en": 1264
},
"page_categories": [
{
"category": null,
"count": 205
}
],
"page_types": {
"blogs": 464,
"ecommerce": null,
"message-boards": null,
"news": null,
"organization": null
},
"rank": 320,
"sentiment_connotations": {
"anger": 2,
"fun": 4,
"happiness": 31,
"love": 3,
"sadness": 1029,
"share": 19
},
"text_categories": [
{
"category": null,
"count": 475
}
],
"top_domains": [
{
"count": 33,
"domain": "balans37.com"
}
],
"total_count": 2306,
"type": "content_analysis_summary"
},
"share": {
"connotation_types": {
"negative": 105832,
"neutral": 182464,
"positive": 142178
},
"countries": {
"WW": 82205
},
"languages": {
"en": 298788
},
"page_categories": [
{
"category": null,
"count": 46062
}
],
"page_types": {
"blogs": null,
"ecommerce": null,
"message-boards": null,
"news": 80078,
"organization": null
},
"rank": 477,
"sentiment_connotations": {
"anger": 2,
"fun": 67,
"happiness": 4025,
"love": 132,
"sadness": 20,
"share": 206541
},
"text_categories": [
{
"category": [
10001,
10024,
10185,
10952,
13573
],
"count": 57766
}
],
"top_domains": [
{
"count": 57766,
"domain": "dutchcreativeindustry.com"
}
],
"total_count": 459440,
"type": "content_analysis_summary"
}
},
"type": "content_analysis_sentiment_analysis"
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "22.9506 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "23.0121 sec.",
"version": "0.1.20220819"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · 官方历史成对样例(未运行) (HTTP assumed)
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- This endpoint will provide you with sentiment analysis data for the citations available for the target keyword. for more info please visit 'https://docs.dataforseo.com/v3/content_analysis/sentiment_analysis/live/?bash'
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/dataforseo/v3/content_analysis/sentiment_analysis/live' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '[ { "internal_list_limit": 1, "keyword": "logitech" } ]'Check the response
Sample response · Configured HTTP 200; actual status is unverified.
Sample response{ "cost": 0.02003, "status_code": 20000, "status_message": "Ok.", "tasks": [ { "cost": 0.02003, "data": { "api": "content_analysis", "function": "sentiment_analysis", "internal_list_limit": 1, "keyword": "logitech" }, "id": "11091707-1535-0465-0000-07fd1ba1463b", "path": [ "v3", "content_analysis", "sentiment_analysis", "live" ], "result": [ { "positive_connotation_distribution": { "negative": { "connotation_types": { "negative": 1176349, "neutral": 252617, "positive": 246750 }, "countries": { "US": 100736 }, "languages": { "en": 689101 }, "page_categories": [ { "category": null, "count": 342061 } ], "page_types": { "blogs": 539005, "ecommerce": null, "message-boards": null, "news": null, "organization": null }, "rank": 638, "sentiment_connotations": { "anger": 147, "fun": 4890, "happiness": 87373, "love": 2947, "sadness": 708, "share": 90589 }, "text_categories": [ { "category": null, "count": 218097 } ], "top_domains": [ { "count": 89932, "domain": "nerdpart.com" } ], "total_count": 1683708, "type": "content_analysis_summary" }, "neutral": { "connotation_types": { "negative": 182173, "neutral": 2437398, "positive": 579995 }, "countries": { "US": 338896 }, "languages": { "en": 2441543 }, "page_categories": [ { "category": null, "count": 656241 } ], "page_types": { "blogs": 1468065, "ecommerce": null, "message-boards": null, "news": null, "organization": null }, "rank": 638, "sentiment_connotations": { "anger": 48, "fun": 2248, "happiness": 72433, "love": 2073, "sadness": 757, "share": 90082 }, "text_categories": [ { "category": null, "count": 215128 } ], "top_domains": [ { "count": 53696, "domain": "xsplit.com" } ], "total_count": 2854419, "type": "content_analysis_summary" }, "positive": { "connotation_types": { "negative": 198296, "neutral": 785304, "positive": 2286584 }, "countries": { "BE": 390724 }, "languages": { "en": 1729629 }, "page_categories": [ { "category": null, "count": 477645 } ], "page_types": { "blogs": 1348461, "ecommerce": null, "message-boards": null, "news": null, "organization": null }, "rank": 616, "sentiment_connotations": { "anger": 67, "fun": 4955, "happiness": 151184, "love": 8793, "sadness": 208, "share": 118464 }, "text_categories": [ { "category": null, "count": 308940 } ], "top_domains": [ { "count": 384346, "domain": "vdsitsolutions.com" } ], "total_count": 2986476, "type": "content_analysis_summary" } }, "sentiment_connotation_distribution": { "anger": { "connotation_types": { "negative": 352, "neutral": 139, "positive": 113 }, "countries": { "DE": 41 }, "languages": { "de": 498 }, "page_categories": [ { "category": null, "count": 28 } ], "page_types": { "blogs": 125, "ecommerce": null, "message-boards": null, "news": null, "organization": null }, "rank": 127, "sentiment_connotations": { "anger": 177, "fun": 1, "happiness": 114, "love": 0, "sadness": 2, "share": 2 }, "text_categories": [ { "category": [ 10013, 10108, 13691 ], "count": 26 } ], "top_domains": [ { "count": 6, "domain": "marktguru.at" } ], "total_count": 650, "type": "content_analysis_summary" }, "fun": { "connotation_types": { "negative": 6625, "neutral": 3980, "positive": 8604 }, "countries": { "PL": 1405 }, "languages": { "fr": 6386 }, "page_categories": [ { "category": null, "count": 3182 } ], "page_types": { "blogs": 4867, "ecommerce": null, "message-boards": null, "news": null, "organization": null }, "rank": 358, "sentiment_connotations": { "anger": 1, "fun": 9139, "happiness": 3343, "love": 34, "sadness": 4, "share": 93 }, "text_categories": [ { "category": null, "count": 4597 } ], "top_domains": [ { "count": 893, "domain": "insidecee.pl" } ], "total_count": 19412, "type": "content_analysis_summary" }, "happiness": { "connotation_types": { "negative": 94796, "neutral": 100161, "positive": 186779 }, "countries": { "DE": 24845 }, "languages": { "en": 126472 }, "page_categories": [ { "category": null, "count": 59456 } ], "page_types": { "blogs": 105889, "ecommerce": null, "message-boards": null, "news": null, "organization": null }, "rank": 549, "sentiment_connotations": { "anger": 14, "fun": 1633, "happiness": 223776, "love": 888, "sadness": 17, "share": 3448 }, "text_categories": [ { "category": null, "count": 32920 } ], "top_domains": [ { "count": 11848, "domain": "dutchcreativeindustry.com" } ], "total_count": 393934, "type": "content_analysis_summary" }, "love": { "connotation_types": { "negative": 4333, "neutral": 2950, "positive": 11551 }, "countries": { "US": 1547 }, "languages": { "ja": 7933 }, "page_categories": [ { "category": null, "count": 2437 } ], "page_types": { "blogs": null, "ecommerce": null, "message-boards": null, "news": 7426, "organization": null }, "rank": 418, "sentiment_connotations": { "anger": 0, "fun": 36, "happiness": 1767, "love": 13820, "sadness": 3, "share": 195 }, "text_categories": [ { "category": null, "count": 3391 } ], "top_domains": [ { "count": 411, "domain": "logitech.com" } ], "total_count": 21252, "type": "content_analysis_summary" }, "sadness": { "connotation_types": { "negative": 1034, "neutral": 1116, "positive": 298 }, "countries": { "US": 88 }, "languages": { "en": 1264 }, "page_categories": [ { "category": null, "count": 205 } ], "page_types": { "blogs": 464, "ecommerce": null, "message-boards": null, "news": null, "organization": null }, "rank": 320, "sentiment_connotations": { "anger": 2, "fun": 4, "happiness": 31, "love": 3, "sadness": 1029, "share": 19 }, "text_categories": [ { "category": null, "count": 475 } ], "top_domains": [ { "count": 33, "domain": "balans37.com" } ], "total_count": 2306, "type": "content_analysis_summary" }, "share": { "connotation_types": { "negative": 105832, "neutral": 182464, "positive": 142178 }, "countries": { "WW": 82205 }, "languages": { "en": 298788 }, "page_categories": [ { "category": null, "count": 46062 } ], "page_types": { "blogs": null, "ecommerce": null, "message-boards": null, "news": 80078, "organization": null }, "rank": 477, "sentiment_connotations": { "anger": 2, "fun": 67, "happiness": 4025, "love": 132, "sadness": 20, "share": 206541 }, "text_categories": [ { "category": [ 10001, 10024, 10185, 10952, 13573 ], "count": 57766 } ], "top_domains": [ { "count": 57766, "domain": "dutchcreativeindustry.com" } ], "total_count": 459440, "type": "content_analysis_summary" } }, "type": "content_analysis_sentiment_analysis" } ], "result_count": 1, "status_code": 20000, "status_message": "Ok.", "time": "22.9506 sec." } ], "tasks_count": 1, "tasks_error": 0, "time": "23.0121 sec.", "version": "0.1.20220819" }