Complete news monitoring solution

Comprehensive news monitoring with all advanced features: filtering, sorting, faceting, highlighting, and export

输入参数

ParameterDescriptionTypeDefaultRequired
organization.nameMultiple organizations (comma-separated).stringYes
titleKeywords (comma-separated).stringYes
category.idCategory filter.stringYes
sentiment.overall.polaritySentiment filter.stringYes
published_at.startStart date filter.stringYes
source.rank.opr.minMinimum source quality.stringYes
is_duplicateExclude duplicates.integer0Yes
has_imageRequire images.integer1Yes
sort.bySort by quality score.stringYes
sort.orderDescending order.stringYes
facetEnable faceting.booleantrueYes
facet.fieldFields for faceting.stringYes
hlEnable highlighting.booleantrueYes
hl.flFields to highlight.stringYes
per_pageMaximum number of articles to retrieve.integer50Yes
api_keyYour API key.stringYes

Workflow examples

Request for complete news monitoring solution:
curl -X GET "https://api.apitube.io/v1/news/everything?organization.name=Apple,Google,Microsoft&title=innovation,technology&category.id=medtop:04000000&sentiment.overall.polarity=positive&published_at.start=2024-01-01&source.rank.opr.min=0.7&is_duplicate=0&has_image=1&sort.by=quality&sort.order=desc&facet=true&facet.field=source.id,language.id&hl=true&hl.fl=title,description&per_page=50&api_key=YOUR_API_KEY"
Request for export to Excel:
curl -X GET "https://api.apitube.io/v1/news/everything?organization.name=Apple,Google,Microsoft&published_at.start=2024-01-01&export=xlsx&api_key=YOUR_API_KEY" -o monitoring_report.xlsx

食谱 cURL

curl --location --globoff --request POST 'https://api.apitube.io/v1/news/everything?organization.name=Apple%2CGoogle%2CMicrosoft&title=innovation%2Ctechnology&category.id=medtop%3A04000000&sentiment.overall.polarity=positive&published_at.start=2024-01-01&source.rank.opr.min=0.7&is_duplicate=0&has_image=1&sort.by=quality&sort.order=desc&facet=1&facet.field=source.id%2Clanguage.id&hl=1&hl.fl=title%2Cdescription&per_page=50&api_key=YOUR_API_KEY' \
--header 'Content-Type: application/json'

食谱 Python

import requests

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

querystring = {
    "organization.name": "Apple,Google,Microsoft",
    "title": "innovation,technology",
    "category.id": "medtop:04000000",
    "sentiment.overall.polarity": "positive",
    "published_at.start": "2024-01-01",
    "source.rank.opr.min": 0.7,
    "is_duplicate": 0,
    "has_image": 1,
    "sort.by": "quality",
    "sort.order": "desc",
    "facet": true,
    "facet.field": "source.id,language.id",
    "hl": true,
    "hl.fl": "title,description",
    "per_page": 50,
    "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: {
    "organization.name": "Apple,Google,Microsoft",
    "title": "innovation,technology",
    "category.id": "medtop:04000000",
    "sentiment.overall.polarity": "positive",
    "published_at.start": "2024-01-01",
    "source.rank.opr.min": 0.7,
    "is_duplicate": 0,
    "has_image": 1,
    "sort.by": "quality",
    "sort.order": "desc",
    "facet": true,
    "facet.field": "source.id,language.id",
    "hl": true,
    "hl.fl": "title,description",
    "per_page": 50,
    "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' => [
    'organization.name' => 'Apple,Google,Microsoft',
    'title' => 'innovation,technology',
    'category.id' => 'medtop:04000000',
    'sentiment.overall.polarity' => 'positive',
    'published_at.start' => '2024-01-01',
    'source.rank.opr.min' => 0.7,
    'is_duplicate' => 0,
    'has_image' => 1,
    'sort.by' => 'quality',
    'sort.order' => 'desc',
    'facet' => 1,
    'facet.field' => 'source.id,language.id',
    'hl' => 1,
    'hl.fl' => 'title,description',
    'per_page' => 50,
    '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?organization.name=Apple%2CGoogle%2CMicrosoft&title=innovation%2Ctechnology&category.id=medtop%3A04000000&sentiment.overall.polarity=positive&published_at.start=2024-01-01&source.rank.opr.min=0.7&is_duplicate=0&has_image=1&sort.by=quality&sort.order=desc&facet=1&facet.field=source.id%2Clanguage.id&hl=1&hl.fl=title%2Cdescription&per_page=50&api_key=YOUR_API_KEY")
		.method("POST", body)
		.addHeader("Content-Type", "application/json")
		.build();
Response response = client.newCall(request).execute();
		
  • CNN
  • Techcrunch
  • Vox
  • Apple
  • Microsoft
  • IBM
  • Bloomberg
  • Spotify