API:Financials
API Endpoint Path
required
Trending News Scraper API
api/1/trendingNews
Call Method
Required
GET
Type of Data Return
JSON
Output structured JSON data on Trending News
token
required
BUYFROMLO API token. Paid subscription API is available: /api/1/trendingNews, and accessible to on-site APP on /app/1/trendingNews as well
keyword
required
Input a company name or a keyword related to the news that are intended to scrape
time
required
Enter a start date, such as 2023-01-01
timeTo
required
Enter an end date, such as 2023-01-02
language
Optional
Enter the target language, such as US, JA, FR, etc
Trending News Scraper API
api/1/trendingNews
Python Code Sample
import requests
apiendpoint = "https://api.buyfromlo.com/api/1/trendingNews?"
## Required Arguments & Parameters ##
token = "your buyfromlo token"
keyword = "target keyword"
time = "start date"
timeTo = "end date"
data= "keyword=" + keyword + "&time=" + time + "&timeTo=" + timeTo
headers={"Authorization": "Bearer " + token}
## Call the api ##
response = requests.get(apiendpoint + data, headers=headers)
print(response.status_code)
print(response.json())
JSON Response Sample
{
"Date": " " (string),
"Keyword": " " (string),
"Title": " " (string),
"Description": " " (string),
"Publisher": " " (string),
"Published Time": " " (string),
"Content": " " (string),
"Article Link": " " (string),
"Img Link": " " (string)
}
The Trending News Scraper API is a tool that scrapes up-to-date listed company news worldwide.
The Trending News Scraper API gets its data from 100+ mainstream media portals, such as Yahoo Finance, Bloomberg, Economics, etc.
You can scrape news articles using a generic keyword, company name, or topics etc.
Yes, you can input the new start date and end date.
The scraped data is returned in JSON format.
You can make 500 requests per month, included income, cashflow, and balance sheet statement data generator.
Yes, you can integrate the Trending News Scraper API with your own applications using cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, and Typescript.
Yes, there is a paid subscription option that gives you access to more features and higher request limits.
You can find the documentation for the Trending News Scraper API on the BUYFROMLO website.
You can get support for the Trending News Scraper API by contacting BUYFROMLO.