トーン分析(ポジティブ、ネガティブ、ニュートラル)付きのビジュアルニュースを取得

検証済みのソースから高品質な画像とポジティブなトーンのプレミアムコンテンツを取得

入力パラメータ

パラメータ説明タイプデフォルト必須
media.images.width.min画像の最小幅(ピクセル単位)。integerはい
media.images.height.min画像の最小高さ(ピクセル単位)。integerはい
media.images.count画像の最小数。integerはい
sentiment.overall.polarity肯定的な感情でフィルタリングします。stringはい
category.idカテゴリフィルター。stringはい
source.rank.opr.min最小ソース品質ランク。stringはい
api_keyあなたのAPIキーstringはい
per_page取得する記事の最大数integer15いいえ

ワークフロー例

高品質なビジュアルニュース:
curl -X GET "https://api.apitube.io/v1/news/everything?media.images.width.min=1200&media.images.height.min=800&media.images.count=2&sentiment.overall.polarity=positive&category.id=medtop:13000000&source.rank.opr.min=5&api_key=YOUR_API_KEY"
画像と動画を含むコンテンツを選択します:
curl -X GET "https://api.apitube.io/v1/news/everything?media.images.count=3&media.videos.count=1&category.id=medtop:13000000&published_at.start=2023-01-01&sort.by=published_at&sort.order=desc&api_key=YOUR_API_KEY"
教育トピックのビデオコンテンツ分析:
curl -X GET "https://api.apitube.io/v1/news/everything?media.videos.count=2&title=education,learning,tutorial&published_at.start=2023-01-01&published_at.end=2023-01-31&sort.by=media.videos.count&sort.order=desc&api_key=YOUR_API_KEY"

関連する例

のためのレシピ cURL

curl --location --globoff --request POST 'https://api.apitube.io/v1/news/everything?media.images.width.min=1200&media.images.height.min=800&media.images.count=2&sentiment.overall.polarity=positive&category.id=medtop%3A13000000&source.rank.opr.min=5&api_key=YOUR_API_KEY&per_page=15' \
--header 'Content-Type: application/json'

のためのレシピ Python

import requests

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

querystring = {
    "media.images.width.min": 1200,
    "media.images.height.min": 800,
    "media.images.count": 2,
    "sentiment.overall.polarity": "positive",
    "category.id": "medtop:13000000",
    "source.rank.opr.min": 5,
    "api_key": "YOUR_API_KEY",
    "per_page": 15
}
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: {
    "media.images.width.min": 1200,
    "media.images.height.min": 800,
    "media.images.count": 2,
    "sentiment.overall.polarity": "positive",
    "category.id": "medtop:13000000",
    "source.rank.opr.min": 5,
    "api_key": "YOUR_API_KEY",
    "per_page": 15
}};

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' => [
    'media.images.width.min' => 1200,
    'media.images.height.min' => 800,
    'media.images.count' => 2,
    'sentiment.overall.polarity' => 'positive',
    'category.id' => 'medtop:13000000',
    'source.rank.opr.min' => 5,
    'api_key' => 'YOUR_API_KEY',
    'per_page' => 15,
],
]);

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?media.images.width.min=1200&media.images.height.min=800&media.images.count=2&sentiment.overall.polarity=positive&category.id=medtop%3A13000000&source.rank.opr.min=5&api_key=YOUR_API_KEY&per_page=15")
		.method("POST", body)
		.addHeader("Content-Type", "application/json")
		.build();
Response response = client.newCall(request).execute();
		
  • CNN
  • Techcrunch
  • Vox
  • Apple
  • Microsoft
  • IBM
  • Bloomberg
  • Spotify
クッキーの使用について

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