Press Monitor Global News Search API

Version 1.0.1

OpenAPI specification for the Press Monitor API, offering multiple dimensions such as news search, alerts, sentiment analysis, executive summaries, and scheduled digests. This revision clarifies auth, pagination, and common error responses without changing any existing paths or query parameter names.

Base URL

https://api.pressmonitor.com/news/v1

Authentication

bearerAuth

Type: http

Send Authorization header as: Bearer secret_key:subscription_id

GET /news-headlines

News Headlines

Returns news headlines with titles and URLs.

Parameters

Name Type In Required Description
query_text string query Required
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.
Default: latest

Code Examples

curl --request GET \ --url 'https://api.pressmonitor.com/news/v1/news-headlines?query_text=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/v1/news-headlines" querystring = {"query_text":"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/v1/news-headlines?query_text=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/v1/news-headlines?query_text=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/v1/news-headlines?query_text=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

200 Successful response

Content-Type: application/json

400 Bad request (invalid parameter or combination)

Content-Type: application/problem+json

401 Unauthorized (missing/invalid token)

Content-Type: application/problem+json

403 Forbidden (subscription or plan restriction)

Content-Type: application/problem+json

429 Too Many Requests (rate limit exceeded)

Content-Type: application/problem+json

500 Server error

Content-Type: application/problem+json

GET /news-briefs

News Briefs

Returns headlines, URLs, and brief AI-generated summaries of stories.

Parameters

Name Type In Required Description
query_text string query Required
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.
Default: latest

Code Examples

curl --request GET \ --url 'https://api.pressmonitor.com/news/v1/news-briefs?query_text=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/v1/news-briefs" querystring = {"query_text":"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/v1/news-briefs?query_text=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/v1/news-briefs?query_text=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/v1/news-briefs?query_text=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

200 Successful response

Content-Type: application/json

400 Bad request (invalid parameter or combination)

Content-Type: application/problem+json

401 Unauthorized (missing/invalid token)

Content-Type: application/problem+json

403 Forbidden (subscription or plan restriction)

Content-Type: application/problem+json

429 Too Many Requests (rate limit exceeded)

Content-Type: application/problem+json

500 Server error

Content-Type: application/problem+json

GET /news-fulltext

Full Articles

Returns full articles with titles, summaries, URLs, images, and article body.

Parameters

Name Type In Required Description
query_text string query Required
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.
Default: latest

Code Examples

curl --request GET \ --url 'https://api.pressmonitor.com/news/v1/news-fulltext?query_text=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/v1/news-fulltext" querystring = {"query_text":"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/v1/news-fulltext?query_text=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/v1/news-fulltext?query_text=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/v1/news-fulltext?query_text=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

200 Successful response

Content-Type: application/json

400 Bad request (invalid parameter or combination)

Content-Type: application/problem+json

401 Unauthorized (missing/invalid token)

Content-Type: application/problem+json

403 Forbidden (subscription or plan restriction)

Content-Type: application/problem+json

429 Too Many Requests (rate limit exceeded)

Content-Type: application/problem+json

500 Server error

Content-Type: application/problem+json

GET /news-fulltext-metadata

Full Articles + Metadata

Returns full articles with enriched metadata such as Wikidata IDs, named entities, and subject codes.

Parameters

Name Type In Required Description
query_text string query Required
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.
Default: latest

Code Examples

curl --request GET \ --url 'https://api.pressmonitor.com/news/v1/news-fulltext-metadata?query_text=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/v1/news-fulltext-metadata" querystring = {"query_text":"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/v1/news-fulltext-metadata?query_text=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/v1/news-fulltext-metadata?query_text=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/v1/news-fulltext-metadata?query_text=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

200 Successful response

Content-Type: application/json

400 Bad request (invalid parameter or combination)

Content-Type: application/problem+json

401 Unauthorized (missing/invalid token)

Content-Type: application/problem+json

403 Forbidden (subscription or plan restriction)

Content-Type: application/problem+json

429 Too Many Requests (rate limit exceeded)

Content-Type: application/problem+json

500 Server error

Content-Type: application/problem+json

GET /news-headlines-translated

News Headlines with Translation

Returns news headlines with titles and URLs. Translated into the target language.

Parameters

