所有文章 > 学习各类API > 使用内容分析API检测Web提及的情绪
使用内容分析API检测Web提及的情绪

使用内容分析API检测Web提及的情绪

DataForSEO,我们始终致力于站在行业趋势的前沿,因此现在我们推出了一种新的解决方案 —— 内容分析 API

在本文中,我们将引导您了解情感分析的基础知识,并解释在品牌管理项目中使用情感分析 API 的一些更高级的原则。

情感分析,也称为意见挖掘,是检查给定文本以确定作者对所描述主题的态度是积极、消极还是中立的过程。

通常,情感分析是对来自网络的包含人物、品牌或产品提及的文本数据进行的。

鉴于用户生成的信息量巨大,且可以发现这些信息的资源种类繁多,手动收集和分析所有数据将会极其耗时。

全自动的情感分析基于机器学习技术和自我学习。

基于规则的算法使用来自词典的人工规则——单词和短语列表以及它们带给文本的情感。

混合方法是前两种方法的结合体。

比较一下。这里的咖啡比星巴克的好喝。

对比。好吧,是的,但实际上并非如此。

成语。这不是我的菜。

讽刺挖苦。我就喜欢等待。

在线语言,表情符号。你的新店真是太搞笑了😀。

这些问题展示了即便是在使用单一语言(英语)的情况下也会面临的一些挑战。

情绪分析应用程序编程接口 (API) 是一种允许开发人员、企业主和分析师访问情感分析数据而无需执行复杂的机器学习算法的技术。

情感分析 API 可让您仅使用几行代码即可将服务与您的软件、自定义仪表板或报告工具连接起来。

与花费大量时间构建自己的情感分析基础设施并投入额外资源相比,情感分析 API 让您能够快速整合所需的功能。

在 DataForSEO,我们为情感分析和品牌监控提供可扩展且经济实惠的解决方案 — 内容分析 API。

内容分析 API 依赖于经过精心挑选的大规模数据训练的机器学习算法。

总的来说,我们的系统旨在让 API 运行得飞快,并让您的体验尽可能顺畅。

