メディアフィルタリングによるカテゴリ時系列分析
メディア要件とソース品質フィルタリングを使用して、カテゴリ内の記事を時間の経過とともに分析する
入力パラメータ
| パラメータ | 説明 | タイプ | デフォルト | 必須 |
|---|---|---|---|---|
| category.id | カテゴリフィルター。 | string | はい | |
| published_at.start | 時間範囲の開始日。 | string | はい | |
| published_at.end | 期間の終了日。 | string | はい | |
| sort.by | 公開日で並べ替え。 | string | はい | |
| sort.order | タイムラインの昇順。 | string | はい | |
| per_page | 記事の最大数 (時系列の場合は 100)。 | integer | 100 | はい |
| media.images.count | 画像の最小数。 | integer | はい | |
| source.rank.opr.min | 最小ソース品質。 | string | はい | |
| api_key | あなたのAPIキー | string | はい |
ワークフロー例
カテゴリの時系列分析のリクエスト:
curl -X GET "https://api.apitube.io/v1/news/everything?category.id=medtop:04000000&published_at.start=2023-01-01&published_at.end=2023-12-31&sort.by=published_at&sort.order=asc&per_page=100&api_key=YOUR_API_KEY"
カテゴリベースのメディア分析のリクエスト:
curl -X GET "https://api.apitube.io/v1/news/everything?category.id=medtop:01000000&media.images.count=3&source.rank.opr.min=6&published_at.start=2023-01-01&sort.by=media.images.count&sort.order=desc&api_key=YOUR_API_KEY"
さまざまなカテゴリにわたるカバレッジが肯定的、否定的、または中立的であるかを比較します:
curl -X GET "https://api.apitube.io/v1/news/everything?category.id=medtop:20000003,medtop:11000000,medtop:20000607&sentiment.overall.polarity=positive&published_at.start=2023-01-01&published_at.end=2023-12-31&sort.by=category.id&api_key=YOUR_API_KEY"
関連する例
のためのレシピ cURL
curl --location --globoff --request POST 'https://api.apitube.io/v1/news/everything?category.id=medtop%3A04000000&published_at.start=2023-01-01&published_at.end=2023-12-31&sort.by=published_at&sort.order=asc&per_page=100&media.images.count=3&source.rank.opr.min=6&api_key=YOUR_API_KEY' \
--header 'Content-Type: application/json'
のためのレシピ Python
import requests
url = "https://api.apitube.io/v1/news/everything"
querystring = {
"category.id": "medtop:04000000",
"published_at.start": "2023-01-01",
"published_at.end": "2023-12-31",
"sort.by": "published_at",
"sort.order": "asc",
"per_page": 100,
"media.images.count": 3,
"source.rank.opr.min": 6,
"api_key": "YOUR_API_KEY"
}
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: {
"category.id": "medtop:04000000",
"published_at.start": "2023-01-01",
"published_at.end": "2023-12-31",
"sort.by": "published_at",
"sort.order": "asc",
"per_page": 100,
"media.images.count": 3,
"source.rank.opr.min": 6,
"api_key": "YOUR_API_KEY"
}};
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' => [
'category.id' => 'medtop:04000000',
'published_at.start' => '2023-01-01',
'published_at.end' => '2023-12-31',
'sort.by' => 'published_at',
'sort.order' => 'asc',
'per_page' => 100,
'media.images.count' => 3,
'source.rank.opr.min' => 6,
'api_key' => 'YOUR_API_KEY',
],
]);
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?category.id=medtop%3A04000000&published_at.start=2023-01-01&published_at.end=2023-12-31&sort.by=published_at&sort.order=asc&per_page=100&media.images.count=3&source.rank.opr.min=6&api_key=YOUR_API_KEY")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();