





API:Financials
API Endpoint Path
required
Trending News Scraper API
https://www.buyfromlo.com/api/1/trendingNews
Call Method
Required
GET
Type of Data Return
JSON
JSON output structured data for Trending News Data
Token
required
BUYFROMLO API token. Subscription API is available on www.buyfromlo.com/apis, and accessible to on-site APP on www.buyfromlo.com/app 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
Trending News Scraper API
https://www.buyfromlo.com/api/1/trendingNews
Python Code Sample
import requests
apiendpoint = "https://www.buyfromlo.com/api/1/trendingNews"
## Required Arguments & Parameters ##
token = "your buyfromlo token"
keyword = "target keyword"
time = "start date"
timeTo = "end date"
## Call the api ##
response = requests.get(apiendpoint + "?token=" + token + "&keyword=" + keyword + "&time=" + time + "&timeTo=" + timeTo)
print(response.status)
print(response.json())
JSON Response Sample
{
"Date": "",
"Keyword": "",
"Title": "",
"Description": "",
"Publisher": "",
"Published Time": "",
"Content": "",
"Article Link": "",
"Img Link": ""
}