Listed Company Financials, News & TTM Checker API

API Endpoint Specifications

  • Endpoint Path: /api/1/companyfinancials
  • Type of Data: JSON & 20/minute
  • Data Source: USA SEC Filing
  • Request Limit: 5,000 request/month
  • Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
Listed Company Financials, News & TTM Checker API Endpoint Basic Info

API Endpoint Path

required

Listed Company Financials News & TTM Checker API

api/1/companyfinancials


Call Method

Required

GET & POST

Type of Data Return

JSON

Output structured JSON data on list company financials & news


Available API Arguments & Parameters

token

required

BUYFROMLO API token. Paid subscription API is available: /api/1/companyfinancials, and accessible to on-site APP on /app/1/companyfinancials as well

ticker

required

Input a stock ticker

type

required

Select the type of data return. The default value is stockpricing. Current available options: AI stock analyzer, news, incomestatement, balancesheet, cashflow, historicalfinancialratio, financialratioTTM, stockpricing, pricingpredictionAPI, cagr

interval

required

Submit an interval. Default is by month. Options are daily, month, week, quarter, year


period

Optional

Length of time duration. Default value is max. Current available options: 1month, 3month, 6month, 1year, 5year, 10year

startTime

Optional

Input a specific start date. Date format is Y-M-D, such as 2000-01-01

endTime

Optional

Input a specific end date. Date format is Y-M-D, such as 2000-01-01. Note: end date value must be equal or less than start date value

datalist

Optional

For AI analyzer only, submit relevant stock data for analysis


Listed Company Financials News & TTM Checker API

api/1/companyfinancials


Code Integration and Response

Python Code Sample


import requests

apiendpoint = "https://api.buyfromlo.com/api/1/companyfinancials?"

## Required Arguments & Parameters ##

token = ""your buyfromlo token""
ticker = ""Input a query""

## Optional Argument ##
type="page number. The default number is 1"
period=""
interval=""

data="ticker=" + ticker + "&type=" + type + "&period=" + period + "&interval=" + interval
headers={"Authorization": "Bearer " + token}  

## Get: Call the api ##
response = requests.get(apiendpoint + data, headers=headers)
print(response.status_code)
print(response.json())

## POST: AI Analyzer - Call the api ##

data = {"type": type, "ticker": ticker, "period": period}  
response = requests.post(apiendpoint, json=data, headers=headers)
print(response.status_code)
print(response.json())




                        

JSON Response Sample


## Income Statement Data API Response ##
{
"Fiscal Year": " " (string),
"Revenue Yearly": " " (integer),
"Cost of Good Sales": " " (integer),
"Gross Profit": " " (integer),
"Gross Profit Margin": " " (float),
"Research and Development Cost": " " (integer),
"Marketing Cost": " " (integer),
"General, Admin and Expenses": " " (integer),
"Selling, General and Expenses": " " (integer),
"Other Expenses": " " (integer),
"Cost and Expenses": " " (integer),
"Operation Expenses": " " (integer),
"Interest Income": " " (integer),
"Interest Expenses": " " (integer),
"Depreciation and Amortization": " " (integer),
"EBITDA": " " (integer),
"EBITDA Margin": " " (float),
"Operating Income": " " (integer),
"Opearting Income Margin": " " (float),
"Total Other Expenses Net": " " (integer),
"Income Before Tax": " " (integer),
"Income Before Tax Margin": " " (float),
"Income Tax Expenses": " " (integer),
"Net Income": " " (integer),
"Net Income Margin": " " (float),
"Earning per Share": " " (integer),
"Earning per Share Diluted": " " (integer),
"Weighted Average Shares Out": " " (integer),
"Weighted Average Shares Out Ratio": " " (float),
"Security Exchange Name": " " (string),
"Sector": " " (string),
"Industry": " " (string)
}

## Cashflow Statement Data API Response ##
{
"Year\\/CashFlow Statement": " " (string),
"Net Income": " " (integer),
"Deferred Tax Income": " " (integer),
"Stock Based Compensation": " " (integer),
"Change in Working Capital": " " (integer),
"Inventory": " " (integer),
"Account Payables": " " (integer),
"Other Working Capital": " " (integer),
"Other Non Cash Items": " " (integer),
"Net Cash Provided by Operating": " " (integer),
"Investment in PPE": " " (integer),
"Acquisition Net": " " (integer),
"Purchase Of Investment": " " (integer),
"Maturity of Investment": " " (integer),
"Other Investing Activities": " " (integer),
"Net Cash Used for Investing": " " (integer),
"Debt Repayment": " " (integer),
"Common Stock Issued": " " (integer),
"Common Stock Repurchased": " " (integer),
"Dividend Paid": " " (integer),
"Other Financing": " " (integer),
"Net Cash Used For Financing": " " (integer),
"Effect of Exchange on Cash": " " (integer),
"Net Change in Cash": " " (integer),
"Cash at the End of Period": " " (integer),
"Cash at the Begining of Period": " " (integer),
"Operating Cashflow":" " (integer),
"Account Receivables": " " (integer),
"Capital Expenditure": " " (integer),
"Free Cash Flow": " " (integer),
"Security Exchange Name": " " (string),
"Sector": " " (string),
"Industry": " " (string)
}

