跨市场品牌声誉分析

按来源质量和日期范围过滤,检查品牌覆盖在多个国家/地区是正面、负面还是中性

输入参数

参数描述类型默认必需
title要在文章标题中搜索的品牌名称。string是
source.country.code多个国家代码(逗号分隔)。string是
sort.by按情感分数排序。string是
sort.order降序。string是
published_at.start分析期间的开始日期。string是
source.rank.opr.min最小来源质量排名。string是
api_key您的 API 密钥string是
per_page要检索的最大文章数integer25否

工作流程示例

跨市场品牌声誉分析请求:
curl -X GET "https://api.apitube.io/v1/news/everything?title=Samsung&source.country.code=us,kr,in&sort.by=sentiment.overall.score&sort.order=desc&published_at.start=2023-01-01&published_at.end=2023-01-31&source.rank.opr.min=6&api_key=YOUR_API_KEY"
品牌赞助影响分析请求:
curl -X GET "https://api.apitube.io/v1/news/everything?title=Rolex,sponsorship,tournament&published_at.start=2023-01-01&published_at.end=2023-01-31&sort.by=sentiment.overall.score&sort.order=desc&api_key=YOUR_API_KEY"
品牌危机管理跟踪请求:
curl -X GET "https://api.apitube.io/v1/news/everything?title=Boeing%20737%20MAX&sentiment.overall.polarity=negative&published_at.start=2019-03-01&published_at.end=2019-03-31&sort.by=published_at&sort.order=asc&api_key=YOUR_API_KEY"
查看品牌覆盖在多种语言中是正面、负面还是中性:
curl -X GET "https://api.apitube.io/v1/news/everything?language.code=en,fr,de,ja&title=Netflix&sentiment.overall.polarity=positive&published_at.start=2023-01-01&published_at.end=2023-01-31&sort.by=published_at&api_key=YOUR_API_KEY"

相关示例

食谱 cURL

curl --location --globoff --request POST 'https://api.apitube.io/v1/news/everything?title=Samsung&source.country.code=us%2Ckr%2Cin&sort.by=sentiment.overall.score&sort.order=desc&published_at.start=2023-01-01&source.rank.opr.min=6&api_key=YOUR_API_KEY&per_page=25' \
--header 'Content-Type: application/json'

食谱 Python

import requests

url = "https://api.apitube.io/v1/news/everything"

querystring = {
    "title": "Samsung",
    "source.country.code": "us,kr,in",
    "sort.by": "sentiment.overall.score",
    "sort.order": "desc",
    "published_at.start": "2023-01-01",
    "source.rank.opr.min": 6,
    "api_key": "YOUR_API_KEY",
    "per_page": 25
}
response = requests.request("GET", url, params=querystring)

print(response.text)

食谱 Javascript

import axios from "axios"

const options = {
		method: 'GET',
		url: 'https://api.apitube.io/v1/news/everything',
		params: {
    "title": "Samsung",
    "source.country.code": "us,kr,in",
    "sort.by": "sentiment.overall.score",
    "sort.order": "desc",
    "published_at.start": "2023-01-01",
    "source.rank.opr.min": 6,
    "api_key": "YOUR_API_KEY",
    "per_page": 25
}};

axios.request(options).then(function (response) {
		console.log(response.data);
}).catch(function (error) {
		console.error(error);
});

食谱 PHP

require 'vendor/autoload.php';

use GuzzleHttp\Client;

$client = new Client();
$response = $client->request('GET', 'https://api.apitube.io/v1/news/everything', [
	'query' => [
    'title' => 'Samsung',
    'source.country.code' => 'us,kr,in',
    'sort.by' => 'sentiment.overall.score',
    'sort.order' => 'desc',
    'published_at.start' => '2023-01-01',
    'source.rank.opr.min' => 6,
    'api_key' => 'YOUR_API_KEY',
    'per_page' => 25,
],
]);

echo $response->getBody();

食谱 Java

OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
		.url("https://api.apitube.io/v1/news/everything?title=Samsung&source.country.code=us%2Ckr%2Cin&sort.by=sentiment.overall.score&sort.order=desc&published_at.start=2023-01-01&source.rank.opr.min=6&api_key=YOUR_API_KEY&per_page=25")
		.method("POST", body)
		.addHeader("Content-Type", "application/json")
		.build();
Response response = client.newCall(request).execute();
		
  • CNN
  • Techcrunch
  • Vox
  • Apple
  • Microsoft
  • IBM
  • Bloomberg
  • Spotify
我们使用 Cookie

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