最も言及された人物、組織、場所、グループ化およびカウント
最も頻繁に言及されている人物、企業、または場所を検索します。名前ごとの記事数をカウントし、名前とソースの品質でフィルタリングします
入力パラメータ
| パラメータ | 説明 | タイプ | デフォルト | 必須 |
|---|---|---|---|---|
| facet | フィールドごとに記事数をカウントします。 | boolean | true | はい |
| facet.field | 記事をカウントするフィールド (entity.id)。 | string | はい | |
| facet.limit | グループ化された値の最大数 | integer | 20 | はい |
| is_verified_source | 検証済みのソースをフィルタリングします。 | integer | 1 | はい |
| source.rank.opr.min | 最小ソース品質。 | string | はい | |
| published_at.start | 開始日フィルター。 | string | はい | |
| api_key | あなたのAPIキー | string | はい | |
| per_page | 取得する記事の最大数 | integer | 30 | いいえ |
ワークフロー例
最も言及された人物、組織、場所:
curl -X GET "https://api.apitube.io/v1/news/everything?facet=true&facet.field=entity.id&facet.limit=20&api_key=YOUR_API_KEY"
記事に一緒に登場する人物、組織、場所を確認します:
curl -X GET "https://api.apitube.io/v1/news/everything?entity.id=1278268,1282301&published_at.start=2023-01-01&published_at.end=2023-12-31&sort.by=sentiment.overall.score&sort.order=desc&api_key=YOUR_API_KEY"
関連する例
のためのレシピ cURL
curl --location --globoff --request POST 'https://api.apitube.io/v1/news/everything?facet=1&facet.field=entity.id&facet.limit=20&is_verified_source=1&source.rank.opr.min=0.6&published_at.start=2024-01-01&api_key=YOUR_API_KEY&per_page=30' \
--header 'Content-Type: application/json'
のためのレシピ Python
import requests
url = "https://api.apitube.io/v1/news/everything"
querystring = {
"facet": true,
"facet.field": "entity.id",
"facet.limit": 20,
"is_verified_source": 1,
"source.rank.opr.min": 0.6,
"published_at.start": "2024-01-01",
"api_key": "YOUR_API_KEY",
"per_page": 30
}
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: {
"facet": true,
"facet.field": "entity.id",
"facet.limit": 20,
"is_verified_source": 1,
"source.rank.opr.min": 0.6,
"published_at.start": "2024-01-01",
"api_key": "YOUR_API_KEY",
"per_page": 30
}};
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' => [
'facet' => 1,
'facet.field' => 'entity.id',
'facet.limit' => 20,
'is_verified_source' => 1,
'source.rank.opr.min' => 0.6,
'published_at.start' => '2024-01-01',
'api_key' => 'YOUR_API_KEY',
'per_page' => 30,
],
]);
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?facet=1&facet.field=entity.id&facet.limit=20&is_verified_source=1&source.rank.opr.min=0.6&published_at.start=2024-01-01&api_key=YOUR_API_KEY&per_page=30")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();