Komplet nyhedsovervågningsløsning
Overvåg nyheder med filtrering, sortering, artikelantal efter felt, søgehøjdepunkter og eksport
Inputparametre
| Parameter | Beskrivelse | Type | Standard | Påkrævet |
|---|---|---|---|---|
| organization.name | Flere organisationer (kommasepareret). | string | Ja | |
| title | Nøgleord (kommasepareret). | string | Ja | |
| category.id | Kategorifilter. | string | Ja | |
| sentiment.overall.polarity | Filtrer efter tone. | string | Ja | |
| published_at.start | Startdato-filter. | string | Ja | |
| source.rank.opr.min | Minimum kildekvalitet. | string | Ja | |
| is_duplicate | Ekskluder dubletter. | integer | 0 | Ja |
| has_image | Kræv billeder. | integer | 1 | Ja |
| sort.by | Sorter efter kvalitetsscore. | string | Ja | |
| sort.order | Faldende rækkefølge. | string | Ja | |
| facet | Tæl artikler efter felt. | boolean | true | Ja |
| facet.field | Felter, som artiklerne skal tælles efter. | string | Ja | |
| hl | Aktivér fremhævning. | boolean | true | Ja |
| hl.fl | Felter til at fremhæve. | string | Ja | |
| per_page | Maksimalt antal artikler, der skal hentes | integer | 50 | Ja |
| api_key | Din API nøgle | string | Ja |
Workflow-eksempler
Komplet nyhedsovervågningsløsning:
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&published_at.end=2024-01-31&source.rank.opr.min=5&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"
Eksporter til 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
Relaterede eksempler
- Analyse-dashboard
- Spor dine konkurrenter
- Eksporter artikler til Excel
- Sorter efter kvalitetsscore
- Hent premium-kildeartikler
Opskrift på 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=5&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'
Opskrift på 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": 5,
"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)
Opskrift på 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": 5,
"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);
});
Opskrift på 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' => 5,
'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();
Opskrift på 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=5&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();