[
{
"keyword_fields": {
"snippet": "logitech"
},
"keyword": "logitech",
"page_type": [
"ecommerce",
"news",
"blogs",
"message-boards",
"organization"
],
"search_mode": "as_is",
"filters": [
"main_domain",
"=",
"reviewfinder.ca"
],
"internal_list_limit": 8,
"order_by": [
"content_info.sentiment_connotations.anger,desc"
],
"limit": 10
}
]
{
"version": "0.1.20220913",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.5305 sec.",
"cost": 0.0203,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "09131957-0696-0463-0000-7db1bf7abc2b",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.4865 sec.",
"cost": 0.0203,
"result_count": 1,
"path": [
"v3",
"content_analysis",
"search",
"live"
],
"data": {
"api": "content_analysis",
"function": "search",
"keyword_fields": {
"snippet": "logitech"
},
"page_type": [
"ecommerce",
"news",
"blogs",
"message-boards",
"organization"
],
"search_mode": "as_is",
"filters": [
"main_domain",
"=",
"reviewfinder.ca"
],
"internal_list_limit": 8,
"limit": 10
},
"result": [
{
"offset_token": "eyJWZXJzaW9uIjoxLCJTZWFyY2hBZnRlclZhbHVlcyI6eyJjb250ZW50cy5zZW50aW1lbnRfY29ubm90YXRpb25zLmFuZ3J5IjowLjA5NzU2Nzc1LCJfc2NvcmUiOjIxNTUuNDk0MSwidXJsX2hhc2giOiIzNDM1OTM5MjM3NTMzMTExNDQ1In0sIlRva2VuUmVhbE9mZnNldCI6MH0=",
"total_count": 296,
"items_count": 10,
"items": [
{
"type": "content_analysis_search",
"url": "https://reviewfinder.ca/top-computer-speakers/edifier-r1280db-vs-logitech-g560/",
"domain": "reviewfinder.ca",
"main_domain": "reviewfinder.ca",
"url_rank": 126,
"spam_score": 0,
"domain_rank": 493,
"fetch_time": "2022-08-12 18:40:33 +00:00",
"country": "CA",
"language": "en",
"score": 5900.941,
"page_category": [
10019,
10167,
10873,
12138,
10002,
10028,
10222,
13813
],
"page_types": [
"ecommerce"
],
"ratings": null,
"social_metrics": [
{
"type": "facebook",
"like_count": 13
}
],
"content_info": {
"content_type": "page_content",
"title": "Verdict",
"main_title": "Comparing Edifier R1280DB and Logitech G560",
"previous_title": "Endorsement summary:",
"level": 2,
"author": null,
"snippet": "After counting and adding up the 77 expert endorsements of the May rankings, Logitech G560 outranks Edifier R1280DB. This is not to say that Edifier R1280DB is a bad option. Like Logitech G560, it is recommended by experts, but less.\nAs can be seen below, Logitech G560 outranks Edifier R1280DB by 13 positions. This indicates that, as of 4 Aug 2022, Logitech G560 is more critically acclaimed than Edifier R1280DB.",
"snippet_length": 415,
"social_metrics": [
{
"type": "facebook",
"like_count": 13
}
],
"highlighted_text": null,
"language": "en",
"sentiment_connotations": {
"anger": null,
"happiness": 0.07077454775571823,
"love": 0.0959794893860817,
"sadness": 0.030060304328799248,
"share": null,
"fun": 0.15295149385929108
},
"connotation_types": {
"positive": 0.12338598817586899,
"negative": 0.41213861107826233,
"neutral": 0.4645053744316101
},
"text_category": [
10019,
10167,
10873,
12138,
10013
],
"date_published": null,
"content_quality_score": 90,
"semantic_location": 90,
"rating": null,
"group_date": "2021-09-08 20:23:59 +00:00"
}
},
{
"type": "content_analysis_search",
"url": "https://reviewfinder.ca/info/top-gaming-racing-wheels/logitech-g920/",
"domain": "reviewfinder.ca",
"main_domain": "reviewfinder.ca",
"url_rank": 64,
"spam_score": 0,
"domain_rank": 493,
"fetch_time": "2022-07-31 20:16:34 +00:00",
"country": "CA",
"language": "en",
"score": 5751.833,
"page_category": [
10108,
10019,
10167
],
"page_types": [
"ecommerce"
],
"ratings": null,
"social_metrics": null,
"content_info": {
"content_type": "page_content",
"title": "Logitech G920 - Recommended and relevant!",
"main_title": "Logitech G920 - Reviews, Prices, Specs and Alternatives",
"previous_title": "ReviewFinder Gaming Racing Wheels Logitech G920",
"level": 2,
"author": null,
"snippet": "According to the meta ranking published on 3 July 2022, Logitech G920 is currently recommended as a high-quality Racing Wheel. Out of 10 expert opinions queried, Logitech G920 received 4 endorsements, from TechRadar (8 Jun 2022), Android Authority (12 Sep 2021) BestCovery (7 Apr 2022) and 1 other..\n1 out of 4 experts ranked Logitech G920 as 'the best Racing Wheel of the month'.\nCompared to other most critically acclaimed Gaming Racing Wheels, Logitech G920 ranks #5 out of 15 in July 2022, - as can be seen from the table below.\nThe definitive sim racing wheel for Xbox One: Realistic steering and pedal action for the latest racing titles. Wheel spokes: Anodized aluminum\nBuilt to last: Durable solid steel ball bearings, stainless steel pedals and hand-stitched leather wheel grip. Glass-filled nylon mounting clamps\nDual-motor force feedback: Realistically simulates the racing experience with smooth, quiet helical gearing\nEasy-access game controls: On-wheel D-pad, console buttons and paddle shifters\nResponsive floor pedal unit: Accelerate, brake and change gears with the feel of an actual car.System requirement:Windows 10, 8.1, Windows 8 or Windows 7 and macOS 10.10+\nLogitech has different serial numbers for packaging vs. product, please keep your receipt for warranty purposes.\nAs can be seen from the ranking below, Logitech G920 is endorsed by the critics this months, and ranks #5.",
"snippet_length": 1400,
"social_metrics": null,
"highlighted_text": null,
"language": "en",
"sentiment_connotations": {
"anger": null,
"happiness": 0.15027441084384918,
"love": 0.1787649393081665,
"sadness": 0.09101732820272446,
"share": null,
"fun": 0.0640750378370285
},
"connotation_types": {
"positive": 0.34157365560531616,
"negative": 0.3285507559776306,
"neutral": 0.32990556955337524
},
"text_category": [
10013,
10019,
10167
],
"date_published": null,
"content_quality_score": 94,
"semantic_location": 94,
"rating": null,
"group_date": "2021-09-13 05:05:18 +00:00"
}
},
{
"type": "content_analysis_search",
"url": "https://reviewfinder.ca/info/top-gaming-racing-wheels/logitech-g27/",
"domain": "reviewfinder.ca",
"main_domain": "reviewfinder.ca",
"url_rank": 104,
"spam_score": 0,
"domain_rank": 493,
"fetch_time": "2022-07-31 21:22:19 +00:00",
"country": "CA",
"language": "en",
"score": 2685.8352,
"page_category": [
10108,
10002,
10028,
10222,
13813
],
"page_types": [
"ecommerce"
],
"ratings": null,
"social_metrics": null,
"content_info": {
"content_type": "page_content",
"title": "ReviewFinder Gaming Racing Wheels Logitech G27",
"main_title": "Logitech G27 - Reviews, Prices, Specs and Alternatives",
"previous_title": "Logitech G27 - Reviews, Prices, Specs and Alternatives",
"level": 3,
"author": null,
"snippet": "The powerful, dual-motor force feedback mechanism with helical gearing smoothly and accurately simulates traction loss\nSix-speed shifter with push-down reverse gear allows you to quickly choose exactly the right gear.\nRPM/shift indicator LEDs integrate with racing game software to indicate when the user should shift gears.\nRealistic 11-Inch wheel with leather-wrapped rim provides a more comfortable, true-to-life racing experience for hours on end.\nSteel gas, brake, and clutch pedals deliver precise throttle, braking, and shifting control for heightened realism.\nThe powerful dual-motor force feedback mechanism with helical gearing smoothly and accurately simulates traction loss\nSix-speed shifter with push-down reverse gear allows you to quickly choose exactly the right gear\nRPM/shift indicator LEDs integrate with racing game software to indicate when the user should shift gears\nRealistic 11-Inch wheel with leather-wrapped rim provides a more comfortable and true-to-life racing experience for hours on end\nSteel gas, brake and clutch pedals deliver precise throttle with braking and shifting control for heightened realism\nLogitech G27 is a popular option at the top of the price range. It's in the top 3 bestselling racing wheels and has doesn't have many popular alternatives in the same price range.\nLogitech G27 is C$2814.58 more expensive than the average racing wheel (C$337.16).",
"snippet_length": 1398,
"social_metrics": null,
"highlighted_text": null,
"language": "en",
"sentiment_connotations": {
"anger": null,
"happiness": 0.05615948140621185,
"love": 0.09969528764486313,
"sadness": 0.15229091048240662,
"share": null,
"fun": 0.0502193346619606
},
"connotation_types": {
"positive": 0.5877373814582825,
"negative": 0.0651920959353447,
"neutral": 0.34710052609443665
},
"text_category": [
10019,
10167,
10013
],
"date_published": null,
"content_quality_score": 90,
"semantic_location": 90,
"rating": null,
"group_date": "2019-08-19 03:00:33 +00:00"
}
},
{
"type": "content_analysis_search",
"url": "https://reviewfinder.ca/info/top-computer-speakers/logitech-z213/",
"domain": "reviewfinder.ca",
"main_domain": "reviewfinder.ca",
"url_rank": 137,
"spam_score": 0,
"domain_rank": 493,
"fetch_time": "2022-08-13 11:12:47 +00:00",
"country": "CA",
"language": "en",
"score": 4299.2095,
"page_category": [
10013,
10108
],
"page_types": [
"ecommerce"
],
"ratings": null,
"social_metrics": null,
"content_info": {
"content_type": "page_content",
"title": "ReviewFinder Computer Speakers Logitech Z213",
"main_title": "Logitech Z213 - Reviews, Prices, Specs and Alternatives",
"previous_title": "Logitech Z213 - Reviews, Prices, Specs and Alternatives",
"level": 3,
"author": null,
"snippet": "Down-firing subwoofer with adjustable bass control knob: Turn up the bass to add a deeper, richer low end to your music, movies and games\n14W peak power (7W RMS): Enjoy all your audio entertainment in loud, clear stereo sound\nConvenient handheld control pod: Easily power on the speakers, adjust volume and plug in your headset for private listening\nCompact satellite speakers: Inclined design directs great sound to your ears without sacrificing valuable desk space\nPlug-and-play setup: Simple wired connection to audio devices with 3.5mm output (Windows and Mac computers, smartphones, tablets, MP3 players)\nLogitech has different serial numbers for packaging vs. product, please keep your receipt for warranty purposes.\nSpeaker System Type:Multimedia Speakers\nConnections:Inputs: 3.5mm auxiliary input ;Outputs: 3.5mm headphone jack;\nNominal Output Power (Total):14 Watt\nMax (RMS) Output Power (Total):7 Watt\nService & Support Type:1-Year Limited Hardware Warranty\nLogitech Z213 is a very popular option in the middle of the computer speakers price range. It has dozens of popular alternatives in the same price range, such as Edifier R19U or Sanyun SW102.\nLogitech Z213 is C$25.56 cheaper than the average computer speaker (C$71.55).",
"snippet_length": 1237,
"social_metrics": null,
"highlighted_text": null,
"language": "en",
"sentiment_connotations": {
"anger": null,
"happiness": 0.15706565976142883,
"love": 0.19101671874523163,
"sadness": 0.027795027941465378,
"share": null,
"fun": 0.06868279725313187
},
"connotation_types": {
"positive": 0.36061927676200867,
"negative": 0.1687621772289276,
"neutral": 0.47064855694770813
},
"text_category": [
10019,
10167,
10873,
12138,
10872
],
"date_published": null,
"content_quality_score": 95,
"semantic_location": 95,
"rating": null,
"group_date": "2021-08-07 07:56:41 +00:00"
}
},
{
"type": "content_analysis_search",
"url": "https://reviewfinder.ca/info/top-gaming-racing-wheels/logitech-g29/",
"domain": "reviewfinder.ca",
"main_domain": "reviewfinder.ca",
"url_rank": 79,
"spam_score": 0,
"domain_rank": 493,
"fetch_time": "2022-07-31 20:08:57 +00:00",
"country": "CA",
"language": "en",
"score": 5864.53,
"page_category": [
10108,
10013
],
"page_types": [
"ecommerce"
],
"ratings": null,
"social_metrics": null,
"content_info": {
"content_type": "page_content",
"title": "Logitech G29 - Recommended and relevant!",
"main_title": "Logitech G29 - Reviews, Prices, Specs and Alternatives",
"previous_title": "ReviewFinder Gaming Racing Wheels Logitech G29",
"level": 2,
"author": null,
"snippet": "According to the meta ranking published on 3 July 2022, Logitech G29 is currently recommended as a high-quality Racing Wheel. Out of 10 expert opinions queried, Logitech G29 received 4 endorsements, from TechRadar (8 Jun 2022), Android Authority (12 Sep 2021) PCreview (9 Jan 2022) and 1 other..\nNo experts ranked Logitech G29 as 'the best Racing Wheel of July'.\nCompared to other most critically acclaimed Gaming Racing Wheels, Logitech G29 ranks #8 out of 15 in July 2022, - as can be seen from the table below.\nThe definitive SIM racing wheel for PlayStation 4 and PlayStation 3: realistic steering and pedal action for the latest racing titles. Note: Kindly refer the User manual before usage of the product\nBuilt to last: durable solid steel ball bearings, stainless steel shifter and PEDALS and hand-stitched leather wheel grip. Hall-effect steering sensor. Wheel spokes material: Anodized aluminum\nDual-motor force feedback: realistically simulates the racing experience with smooth, quiet Helical gearing. 900° wheel rotation\nSytem requirement:Windows 10, 8.1, Windows 8 or Windows 7 and macOS 10.10+\nWheel Unit Depth is 278 mm; Pedal piston sleeves: Polyoxymethylene thermoplastic (POM)\nAs can be seen from the ranking below, Logitech G29 is endorsed by the critics this months, and ranks #8.",
"snippet_length": 1301,
"social_metrics": null,
"highlighted_text": null,
"language": "en",
"sentiment_connotations": {
"anger": null,
"happiness": 0.13903042674064636,
"love": 0.14059056341648102,
"sadness": 0.09468089044094086,
"share": null,
"fun": 0.061122357845306396
},
"connotation_types": {
"positive": 0.39891257882118225,
"negative": 0.30477818846702576,
"neutral": 0.2963393032550812
},
"text_category": [
10013,
10019,
10167
],
"date_published": null,
"content_quality_score": 94,
"semantic_location": 94,
"rating": null,
"group_date": "2021-09-13 05:08:30 +00:00"
}
},
{
"type": "content_analysis_search",
"url": "https://reviewfinder.ca/top-gaming-keyboards/logitech-g213-vs-razer-cynosa-chroma/",
"domain": "reviewfinder.ca",
"main_domain": "reviewfinder.ca",
"url_rank": 146,
"spam_score": 0,
"domain_rank": 493,
"fetch_time": "2022-08-11 23:21:00 +00:00",
"country": "CA",
"language": "en",
"score": 4562.6978,
"page_category": [
10108,
13691,
10011
],
"page_types": [
"ecommerce"
],
"ratings": null,
"social_metrics": null,
"content_info": {
"content_type": "page_content",
"title": "Experts prefer Razer Cynosa Chroma over Logitech G213 Prodigy",
"main_title": "Comparing Logitech G213 Prodigy and Razer Cynosa Chroma",
"previous_title": "Razer Cynosa Chroma",
"level": 2,
"author": null,
"snippet": "Currently, Razer Cynosa Chroma received 1 endorsement from PC Gamer (27 Jul 2022). Meanwhile, Logitech G213 Prodigy did not receive any endorsements this month.\nCurious to see this month's entire Gaming Keyboards ranking? It's here",
"snippet_length": 231,
"social_metrics": null,
"highlighted_text": null,
"language": "en",
"sentiment_connotations": {
"anger": null,
"happiness": 0.07467446476221085,
"love": 0.18654434382915497,
"sadness": 0.14675261080265045,
"share": null,
"fun": 0.08801265060901642
},
"connotation_types": {
"positive": 0.22597165405750275,
"negative": 0.5552403926849365,
"neutral": 0.21881794929504395
},
"text_category": [
10108,
13691,
10013
],
"date_published": null,
"content_quality_score": 96,
"semantic_location": 96,
"rating": null,
"group_date": "2021-09-08 12:27:37 +00:00"
}
},
{
"type": "content_analysis_search",
"url": "https://reviewfinder.ca/info/top-surround-speaker-systems/acoustic-audio-aa5210/",
"domain": "reviewfinder.ca",
"main_domain": "reviewfinder.ca",
"url_rank": 120,
"spam_score": 0,
"domain_rank": 493,
"fetch_time": "2022-08-13 21:56:48 +00:00",
"country": "CA",
"language": "en",
"score": 1411.0455,
"page_category": [
10019,
10167,
10873,
12138,
10872
],
"page_types": [
"ecommerce"
],
"ratings": null,
"social_metrics": null,
"content_info": {
"content_type": "page_content",
"title": "ReviewFinder Surround Speaker Systems Acoustic Audio AA5210",
"main_title": "Acoustic Audio AA5210 - Reviews, Prices, Specs and Alternatives",
"previous_title": "Acoustic Audio AA5210 - Reviews, Prices, Specs and Alternatives",
"level": 3,
"author": null,
"snippet": "Acoustic Audio AA5210 powered 5.1 Bluetooth home theater speaker system with USB / SD, 600 watts system power, frequency response is 20hz-20 kHz, magnetically shielded satellite speakers\nIntegrated Bluetooth receiver and amplifier, 5 independent channel inputs and outputs, enhanced bass boost design, bass, treble and main controls, stereo AUX input, pro surround function, USB/SD card reader\nPlug and play connections, LED illuminated sub with multiple pattern flashing light display, 1 subwoofer speaker is (H x W x D) 11\" x 6.25\" x 12.5\", 5 full range satellite speakers are (H x W x D) 6.875\" x 4.125\" x 4\" each\n2 Fronts and 1 center satellite speakers have a 6' single RCA cable, 2 rear speakers have 12' single RCA cables, 3.5mm AUX to RCA cable included, 2 RCA to RCA cables included, remote control and full instructions included\nUse for home entertainment system, laptop or PC, DVD player, gaming, MP3 player, cell phone, tablet or any other device with a 3.5mm headphone output or RCA audio output\nAcoustic Audio AA5210 is a very popular and one of the less expensive options. It's in the top 3 bestselling speaker systems and has a couple of popular alternatives in the same price range, such as Monoprice 5.1 Home Theater or Logitech Z606.\nAcoustic Audio AA5210 is C$383 less expensive than an average speaker system (C$583.42).",
"snippet_length": 1341,
"social_metrics": null,
"highlighted_text": null,
"language": "en",
"sentiment_connotations": {
"anger": null,
"happiness": 0.0951547920703888,
"love": 0.326175719499588,
"sadness": 0.021449072286486626,
"share": null,
"fun": 0.020081015303730965
},
"connotation_types": {
"positive": 0.2667571008205414,
"negative": 0.198574036359787,
"neutral": 0.5346988439559937
},
"text_category": [
10019,
10167,
10873,
12138,
12137
],
"date_published": null,
"content_quality_score": 93,
"semantic_location": 93,
"rating": null,
"group_date": "2021-08-30 15:38:32 +00:00"
}
},
{
"type": "content_analysis_search",
"url": "https://reviewfinder.ca/info/top-gaming-keyboards/logitech-g910/",
"domain": "reviewfinder.ca",
"main_domain": "reviewfinder.ca",
"url_rank": 121,
"spam_score": 0,
"domain_rank": 493,
"fetch_time": "2022-07-21 17:59:12 +00:00",
"country": "CA",
"language": "en",
"score": 5116.254,
"page_category": [
10108,
10013
],
"page_types": [
"ecommerce"
],
"ratings": null,
"social_metrics": null,
"content_info": {
"content_type": "page_content",
"title": "ReviewFinder Gaming Keyboards Logitech G910",
"main_title": "Logitech G910 - Reviews, Prices, Specs and Alternatives",
"previous_title": "Logitech G910 - Reviews, Prices, Specs and Alternatives",
"level": 3,
"author": null,
"snippet": "Connectivity Type Wired. Connectivity USB. Bluetooth No. Cord Length or Cordless Range 1.8 m. Ergonomic Design No. Keyboard Language English. Built-in TrackpadTouchpad No. Backlit Keys Yes. Internet Keys 0. Multimedia Keys 5. Mechanical Keys Yes. Custom Programmable Buttons 9 Fully Programmable G Keys. LCD Display No. Number of Memory Profile(s) 3. Colour Black. Wrist Rest Included Yes. Integrated USB Ports 0.\nDesigned For Gaming Yes. Solar Powered No. Battery Life Indicator No. Rechargeable No. System Requirements Windows 788.1 Powered USB Port Internet Connection 100MB Hard Drive Space (for Optional Software Download). Width 50.5 cm. Height 3.5 cm. Depth 24.4 cm. Weight 1.5 kg. Width (Inches) 19.7 in. Height (Inches) 1.37 in. Depth (Inches) 9.52 in. Warranty Parts 2 Year(s).\nLogitech Mechanical Gaming Keyboard.\nLogitech G910 is a very popular and one of the most expensive options. It's in the top 3 bestselling gaming keyboards and has many popular alternatives in the same price range, such as Logitech G810 Orion or Corsair K70 RGB MK.2.\nLogitech G910 is C$86.75 more expensive than an average gaming keyboard (C$104.95).",
"snippet_length": 1138,
"social_metrics": null,
"highlighted_text": null,
"language": "en",
"sentiment_connotations": {
"anger": null,
"happiness": 0.09535221010446548,
"love": 0.2098393738269806,
"sadness": 0.13099771738052368,
"share": null,
"fun": 0.035219766199588776
},
"connotation_types": {
"positive": 0.18018507957458496,
"negative": 0.16152001917362213,
"neutral": 0.6583248972892761
},
"text_category": [
10019,
10167,
10013
],
"date_published": null,
"content_quality_score": 94,
"semantic_location": 94,
"rating": null,
"group_date": "2021-08-28 00:43:56 +00:00"
}
},
{
"type": "content_analysis_search",
"url": "https://reviewfinder.ca/info/top-gaming-keyboards/logitech-g213/",
"domain": "reviewfinder.ca",
"main_domain": "reviewfinder.ca",
"url_rank": 121,
"spam_score": 0,
"domain_rank": 493,
"fetch_time": "2022-07-21 16:59:42 +00:00",
"country": "CA",
"language": "en",
"score": 4598.567,
"page_category": [
10108,
10013
],
"page_types": [
"ecommerce"
],
"ratings": null,
"social_metrics": null,
"content_info": {
"content_type": "page_content",
"title": "ReviewFinder Gaming Keyboards Logitech G213 Prodigy",
"main_title": "Logitech G213 Prodigy - Reviews, Prices, Specs and Alternatives",
"previous_title": "Logitech G213 Prodigy - Reviews, Prices, Specs and Alternatives",
"level": 3,
"author": null,
"snippet": "Brilliant color spectrum illumination - personalize five individual lighting zones from a spectrum of over 16.8 million colors. Change colors to match your setup, specific games, or to showcase your favorite colors. Synchronize lighting effects with other Logitech G devices using Logitech gaming software. Low light leak around each keycap means less more light comes through the lettering – and less leaks around the keycaps. This helps make the illumination of each key more brilliant, making it easier to find your keys in the dark\nComfortable and durable - G213 prodigy is a full-sized keyboard designed for gaming and productivity. The slim body is built for gamers of all levels, with a durable construction that repels liquids, crumbs and dirt for easy cleanup. An integrated palm rest and adjustable feet let you set your keyboard to the ideal position, so it’s comfortable to use even during the longest gaming sessions\nPerformance tuned with multi-key input - G213 brings together the best in tactile feel and performance with keys built specifically for the way gamers play. Each key on the G213 is tuned to enhance the tactile experience, delivering ultra-quick, responsive feedback that is up to 4 times faster than standard keyboards. The anti-ghosting gaming Matrix is tuned for optimal gaming performance, keeping you in control when you press multiple gaming keys simultaneously\nDedicated media controls - control your background track without switching out of your game. G213 features dedicated media controls that can be used to play, pause and mute music and videos instantly. Adjust the volume, or skip to the next song with the touch of a button\nCustomize with Logitech gaming software - Logitech gaming software lets you fully customize your G213 for added convenience and personalization. Set the RGB lighting, save time by assigning multiple functions to function (F1-F12) keys, and much more\nLogitech G213 Prodigy is a popular and one of the less expensive options. It's in the top 3 bestselling gaming keyboards and has dozens of popular alternatives in the same price range, such as Corsair K55 RGB or Razer Cynosa V2.\nLogitech G213 Prodigy is C$34.19 less expensive than an average gaming keyboard (C$104.95).",
"snippet_length": 2239,
"social_metrics": null,
"highlighted_text": null,
"language": "en",
"sentiment_connotations": {
"anger": null,
"happiness": 0.05594038963317871,
"love": 0.4099886119365692,
"sadness": 0.037346553057432175,
"share": null,
"fun": 0.029315805062651634
},
"connotation_types": {
"positive": 0.45417067408561707,
"negative": 0.13158488273620605,
"neutral": 0.4142744541168213
},
"text_category": [
10019,
10168,
10886,
12222,
10167
],
"date_published": null,
"content_quality_score": 94,
"semantic_location": 94,
"rating": null,
"group_date": "2021-08-28 00:43:49 +00:00"
}
},
{
"type": "content_analysis_search",
"url": "https://reviewfinder.ca/top-xbox-one-headsets/astro-a10-gaming-headset-vs-lucidsound-ls35x/",
"domain": "reviewfinder.ca",
"main_domain": "reviewfinder.ca",
"url_rank": 165,
"spam_score": 0,
"domain_rank": 493,
"fetch_time": "2022-08-11 00:13:11 +00:00",
"country": "CA",
"language": "en",
"score": 2155.4941,
"page_category": [
10002,
10231,
13469,
10011
],
"page_types": [
"ecommerce"
],
"ratings": null,
"social_metrics": null,
"content_info": {
"content_type": "page_content",
"title": "Score distribution:",
"main_title": "Comparing Astro A10 and LucidSound LS35X",
"previous_title": "Expert reviews [1]",
"level": 4,
"author": null,
"snippet": "Durable construction – The A10 was designed to withstand serious abuse, featuring a lightweight yet rugged construction with premium materials for a pressure-free fit that won’t overheat your head. The ear cushions contain cloth for maximum comfort, backed with synthetic leather for the best acoustic performance.\nCombat Ready Precision Audio: Our focus is delivering flawless high quality PC and console audio that delivers total immersion into your game and precision audio to provide a competitive advantage. No one will be able to sneak up behind you with LucidSound on your team.\nNo manufacturer information linked for LucidSound LS35X.\nAstro A10 is a very popular option in the middle of the headsets price range. It's in the top 3 bestselling headsets and has dozens of popular alternatives in the same price range, such as Somic G951S or Logitech G332.\nAstro A10 is C$0.02 more expensive than an average headset (C$59.97).",
"snippet_length": 931,
"social_metrics": null,
"highlighted_text": null,
"language": "en",
"sentiment_connotations": {
"anger": null,
"happiness": 0.10993830859661102,
"love": 0.1934281885623932,
"sadness": 0.039923928678035736,
"share": null,
"fun": 0.04024559631943703
},
"connotation_types": {
"positive": 0.34128379821777344,
"negative": 0.259573370218277,
"neutral": 0.39917290210723877
},
"text_category": [
10013,
10019,
10167
],
"date_published": null,
"content_quality_score": 94,
"semantic_location": 94,
"rating": null,
"group_date": "2021-09-08 22:26:11 +00:00"
}
}
]
}
]
}
]