## Balancesheet Statement Data API Response ##
{
"Year\\/BalanceSheet Statement": " " (string),
"Cash and Cash Equivalent": " " (integer),
"Short Term Investments": " " (integer),
"Cash and Short Term Investment": " " (integer),
"Net Receivables": " " (integer),
"Inventory": " " (integer),
"Other Current Asset": " " (integer),
"Total Current Asset": " " (integer),
"PPE Asset": " " (integer),
"Good Will": " " (integer),
"Intangible Asset": " " (integer),
"Good Will and Intangible Asset": " " (integer),
"Long term Investment": " " (integer),
"Tax Assets": " " (integer),
"Other Non Current Assets": " " (integer),
"Total Non Current Asset": " " (integer),
"Other Assets": " " (integer),
"Total Asset": " " (integer),
"Account Payables": " " (integer),
"Short Term Debt": " " (integer),
"Tax Payables": " " (integer),
"Deferred Revenue": " " (integer),
"Other Current Liabilities": " " (integer),
"Total Current Liabilities": " " (integer),
"Long Term Debt": " " (integer),
"Deferred Revenue Non Current": " " (integer),
"Deferred Tax Liabilities Non Current": " " (integer),
"Total Non Current Liabilities": " " (integer),
"Other Liabilities": " " (integer),
"Capital Lease Obligation": " " (integer),
"Total Liability": " " (integer),
"Preferred Stock": " " (integer),
"Common Stock": " " (integer),
"Retained Earnings": " " (integer),
"Accumulated Other Income Loss": " " (integer),
"Other Total Stock Holder Equity": " " (integer),
"Total Stock Holder Equity": " " (integer),
"Total Equity": " " (integer),
"Total Liabilities and Stock Holder Equity": " " (integer),
"Minority Interest": " " (integer),
"Total Liabilities and Total Equity": " " (integer),
"Total Investment": " " (integer),
"Total Debt": " " (integer),
"Book Value": " " (integer),
"Net Debt": " " (integer),
"SEC Filing": " " (string),
"SEC Final Link": " " (string),
"Latest Update": " " (string),
"Security Exchange Name": " " (string),
"Sector": " " (string),
"Industry": " " (string)
}

## Historical Financial TTM Data API Response ##
{
"Fiscal Year": " " (string),
"Ticker":" " (string),
"Company Name": " " (string),
"Sector": " " (string),
"Industry":"",
"Exchange":"",
"Dividend Yield": "",
"PE": "",
"Payout Ratio": "",
"Current Ratio": "",
"Quick Ratio": "",
"Cash Ratio": "",
"Days of Sales Outstanding": "",
"Days of Inventory Outstanding": "",
"Operating Cycle": "",
"Days of Payable Outstanding": "",
"Cash Conversion Cycle": "",
"GPM": "",
"EBITDA Margin": "",
"Pretax Profit Margin": "",
"Net Margin": "",
"Effective Tax Rate": "",
"ROA": "",
"ROE": "",
"ROC": "",
"Net Income per EBT": "",
"EBT per EBIT": "",
"EBIT per Revenue": "",
"Debt Ratio": "",
"Debt2Equity": "",
"Long Term Debt to Capitalization": "",
"Total Debt to Capitalization": "",
"Interest Coverage": "",
"Cash Flow Debt Ratio": "",
"Company Equity Multiplier": "",
"Receivables Turnover": "",
"Payables Turnover": "",
"Inventory Turnover": "",
"Fixed Asset Turnover": "",
"Asset Turnover": "",
"Operating Cashflow per Share": "",
"Free Cashflow per Share": "",
"Cash per Share": "",
"Operating Cashflow Sales RatiO": "",
"Free Cashflow and Operating Cashflow Ratio": "",
"Cashflow Coverage Ratio":"",
"Short Term Coverage Ratios":"",
"Capital Expenditure Coverage Ratio": "",
"Divident Paid and Capex Coverage Ratio":"",
"Price Bookvalue Ratio": "",
"PB": "",
"Price to Sales Ratio": "",
"Price Earnings Ratio": "",
"Price to Free Cashflow Ratio": "",
"Price to Operating Cashflow Ratio": "",
"Price Cashflow Ratio": "",
"Price Earnings to Growth Ratio": "",
"Price Sales Ratio": "",
"Dividend Yield": "",
"Enterprise Value multiple": "",
"Price Fair Value": "",
"Dividend per Share": "",
"Moduel":""
}

## Real-time Financial TTM Data API Response ##
{
"Ticker":"",
"Company Name": "",
"Sector": "",
"Industry": "",
"Security Exchange Name": "",
"Payout Ratio TTM":"",
"PE & Earning Growth Ratio TTM": "",
"Quick Ratio TTM": "",
"Current Ratio TTM": "",
"Debt2Equity TTM":"",
"ROA TTM": "",
"ROE TTM": "",
"Price to Sales Ratio TTM":"",
"GPM TTM": "",
"EBITDA Margin TTM": "",
"Net Margin TTM": "",
"PB TTM": "",
"PE TTM": "",
"Dividend Yield TTM": "",
"Module":""
} 
#CAGR Response #
{
  "CAGR_COGS": "",
"CAGR_EBITDA":"",
"CAGR_Profit":"",
"CAGR_Revenue":""
}