人物が言及されている組織と場所を見つける

組織や場所の文脈で特定の人物に言及している記事を検索し、報道が肯定的、否定的、または中立的であるかを表示します

入力パラメータ

パラメータ説明タイプデフォルト必須
person.name検索する人物名。stringはい
organization.name組織名フィルター。stringはい
published_at.start開始日フィルター。stringはい
sort.by公開日で並べ替え。stringはい
sort.order降順。stringはい
api_keyあなたのAPIキーstringはい
per_page取得する記事の最大数integer20いいえ

ワークフロー例

人物が言及されている組織を見つける:
curl -X GET "https://api.apitube.io/v1/news/everything?person.name=Elon%20Musk&organization.name=Tesla&published_at.start=2024-01-01&sort.by=published_at&sort.order=desc&api_key=YOUR_API_KEY"
個人のカバレッジが異なるソースで肯定的、否定的、または中立的であるかどうかを確認します:
curl -X GET "https://api.apitube.io/v1/news/everything?person.name=Elon%20Musk&source.domain=cnn.com,foxnews.com,bbc.com&sort.by=sentiment.overall.score&sort.order=desc&api_key=YOUR_API_KEY"
著名人の論争的な報道を時間とともに追跡します:
curl -X GET "https://api.apitube.io/v1/news/everything?person.name=Elon%20Musk&sentiment.overall.polarity=negative&published_at.start=2023-01-01&published_at.end=2023-12-31&sort.by=published_at&sort.order=asc&api_key=YOUR_API_KEY"
複数拠点におけるビジネスインパクトスタディ:
curl -X GET "https://api.apitube.io/v1/news/everything?location.name=United%20States,China,India&category.id=medtop:04000000&organization.name=Apple,Google,Microsoft&published_at.start=2023-01-01&api_key=YOUR_API_KEY"

関連する例

のためのレシピ cURL

curl --location --globoff --request POST 'https://api.apitube.io/v1/news/everything?person.name=Elon+Musk&organization.name=Tesla&published_at.start=2024-01-01&sort.by=published_at&sort.order=desc&api_key=YOUR_API_KEY&per_page=20' \
--header 'Content-Type: application/json'

のためのレシピ Python

import requests

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

querystring = {
    "person.name": "Elon Musk",
    "organization.name": "Tesla",
    "published_at.start": "2024-01-01",
    "sort.by": "published_at",
    "sort.order": "desc",
    "api_key": "YOUR_API_KEY",
    "per_page": 20
}
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: {
    "person.name": "Elon Musk",
    "organization.name": "Tesla",
    "published_at.start": "2024-01-01",
    "sort.by": "published_at",
    "sort.order": "desc",
    "api_key": "YOUR_API_KEY",
    "per_page": 20
}};

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' => [
    'person.name' => 'Elon Musk',
    'organization.name' => 'Tesla',
    'published_at.start' => '2024-01-01',
    'sort.by' => 'published_at',
    'sort.order' => 'desc',
    'api_key' => 'YOUR_API_KEY',
    'per_page' => 20,
],
]);

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?person.name=Elon+Musk&organization.name=Tesla&published_at.start=2024-01-01&sort.by=published_at&sort.order=desc&api_key=YOUR_API_KEY&per_page=20")
		.method("POST", body)
		.addHeader("Content-Type", "application/json")
		.build();
Response response = client.newCall(request).execute();
		
  • CNN
  • Techcrunch
  • Vox
  • Apple
  • Microsoft
  • IBM
  • Bloomberg
  • Spotify
クッキーの使用について

「同意する」をクリックすると、サイトの機能と分析のためにデバイスにクッキーが保存されることに同意したことになります。