Analysieren Sie Nachrichten über geopolitische Ereignisse aus bestimmten Regionen

Verfolgen Sie geopolitische Ereignisse an mehreren Orten, filtern Sie nach Kategorie und Datumsbereich

Eingabeparameter

ParameterBeschreibungTypStandardErforderlich
location.nameMehrere Standorte (kommagetrennt).stringJa
category.idKategoriefilter.stringJa
published_at.startStartdatumsfilter.stringJa
sort.bySortieren nach Veröffentlichungsdatum.stringJa
sort.orderAufsteigende Reihenfolge für Zeitstrahl.stringJa
source.rank.opr.minMindest-Quellenqualität.stringJa
api_keyIhr API SchlüsselstringJa
per_pageMaximale Anzahl von abzurufenden Artikelninteger40Nein

Workflow-Beispiele

Analyse geopolitischer Ereignisse:
curl -X GET "https://api.apitube.io/v1/news/everything?location.name=France,Italy&category.id=medtop:11000000&published_at.start=2022-02-01&sort.by=published_at&sort.order=asc&api_key=YOUR_API_KEY"
Analyse der Berichterstattung über Naturkatastrophen:
curl -X GET "https://api.apitube.io/v1/news/everything?location.name=Florida,Texas&title=hurricane&published_at.start=2022-06-01&published_at.end=2022-07-01&sort.by=published_at&sort.order=asc&api_key=YOUR_API_KEY"
Vergleichen Sie den Ton der Tourismusberichterstattung nach Standort:
curl -X GET "https://api.apitube.io/v1/news/everything?location.name=Maldives,Seychelles&sentiment.overall.polarity=positive&published_at.start=2023-01-01&sort.by=published_at&api_key=YOUR_API_KEY"
Vergleich regionaler Nachrichten in verschiedenen Sprachen:
curl -X GET "https://api.apitube.io/v1/news/everything?language.code=ar,he&category.id=medtop:11000000&published_at.start=2023-01-01&sort.by=sentiment.overall.score&api_key=YOUR_API_KEY"

Verwandte Beispiele

Rezept für cURL

curl --location --globoff --request POST 'https://api.apitube.io/v1/news/everything?location.name=France%2CItaly&category.id=medtop%3A11000000&published_at.start=2022-02-01&sort.by=published_at&sort.order=asc&source.rank.opr.min=0.6&api_key=YOUR_API_KEY&per_page=40' \
--header 'Content-Type: application/json'

Rezept für Python

import requests

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

querystring = {
    "location.name": "France,Italy",
    "category.id": "medtop:11000000",
    "published_at.start": "2022-02-01",
    "sort.by": "published_at",
    "sort.order": "asc",
    "source.rank.opr.min": 0.6,
    "api_key": "YOUR_API_KEY",
    "per_page": 40
}
response = requests.request("GET", url, params=querystring)

print(response.text)

Rezept für Javascript

import axios from "axios"

const options = {
		method: 'GET',
		url: 'https://api.apitube.io/v1/news/everything',
		params: {
    "location.name": "France,Italy",
    "category.id": "medtop:11000000",
    "published_at.start": "2022-02-01",
    "sort.by": "published_at",
    "sort.order": "asc",
    "source.rank.opr.min": 0.6,
    "api_key": "YOUR_API_KEY",
    "per_page": 40
}};

axios.request(options).then(function (response) {
		console.log(response.data);
}).catch(function (error) {
		console.error(error);
});

Rezept für PHP

require 'vendor/autoload.php';

use GuzzleHttp\Client;

$client = new Client();
$response = $client->request('GET', 'https://api.apitube.io/v1/news/everything', [
	'query' => [
    'location.name' => 'France,Italy',
    'category.id' => 'medtop:11000000',
    'published_at.start' => '2022-02-01',
    'sort.by' => 'published_at',
    'sort.order' => 'asc',
    'source.rank.opr.min' => 0.6,
    'api_key' => 'YOUR_API_KEY',
    'per_page' => 40,
],
]);

echo $response->getBody();

Rezept für 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?location.name=France%2CItaly&category.id=medtop%3A11000000&published_at.start=2022-02-01&sort.by=published_at&sort.order=asc&source.rank.opr.min=0.6&api_key=YOUR_API_KEY&per_page=40")
		.method("POST", body)
		.addHeader("Content-Type", "application/json")
		.build();
Response response = client.newCall(request).execute();
		
  • CNN
  • Techcrunch
  • Vox
  • Apple
  • Microsoft
  • IBM
  • Bloomberg
  • Spotify
Wir verwenden Cookies

Durch Klicken auf "Akzeptieren" stimmen Sie der Verwendung von Cookies auf Ihrem Gerät zu, damit die Website funktioniert und für Analysen.