Upcoming Earning API
This free API returns the upcoming earnings for the company of interest.
https://ab.tradeui.com/api/earnings.php?date=2022-08-25
To return one symbol:
https://ab.tradeui.com/api/earnings.php?symbol=ACST
If you want to return symbols that start with one to three letters use this endpoint:
https://ab.tradeui.com/api/earnings.php?symbolstart=A
https://ab.tradeui.com/api/earnings.php?symbolstart=BA
https://ab.tradeui.com/api/earnings.php?symbolstart=BAC
The first endpoint will return a JSON object like this example:
[{“symbol“: “ACST”,“earning_time“: “1”,“earning_date“: “2022-08-11”,“MarketCap“: “39529200”,“optionable“: “0”,“last_updated“: “2022-08-21 19:10:46”}]
Earning time is either 1 before market open, 2 after market close or 3 not provided.
check out our github for code sample https://github.com/tradeui/tradeui
Also provided below:
# make sure you install requests first using: pip install requests
import requests
symbol = "TSLA"
x = requests.get(f'https://ab.tradeui.com/api/earnings.php?symbol={symbol}')
#return the status code a 200 means the request was successful
print(x.status_code)
# return the response in json format:
print(x.json())
Terms of use
To use the API please insert a link in your site footer back to TradeUI.com