Name Type In Required Description
target_lang_code string query Required
query_text string query Required
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.
Default: latest

Code Examples

curl --request GET \ --url 'https://api.pressmonitor.com/news/v1/news-headlines-translated?target_lang_code=SOME_STRING_VALUE&query_text=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/v1/news-headlines-translated" querystring = {"target_lang_code":"SOME_STRING_VALUE","query_text":"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/v1/news-headlines-translated?target_lang_code=SOME_STRING_VALUE&query_text=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/v1/news-headlines-translated?target_lang_code=SOME_STRING_VALUE&query_text=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/v1/news-headlines-translated?target_lang_code=SOME_STRING_VALUE&query_text=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

200 Successful response

Content-Type: application/json

400 Bad request (invalid parameter or combination)

Content-Type: application/problem+json

401 Unauthorized (missing/invalid token)

Content-Type: application/problem+json

403 Forbidden (subscription or plan restriction)

Content-Type: application/problem+json

429 Too Many Requests (rate limit exceeded)

Content-Type: application/problem+json

500 Server error

Content-Type: application/problem+json

GET /news-briefs-translated

News Briefs with Translation

Returns headlines, URLs, and brief AI-generated summaries of stories. Translated into the target language.

Parameters

Name Type In Required Description
target_lang_code string query Required
query_text string query Required
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.
Default: latest

Code Examples

curl --request GET \ --url 'https://api.pressmonitor.com/news/v1/news-briefs-translated?target_lang_code=SOME_STRING_VALUE&query_text=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/v1/news-briefs-translated" querystring = {"target_lang_code":"SOME_STRING_VALUE","query_text":"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/v1/news-briefs-translated?target_lang_code=SOME_STRING_VALUE&query_text=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/v1/news-briefs-translated?target_lang_code=SOME_STRING_VALUE&query_text=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/v1/news-briefs-translated?target_lang_code=SOME_STRING_VALUE&query_text=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

200 Successful response

Content-Type: application/json

400 Bad request (invalid parameter or combination)

Content-Type: application/problem+json

401 Unauthorized (missing/invalid token)

Content-Type: application/problem+json

403 Forbidden (subscription or plan restriction)

Content-Type: application/problem+json

429 Too Many Requests (rate limit exceeded)

Content-Type: application/problem+json

500 Server error

Content-Type: application/problem+json

GET /news-fulltext-translated

Full Articles with Translation

Returns full articles with titles, summaries, URLs, images, and article body. Translated into the target language.

Parameters

Name Type In Required Description
target_lang_code string query Required
query_text string query Required
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.
Default: latest

Code Examples

curl --request GET \ --url 'https://api.pressmonitor.com/news/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&query_text=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/v1/news-fulltext-translated" querystring = {"target_lang_code":"SOME_STRING_VALUE","query_text":"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/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&query_text=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/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&query_text=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/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&query_text=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

200 Successful response

Content-Type: application/json

400 Bad request (invalid parameter or combination)

Content-Type: application/problem+json

401 Unauthorized (missing/invalid token)

Content-Type: application/problem+json

403 Forbidden (subscription or plan restriction)

Content-Type: application/problem+json

429 Too Many Requests (rate limit exceeded)

Content-Type: application/problem+json

500 Server error

Content-Type: application/problem+json

GET /news-fulltext-metadata-translated

Full Articles with Translation

Returns full articles with titles, summaries, URLs, images, and article body. Translated into the target language.

Parameters

Name Type In Required Description
target_lang_code string query Required
query_text string query Required
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.
Default: latest

Code Examples

curl --request GET \ --url 'https://api.pressmonitor.com/news/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&query_text=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/v1/news-fulltext-translated" querystring = {"target_lang_code":"SOME_STRING_VALUE","query_text":"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/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&query_text=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/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&query_text=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/v1/news-fulltext-translated?target_lang_code=SOME_STRING_VALUE&query_text=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

200 Successful response

Content-Type: application/json

400 Bad request (invalid parameter or combination)

Content-Type: application/problem+json

401 Unauthorized (missing/invalid token)

Content-Type: application/problem+json

403 Forbidden (subscription or plan restriction)

Content-Type: application/problem+json

429 Too Many Requests (rate limit exceeded)

Content-Type: application/problem+json

500 Server error

Content-Type: application/problem+json