您始终可以从我们全面的文档中获取更多代码示例和有关内容分析 API 的所有必要信息。如果您需要集成帮助,请随时联系我们全天候提供服务的主动支持团队。

最后但并非最不重要的一点是,DataForSEO 提供按使用量付费的内容分析 API,而且价格非常实惠。使用此解决方案,您可以进行品牌分析或在预算内制作您的声誉管理软件。

要了解有关构建自定义工具的一些实用见解,请继续阅读。

使用内容分析 API 可以构建哪些品牌管理功能?

情感分析和品牌管理 SaaS 工具的开发正变得越来越流行。这些解决方案使用户只需点击几下鼠标就能找到品牌提及并对文本中的情感进行分类,这并不奇怪。除此之外,市场上现有软件的定价相当高,因此许多公司和品牌专家都会构建自定义报告仪表板。

在开始开发工具或仪表板之前,请确保您已安装准确的情绪分析系统。或者,您可以选择商业情绪分析 API,它将立即为您提供所有必要的数据。这样,您就无需支付任何维护费用。

在这里,我们将向您展示如何使用DataForSEO 内容分析 API创建几个重要的品牌管理和情感分析功能。虽然还有大量功能可供探索,但我们将重点关注以下五个功能:

  • Web 提及概述
  • 情绪极性摘要
  • 随时间变化的情绪
  • 不同类别的情绪随时间变化情况
  • 按评分分类的情绪
