[Legacy] Fetch News Report
curl --request POST \
--url https://api.wokelo.ai/api/news/fetch/ \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"report_id": 123,
"page": 123,
"page_size": 123
}
'import requests
url = "https://api.wokelo.ai/api/news/fetch/"
payload = {
"report_id": 123,
"page": 123,
"page_size": 123
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({report_id: 123, page: 123, page_size: 123})
};
fetch('https://api.wokelo.ai/api/news/fetch/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wokelo.ai/api/news/fetch/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'report_id' => 123,
'page' => 123,
'page_size' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wokelo.ai/api/news/fetch/"
payload := strings.NewReader("{\n \"report_id\": 123,\n \"page\": 123,\n \"page_size\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.wokelo.ai/api/news/fetch/")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"report_id\": 123,\n \"page\": 123,\n \"page_size\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wokelo.ai/api/news/fetch/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"report_id\": 123,\n \"page\": 123,\n \"page_size\": 123\n}"
response = http.request(request)
puts response.read_body{
"report_id": 72053,
"data": [
{
"ai_summary": "Wokelo has announced a minority equity investment from KPMG LLP, marking a significant step in their growth strategy.",
"type": "Investments",
"url": "https://kpmg.com/us/en/media/news/kpmg-wokelo-investment-2024.html",
"title": "Wokelo Announces Minority Equity Investment from KPMG LLP"
}
]
}
Monitoring
[Legacy] Fetch News Report
POST
/
api
/
news
/
fetch
/
[Legacy] Fetch News Report
curl --request POST \
--url https://api.wokelo.ai/api/news/fetch/ \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"report_id": 123,
"page": 123,
"page_size": 123
}
'import requests
url = "https://api.wokelo.ai/api/news/fetch/"
payload = {
"report_id": 123,
"page": 123,
"page_size": 123
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({report_id: 123, page: 123, page_size: 123})
};
fetch('https://api.wokelo.ai/api/news/fetch/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wokelo.ai/api/news/fetch/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'report_id' => 123,
'page' => 123,
'page_size' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wokelo.ai/api/news/fetch/"
payload := strings.NewReader("{\n \"report_id\": 123,\n \"page\": 123,\n \"page_size\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.wokelo.ai/api/news/fetch/")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"report_id\": 123,\n \"page\": 123,\n \"page_size\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wokelo.ai/api/news/fetch/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"report_id\": 123,\n \"page\": 123,\n \"page_size\": 123\n}"
response = http.request(request)
puts response.read_body{
"report_id": 72053,
"data": [
{
"ai_summary": "Wokelo has announced a minority equity investment from KPMG LLP, marking a significant step in their growth strategy.",
"type": "Investments",
"url": "https://kpmg.com/us/en/media/news/kpmg-wokelo-investment-2024.html",
"title": "Wokelo Announces Minority Equity Investment from KPMG LLP"
}
]
}
Overview
This endpoint retrieves the news items from an existing news report run via the Get News Report endpoint/api/news/start/ news. It returns the news items as a JSON
Endpoint Details
- Method: POST
- Endpoint:
/api/news/fetch/
Authentication requirements
- Include a valid JWT token in your request header
- If you don’t have a token yet, you can get one from the
/auth/token/endpoint first.
Request
Request Parameter
Header Parameters
JWT token obtained from the Authentication request
Body Parameters
Report ID of the news report from which the news is to be retrieved
Page number from which the news is to be returned in the response. Default: 1
Number of news items per page. Default: 500
Response
Successful response will include the news items as a JSON{
"report_id": 72053,
"data": [
{
"ai_summary": "Wokelo has announced a minority equity investment from KPMG LLP, marking a significant step in their growth strategy.",
"type": "Investments",
"url": "https://kpmg.com/us/en/media/news/kpmg-wokelo-investment-2024.html",
"title": "Wokelo Announces Minority Equity Investment from KPMG LLP"
}
]
}
⌘I