上場企業の財務, ニュース, TTM チェッカー API

APIエンドポイント仕様

  • エンドポイント パス: /api/1/companyfinancials
  • データの種類: JSON & 20/分
  • 情報元: 米国SECへの提出
  • リクエスト制限: 5,000リクエスト/月
  • スクリプトと統合: cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript と統合するコード
上場企業の財務, ニュース, TTM チェッカー API エンドポイントの基本情報

APIエンドポイントパス

必須

上場企業財務ニュース&TTMチェッカーAPI

api/1/companyfinancials


Call Method

Required

GET & POST

返されるデータの種類

JSON

リスト企業の財務およびニュースに関する構造化された JSON データを出力する


利用可能な API 引数とパラメータ

token

必須

BUYFROMLO API トークンを購入します. 有料サブスクリプション API が利用可能です: /api/1/companyfinancials /app/1/companyfinancials のオンサイト APP にもアクセス可能

ticker

必須

株式ティッカーを入力してください

type

必須

返されるデータのタイプを選択します. デフォルト値は株価です. 現在利用可能なオプション: AI 株価アナライザー, ニュース, 損益計算書, 貸借対照表, キャッシュフロー, historyfinancialratio, financialratioTTM, 株価, 価格予測 API, cagr

interval

必須

間隔を送信します. デフォルトは月単位です. オプションは毎日, 月, 週, 四半期, 年です.


period

オプション

期間の長さ. デフォルト値は最大です. 現在利用可能なオプション: 1 か月, 3 か月, 6 か月, 1 年, 5 年, 10 年

startTime

オプション

特定の開始日を入力します. 日付形式は Y-M-D (2000-01-01 など)

endTime

オプション

特定の終了日を入力します. 日付形式は Y-M-D (2000-01-01 など) です. 注: 終了日の値は開始日の値以下である必要があります

datalist

オプション

AI アナライザーの場合のみ, 分析のために関連する株式データを送信します


上場企業財務ニュース&TTMチェッカーAPI

api/1/companyfinancials


コードの統合と対応

Python コードサンプル


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 応答サンプル


## 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":""
}