网络提及情绪 API 仪表板

Web 提及概述

网页提及的质量概览为用户提供了他们输入的目标关键字的引用的所有详细信息。通常,这些详细信息以类似于我们的草图的视图组织。

网络提及概述

要获取此功能的数据,请使用内容分析 API -搜索端点。您应该在 POST 请求正文中使用的参数相当直观:

  • 用于keyword定义目标关键字
  • 用于filters按国家、极性(例如负极)等过滤结果。
  • 用于order_by按特定顺序对结果进行排序

示例请求:

[
{
"keyword": "logitech",
"filters": [
"country",
"=",
"US"
],
"order_by": [
"content_info.sentiment_connotations.anger,desc"
],
"limit": 5
}
]

情绪极性摘要

情绪极性摘要

图表是一种简单而有效的方式,可以按关键词显示总体情绪极性分布的摘要。它立即显示了品牌或产品的主流基调。

您可以使用来自内容分析 API -摘要端点的数据来实现此功能。

只需在请求正文中指明必要的关键字并调用以下 URL:https://api.dataforseo.com/v3/content_analysis/summary/live[ { “关键字”:“logitech”, “内部列表限制”:3 } ]

随时间变化的情绪

随时间变化的情绪

通过绘制时间线上的情绪极性分布,您可以帮助用户了解他们的品牌声誉何时开始恶化或改善。

