Skip to main content
POST
/
api
/
news
/
start
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "your token");

const raw = JSON.stringify({
  "website": "wokelo.ai"
});

const requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow"
};

fetch("{{path}}/api/news/start/", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
{
    "report_id": 2000156
}

Overview

This endpoint initiates news report on a company

Endpoint Details

  • Method: POST
  • Endpoint: /api/news/start/

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

token
string
required
JWT token obtained from the Authentication request

Body Parameters

whitelisted_domains
array
Domains of news sources from which to fetch news
blacklisted_domains
array
News source domains to exclude from search
news_limit
integer
Number of news items to retrieve (Default: 1000)
start_date
string
Date from which news will be retrieved.
  • Default: 2 years
  • Format: YYYY-MM-DD
end_date
string
Date till which news will be retrieved.
  • Default: current date
  • Format: YYYY-MM-DD
website
string
required
Website of the target company
Crunchbase permalink of the target company
Note: Either of permalink or website is required as company identifier

Response

Successful response JSON will include the report_id of the news report
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "your token");

const raw = JSON.stringify({
  "website": "wokelo.ai"
});

const requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow"
};

fetch("{{path}}/api/news/start/", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
{
    "report_id": 2000156
}