Earnings Calendar API
The Earnings Calendar API provides access to earnings results and upcoming earning dates for all major companies.
Available endpoints:
- /v1/earningscalendar - Get a list of past earnings results and upcoming earnings dates
- /v1/earningscalendarlist - Get a list of all available companies in the earnings calendar
Checking API status...
/v1/earningscalendar GET
https://api.api-ninjas.com/v1/earningscalendar
Returns a list of past earnings results and upcoming earnings dates. You can query by ticker symbol to get earnings for a specific company, or by date to get all earnings for a specific date. Returns 3 earnings results unless the limit parameter is set.
Parameters
Either ticker or date must be provided.
tickeroptionalCompany ticker symbol (e.g.,
MSFT). If provided, returns earnings data for that specific company.dateoptionalDate in YYYY-MM-DD format (e.g.,
2024-01-15). If provided, returns all earnings data for that specific date.show_upcomingoptional Premium OnlyWhether to show upcoming earnings dates. Must be either
trueorfalse. If unset, the default value isfalse.limitoptional Premium OnlyHow many results to return. Must be between
1and100(inclusive).
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
dateThe date of the earnings.
tickerThe ticker symbol of the company.
actual_epsThe actual earnings per share in USD.
estimated_epsThe estimated earnings per share in USD.
actual_revenueThe actual revenue in USD.
estimated_revenueThe estimated revenue in USD.
Sample Request Live Demo!
https://api.api-ninjas.com/v1/earningscalendar?ticker=MSFTHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[
{
"date": "2024-07-30",
"ticker": "MSFT",
"actual_eps": 2.95,
"estimated_eps": 2.93,
"actual_revenue": 64727000000,
"estimated_revenue": 64382224966
},
{
"date": "2024-04-25",
"ticker": "MSFT",
"actual_eps": 2.94,
"estimated_eps": 2.82,
"actual_revenue": 61858000000,
"estimated_revenue": 60861823613
},
{
"date": "2024-01-30",
"ticker": "MSFT",
"actual_eps": 2.93,
"estimated_eps": 2.78,
"actual_revenue": 62020000000,
"estimated_revenue": 56239300000
}
]Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/earningscalendar?date=2024-01-15" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.
/v1/earningscalendarlist GETPremium Subscribers Only
https://api.api-ninjas.com/v1/earningscalendarlist
Returns a list of all available companies in the earnings calendar. Use it to find tickers for the /v1/earningscalendar endpoint.
Parameters
This endpoint does not require any parameters.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
Returns an array of objects, each containing:
tickerThe company ticker symbol.
companyThe company name.
Sample Request
https://api.api-ninjas.com/v1/earningscalendarlistSample Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[
{
"ticker": "MSFT",
"company": "Microsoft Corporation"
},
{
"ticker": "AAPL",
"company": "Apple Inc."
},
{
"ticker": "GOOG",
"company": "Alphabet Inc."
},
{
"ticker": "AMZN",
"company": "Amazon.com Inc."
},
{
"ticker": "TSLA",
"company": "Tesla Inc."
},
"..."
]