用数据填充此折线图非常简单。您需要调用内容分析 API 的短语趋势端点,并指明所需的关键字、日期范围和时间范围,这些将用于对结果进行分组(按天、周或月)。

示例请求:[ { “关键字”:“logitech”, “搜索模式”:“原样”, “date_from”: “2022-09-01”, “date_group”:“月份” } ]

不同类别的情绪随时间变化情况

与上面的功能类似,此可视化将绘制随时间变化的情绪极性,但它将按类别提供更广泛的视图。

不同类别的情绪随时间变化情况

与之前的功能不同,此折线图对于更大的研究目的(例如调查市场趋势)非常有用。

要实现此视图,您需要调用类别趋势端点并定义分组所需的类别、日期范围和时间范围(按天、周或月)。

对于每个类别部分,使用相关类别代码进行新的 API 调用。

您可以使用免费的类别端点获取可用类别代码和审核类别名称的完整列表。

以下是获取两个类别趋势数据的示例请求:[ { “类别代码”:10994, “搜索模式”:“原样”, “date_from”: “2022-09-01”, “date_group”:“月份” } ][ { “类别代码”:10937, “搜索模式”:“原样”, “date_from”: “2022-09-01”, “date_group”:“月份” } ]

按评分分类的情绪

按评分分类的情绪

