Analysieren Sie, ob die Berichterstattung über mehrere Dimensionen hinweg positiv, negativ oder neutral ist, gefiltert nach Quelle
Prüfen Sie, ob die Berichterstattung über mehrere Organisationen über mehrere Länder hinweg positiv, negativ oder neutral ist, gefiltert nach hochwertigen Quellen und Datumsbereich
Eingabeparameter
| Parameter | Beschreibung | Typ | Standard | Erforderlich |
|---|---|---|---|---|
| sentiment.overall.score.min | Mindest-Sentiment-Score (0.5 = moderat positiv) | float | Ja | |
| category.id | Kategoriefilter. | string | Ja | |
| organization.name | Mehrere Organisationen (kommagetrennt). | string | Ja | |
| sort.by | Sortieren nach Sentiment-Score. | string | Ja | |
| sort.order | Absteigende Reihenfolge. | string | Ja | |
| api_key | Ihr API Schlüssel | string | Ja | |
| per_page | Maximale Anzahl von abzurufenden Artikeln | integer | 20 | Nein |
Workflow-Beispiele
Prüfen Sie, ob die Berichterstattung in mehreren Dimensionen positiv, negativ oder neutral ist:
curl -X GET "https://api.apitube.io/v1/news/everything?sentiment.overall.score.min=0.5&category.id=medtop:04000000&organization.name=Tesla,Google&sort.by=sentiment.overall.score&sort.order=desc&api_key=YOUR_API_KEY"
Vergleichen Sie, ob die Berichterstattung in verschiedenen Märkten positiv, negativ oder neutral ist:
curl -X GET "https://api.apitube.io/v1/news/everything?sentiment.overall.polarity=negative&source.country.code=us,gb,de&category.id=medtop:07000000&published_at.start=2023-01-01&published_at.end=2023-12-31&api_key=YOUR_API_KEY"
Vergleichen Sie den Berichterstattungston über Quellentypen hinweg:
curl -X GET "https://api.apitube.io/v1/news/everything?title=climate%20change&sentiment.overall.score.min=0.6&published_at.start=2023-01-01&published_at.end=2023-01-31&api_key=YOUR_API_KEY"
Verwandte Beispiele
- Finden Sie Artikel, bei denen der Ton der Überschrift vom Ton des Artikels abweicht
- Nachrichten mit positiver Tonalität abrufen
- Holen Sie sich Artikel über Elon Musk mit einer positiven Tonalität
- Verfolgen Sie Ihre Konkurrenten
- Sortieren nach Engagement-Score
Rezept für cURL
curl --location --globoff --request POST 'https://api.apitube.io/v1/news/everything?sentiment.overall.score.min=0.5&category.id=medtop%3A04000000&organization.name=Tesla%2CGoogle&sort.by=sentiment.overall.score&sort.order=desc&api_key=YOUR_API_KEY&per_page=20' \
--header 'Content-Type: application/json'
Rezept für Python
import requests
url = "https://api.apitube.io/v1/news/everything"
querystring = {
"sentiment.overall.score.min": 0.5,
"category.id": "medtop:04000000",
"organization.name": "Tesla,Google",
"sort.by": "sentiment.overall.score",
"sort.order": "desc",
"api_key": "YOUR_API_KEY",
"per_page": 20
}
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: {
"sentiment.overall.score.min": 0.5,
"category.id": "medtop:04000000",
"organization.name": "Tesla,Google",
"sort.by": "sentiment.overall.score",
"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);
});
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' => [
'sentiment.overall.score.min' => 0.5,
'category.id' => 'medtop:04000000',
'organization.name' => 'Tesla,Google',
'sort.by' => 'sentiment.overall.score',
'sort.order' => 'desc',
'api_key' => 'YOUR_API_KEY',
'per_page' => 20,
],
]);
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?sentiment.overall.score.min=0.5&category.id=medtop%3A04000000&organization.name=Tesla%2CGoogle&sort.by=sentiment.overall.score&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();