Base URL
Authentication
bearerAuth
Type: http
Send Authorization header as: Bearer secret_key:subscription_id
/news-headlines
Entity Headlines
Returns news headlines for a given Wikidata entity (wikidata_id).
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
wikidata_id | string | query | Required | Wikidata entity ID (e.g., Q42). |
country_code | string | query | Optional | |
lang_code | string | query | Optional | |
search_after | string | query | Optional | Opaque pagination cursor used only with `sort=latest` (publish-time sort). |
count | integer | query | Optional | Default: 20 |
sort | string | query | Optional | Ranking mode: latest by publish time (default) or relevance. |
Code Examples
curl --request GET \ --url 'https://api.pressmonitor.com/news-wikidata/v1/news-headlines?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
import requests url = "https://api.pressmonitor.com/news-wikidata/v1/news-headlines" querystring = {"wikidata_id":"SOME_STRING_VALUE","country_code":"SOME_STRING_VALUE","lang_code":"SOME_STRING_VALUE","search_after":"SOME_STRING_VALUE","count":"SOME_INTEGER_VALUE","sort":"SOME_STRING_VALUE"} headers = {"Authorization": "Bearer REPLACE_BEARER_TOKEN"} response = requests.request("GET", url, headers=headers, params=querystring) print(response.text)
const http = require("https"); const options = { "method": "GET", "hostname": "api.pressmonitor.com", "port": null, "path": "/news-wikidata/v1/news-headlines?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://api.pressmonitor.com/news-wikidata/v1/news-headlines?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE") .get() .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .build(); Response response = client.newCall(request).execute();
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.pressmonitor.com/news-wikidata/v1/news-headlines?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer REPLACE_BEARER_TOKEN" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
Responses
Content-Type: application/json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
/news-briefs
Entity Briefs
Returns headlines and brief AI-generated summaries for a given Wikidata entity (wikidata_id).
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
wikidata_id | string | query | Required | Wikidata entity ID (e.g., Q42). |
country_code | string | query | Optional | |
lang_code | string | query | Optional | |
search_after | string | query | Optional | Opaque pagination cursor used only with `sort=latest` (publish-time sort). |
count | integer | query | Optional | Default: 20 |
sort | string | query | Optional | Ranking mode: latest by publish time (default) or relevance. |
Code Examples
curl --request GET \ --url 'https://api.pressmonitor.com/news-wikidata/v1/news-briefs?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
import requests url = "https://api.pressmonitor.com/news-wikidata/v1/news-briefs" querystring = {"wikidata_id":"SOME_STRING_VALUE","country_code":"SOME_STRING_VALUE","lang_code":"SOME_STRING_VALUE","search_after":"SOME_STRING_VALUE","count":"SOME_INTEGER_VALUE","sort":"SOME_STRING_VALUE"} headers = {"Authorization": "Bearer REPLACE_BEARER_TOKEN"} response = requests.request("GET", url, headers=headers, params=querystring) print(response.text)
const http = require("https"); const options = { "method": "GET", "hostname": "api.pressmonitor.com", "port": null, "path": "/news-wikidata/v1/news-briefs?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://api.pressmonitor.com/news-wikidata/v1/news-briefs?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE") .get() .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .build(); Response response = client.newCall(request).execute();
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.pressmonitor.com/news-wikidata/v1/news-briefs?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer REPLACE_BEARER_TOKEN" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
Responses
Content-Type: application/json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
/news-fulltext
Entity Full Articles
Returns full articles for a given Wikidata entity (wikidata_id).
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
wikidata_id | string | query | Required | Wikidata entity ID (e.g., Q42). |
country_code | string | query | Optional | |
lang_code | string | query | Optional | |
search_after | string | query | Optional | Opaque pagination cursor used only with `sort=latest` (publish-time sort). |
count | integer | query | Optional | Default: 20 |
sort | string | query | Optional | Ranking mode: latest by publish time (default) or relevance. |
Code Examples
curl --request GET \ --url 'https://api.pressmonitor.com/news-wikidata/v1/news-fulltext?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
import requests url = "https://api.pressmonitor.com/news-wikidata/v1/news-fulltext" querystring = {"wikidata_id":"SOME_STRING_VALUE","country_code":"SOME_STRING_VALUE","lang_code":"SOME_STRING_VALUE","search_after":"SOME_STRING_VALUE","count":"SOME_INTEGER_VALUE","sort":"SOME_STRING_VALUE"} headers = {"Authorization": "Bearer REPLACE_BEARER_TOKEN"} response = requests.request("GET", url, headers=headers, params=querystring) print(response.text)
const http = require("https"); const options = { "method": "GET", "hostname": "api.pressmonitor.com", "port": null, "path": "/news-wikidata/v1/news-fulltext?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://api.pressmonitor.com/news-wikidata/v1/news-fulltext?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE") .get() .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .build(); Response response = client.newCall(request).execute();
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.pressmonitor.com/news-wikidata/v1/news-fulltext?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer REPLACE_BEARER_TOKEN" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
Responses
Content-Type: application/json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
/news-fulltext-metadata
Entity Full Articles + Metadata
Returns full articles with enriched metadata for a given Wikidata entity (wikidata_id).
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
wikidata_id | string | query | Required | Wikidata entity ID (e.g., Q42). |
country_code | string | query | Optional | |
lang_code | string | query | Optional | |
search_after | string | query | Optional | Opaque pagination cursor used only with `sort=latest` (publish-time sort). |
count | integer | query | Optional | Default: 20 |
sort | string | query | Optional | Ranking mode: latest by publish time (default) or relevance. |
Code Examples
curl --request GET \ --url 'https://api.pressmonitor.com/news-wikidata/v1/news-fulltext-metadata?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
import requests url = "https://api.pressmonitor.com/news-wikidata/v1/news-fulltext-metadata" querystring = {"wikidata_id":"SOME_STRING_VALUE","country_code":"SOME_STRING_VALUE","lang_code":"SOME_STRING_VALUE","search_after":"SOME_STRING_VALUE","count":"SOME_INTEGER_VALUE","sort":"SOME_STRING_VALUE"} headers = {"Authorization": "Bearer REPLACE_BEARER_TOKEN"} response = requests.request("GET", url, headers=headers, params=querystring) print(response.text)
const http = require("https"); const options = { "method": "GET", "hostname": "api.pressmonitor.com", "port": null, "path": "/news-wikidata/v1/news-fulltext-metadata?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://api.pressmonitor.com/news-wikidata/v1/news-fulltext-metadata?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE") .get() .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .build(); Response response = client.newCall(request).execute();
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.pressmonitor.com/news-wikidata/v1/news-fulltext-metadata?wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer REPLACE_BEARER_TOKEN" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
Responses
Content-Type: application/json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
/news-headlines-translated
Entity Headlines (Translated)
Returns headlines for a given Wikidata entity (wikidata_id), translated to target_lang_code.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
target_lang_code | string | query | Required | |
wikidata_id | string | query | Required | Wikidata entity ID (e.g., Q42). |
country_code | string | query | Optional | |
lang_code | string | query | Optional | |
search_after | string | query | Optional | Opaque pagination cursor used only with `sort=latest` (publish-time sort). |
count | integer | query | Optional | Default: 20 |
sort | string | query | Optional | Ranking mode: latest by publish time (default) or relevance. |
Code Examples
curl --request GET \ --url 'https://api.pressmonitor.com/news-wikidata/v1/news-headlines-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
import requests url = "https://api.pressmonitor.com/news-wikidata/v1/news-headlines-translated" querystring = {"target_lang_code":"SOME_STRING_VALUE","wikidata_id":"SOME_STRING_VALUE","country_code":"SOME_STRING_VALUE","lang_code":"SOME_STRING_VALUE","search_after":"SOME_STRING_VALUE","count":"SOME_INTEGER_VALUE","sort":"SOME_STRING_VALUE"} headers = {"Authorization": "Bearer REPLACE_BEARER_TOKEN"} response = requests.request("GET", url, headers=headers, params=querystring) print(response.text)
const http = require("https"); const options = { "method": "GET", "hostname": "api.pressmonitor.com", "port": null, "path": "/news-wikidata/v1/news-headlines-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://api.pressmonitor.com/news-wikidata/v1/news-headlines-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE") .get() .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .build(); Response response = client.newCall(request).execute();
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.pressmonitor.com/news-wikidata/v1/news-headlines-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer REPLACE_BEARER_TOKEN" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
Responses
Content-Type: application/json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
/news-briefs-translated
Entity Briefs (Translated)
Returns headlines and brief summaries for a given Wikidata entity (wikidata_id), translated to target_lang_code.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
target_lang_code | string | query | Required | |
wikidata_id | string | query | Required | Wikidata entity ID (e.g., Q42). |
country_code | string | query | Optional | |
lang_code | string | query | Optional | |
search_after | string | query | Optional | Opaque pagination cursor used only with `sort=latest` (publish-time sort). |
count | integer | query | Optional | Default: 20 |
sort | string | query | Optional | Ranking mode: latest by publish time (default) or relevance. |
Code Examples
curl --request GET \ --url 'https://api.pressmonitor.com/news-wikidata/v1/news-briefs-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
import requests url = "https://api.pressmonitor.com/news-wikidata/v1/news-briefs-translated" querystring = {"target_lang_code":"SOME_STRING_VALUE","wikidata_id":"SOME_STRING_VALUE","country_code":"SOME_STRING_VALUE","lang_code":"SOME_STRING_VALUE","search_after":"SOME_STRING_VALUE","count":"SOME_INTEGER_VALUE","sort":"SOME_STRING_VALUE"} headers = {"Authorization": "Bearer REPLACE_BEARER_TOKEN"} response = requests.request("GET", url, headers=headers, params=querystring) print(response.text)
const http = require("https"); const options = { "method": "GET", "hostname": "api.pressmonitor.com", "port": null, "path": "/news-wikidata/v1/news-briefs-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://api.pressmonitor.com/news-wikidata/v1/news-briefs-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE") .get() .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .build(); Response response = client.newCall(request).execute();
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.pressmonitor.com/news-wikidata/v1/news-briefs-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer REPLACE_BEARER_TOKEN" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
Responses
Content-Type: application/json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
/news-fulltext-translated
Entity Full Articles (Translated)
Returns full articles for a given Wikidata entity (wikidata_id), translated to target_lang_code.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
target_lang_code | string | query | Required | |
wikidata_id | string | query | Required | Wikidata entity ID (e.g., Q42). |
country_code | string | query | Optional | |
lang_code | string | query | Optional | |
search_after | string | query | Optional | Opaque pagination cursor used only with `sort=latest` (publish-time sort). |
count | integer | query | Optional | Default: 20 |
sort | string | query | Optional | Ranking mode: latest by publish time (default) or relevance. |
Code Examples
curl --request GET \ --url 'https://api.pressmonitor.com/news-wikidata/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
import requests url = "https://api.pressmonitor.com/news-wikidata/v1/news-fulltext-translated" querystring = {"target_lang_code":"SOME_STRING_VALUE","wikidata_id":"SOME_STRING_VALUE","country_code":"SOME_STRING_VALUE","lang_code":"SOME_STRING_VALUE","search_after":"SOME_STRING_VALUE","count":"SOME_INTEGER_VALUE","sort":"SOME_STRING_VALUE"} headers = {"Authorization": "Bearer REPLACE_BEARER_TOKEN"} response = requests.request("GET", url, headers=headers, params=querystring) print(response.text)
const http = require("https"); const options = { "method": "GET", "hostname": "api.pressmonitor.com", "port": null, "path": "/news-wikidata/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://api.pressmonitor.com/news-wikidata/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE") .get() .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .build(); Response response = client.newCall(request).execute();
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.pressmonitor.com/news-wikidata/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer REPLACE_BEARER_TOKEN" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
Responses
Content-Type: application/json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
/news-fulltext-metadata-translated
Entity Full Articles (Translated)
Returns full articles for a given Wikidata entity (wikidata_id), translated to target_lang_code.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
target_lang_code | string | query | Required | |
wikidata_id | string | query | Required | Wikidata entity ID (e.g., Q42). |
country_code | string | query | Optional | |
lang_code | string | query | Optional | |
search_after | string | query | Optional | Opaque pagination cursor used only with `sort=latest` (publish-time sort). |
count | integer | query | Optional | Default: 20 |
sort | string | query | Optional | Ranking mode: latest by publish time (default) or relevance. |
Code Examples
curl --request GET \ --url 'https://api.pressmonitor.com/news-wikidata/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
import requests url = "https://api.pressmonitor.com/news-wikidata/v1/news-fulltext-translated" querystring = {"target_lang_code":"SOME_STRING_VALUE","wikidata_id":"SOME_STRING_VALUE","country_code":"SOME_STRING_VALUE","lang_code":"SOME_STRING_VALUE","search_after":"SOME_STRING_VALUE","count":"SOME_INTEGER_VALUE","sort":"SOME_STRING_VALUE"} headers = {"Authorization": "Bearer REPLACE_BEARER_TOKEN"} response = requests.request("GET", url, headers=headers, params=querystring) print(response.text)
const http = require("https"); const options = { "method": "GET", "hostname": "api.pressmonitor.com", "port": null, "path": "/news-wikidata/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://api.pressmonitor.com/news-wikidata/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE") .get() .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .build(); Response response = client.newCall(request).execute();
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.pressmonitor.com/news-wikidata/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&wikidata_id=SOME_STRING_VALUE&country_code=SOME_STRING_VALUE&lang_code=SOME_STRING_VALUE&search_after=SOME_STRING_VALUE&count=SOME_INTEGER_VALUE&sort=SOME_STRING_VALUE", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer REPLACE_BEARER_TOKEN" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
Responses
Content-Type: application/json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json
Content-Type: application/problem+json