按语气过滤新闻

您现在可以按报道是正面、负面还是中性来过滤新闻了

情感分析会标记文章的语气。使用它来比较公司、产品和服务的报道。

例如,请求关于 Apple 的文章,采用正面语气:

https://api.apitube.io/v1/news/everything?per_page=2&title=Apple&sentiment.overall.polarity=positive

此示例请求标题中带有 Apple 且语气积极的两篇文章。

您还可以按情感分数范围进行过滤:

https://api.apitube.io/v1/news/everything?per_page=2&sentiment.overall.score.min=-0.2&sentiment.overall.score.max=0.4&title=Apple

第二个请求也在标题中搜索Apple。其分数范围包括具有更温和的正面或负面语气的文章。

APITube - News API

相关文章

按类别搜索新闻
Product

按类别搜索新闻

查找有关娱乐、商业、技术、体育和其他主题的新闻文章。

Get started with the APITube News API
Product

Get started with the APITube News API

Create an account, get an API key, send your first APITube request, and filter the news returned by the API.

按语言搜索新闻
Product

按语言搜索新闻

查找英文、西班牙文、法文、德文及其他语言的新闻文章。

News Sentiment Trading Signals: An Honest Quant Guide
Developer Guides

News Sentiment Trading Signals: An Honest Quant Guide

Build a news sentiment trading signal that survives an honest backtest: entity-level sentiment, dedup, decay, z-score. Real API JSON, code, and caveats.

我们使用 Cookie

点击“接受”即表示您同意在您的设备上使用 Cookie,以使网站正常运行并用于分析。