该特征说明了根据评级分数的情绪极性分布。

依靠这些信息,用户可以看到负面情绪的数量与较低评分之间的关​​系,以及正面情绪的数量与较高评分之间的关​​系。他们还可以获得一些线索,用于未来调查具有正面情绪和低评分的提及,反之亦然。
 
要生成此功能,请使用内容分析 API 的评级分布端点。定义关键字后,调用以下端点:https://api.dataforseo.com/v3/content_analysis/ rating_distribution/live[ { “关键字”:“logitech”, “搜索模式”:“原样”, “内部列表限制”:3 } ]

我们希望本快速概述能为您提供一些实用的开发技巧。如您所见,当您拥有合适的技术时,组装用于网络提及情绪分析的基本仪表板并不像看起来那么复杂。

在我们关于开发品牌情绪监测工具的分步指南中查看更多信息 >>

包起来

简而言之,情绪分析基于确定文本是正面的、负面的还是中性的。随着技术的进步,尤其是 ML 和 NLP,情绪分析现在使公司能够从大量数据中获得有意义的见解。

虽然内部开发情绪分析系统是一个非常复杂的过程,但公司通常会选择许可现成的技术,例如 API。

在 DataForSEO,我们提供多语言(70 多种语言)内容分析 API,可帮助您从网络上收集品牌或关键字提及,自动评分其情感极性,并捕捉更高级的情感,例如爱、快乐或愤怒。

不要错过了解品牌在线声誉并及时调整的机会——尝试内容分析 API。

原文链接:Using Content Analysis API to Detect the Sentiment of Web Mentions

#你可能也喜欢这些API文章!