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
Authentication
bearerAuth
Type: http
Send Authorization header as: Bearer secret_key:subscription_id
/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
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 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
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 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
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 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
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 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
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 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
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 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
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 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
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