市場を横断するブランド評判分析
ソースの品質と日付範囲でフィルタリングして、複数の国にわたるブランドカバレッジが肯定的、否定的、または中立的であるかどうかを確認します
入力パラメータ
| パラメータ | 説明 | タイプ | デフォルト | 必須 |
|---|---|---|---|---|
| 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 | 取得する記事の最大数 | integer | 25 | いいえ |
ワークフロー例
市場を横断するブランド評判分析のリクエスト:
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();