Get earnings snapshot
curl --request GET \
--url https://api.aisa.one/apis/v1/financial/earnings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/financial/earnings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/financial/earnings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/financial/earnings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/financial/earnings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/financial/earnings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/financial/earnings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"earnings": {
"ticker": "<string>",
"report_period": "2023-12-25",
"fiscal_period": "<string>",
"currency": "<string>",
"quarterly": {
"fiscal_period": "<string>",
"currency": "<string>",
"revenue": 123,
"estimated_revenue": 123,
"revenue_surprise": "BEAT",
"earnings_per_share": 123,
"estimated_earnings_per_share": 123,
"eps_surprise": "BEAT",
"net_income": 123,
"gross_profit": 123,
"operating_income": 123,
"weighted_average_shares": 123,
"weighted_average_shares_diluted": 123,
"cash_and_equivalents": 123,
"total_debt": 123,
"total_assets": 123,
"total_liabilities": 123,
"shareholders_equity": 123,
"net_cash_flow_from_operations": 123,
"capital_expenditure": 123,
"net_cash_flow_from_investing": 123,
"net_cash_flow_from_financing": 123,
"change_in_cash_and_equivalents": 123,
"free_cash_flow": 123,
"revenue_chg": 123,
"net_income_chg": 123,
"operating_income_chg": 123,
"gross_profit_chg": 123,
"net_cash_flow_from_operations_chg": 123,
"net_cash_flow_from_investing_chg": 123,
"net_cash_flow_from_financing_chg": 123,
"free_cash_flow_chg": 123
},
"annual": {
"fiscal_period": "<string>",
"currency": "<string>",
"revenue": 123,
"estimated_revenue": 123,
"revenue_surprise": "BEAT",
"earnings_per_share": 123,
"estimated_earnings_per_share": 123,
"eps_surprise": "BEAT",
"net_income": 123,
"gross_profit": 123,
"operating_income": 123,
"weighted_average_shares": 123,
"weighted_average_shares_diluted": 123,
"cash_and_equivalents": 123,
"total_debt": 123,
"total_assets": 123,
"total_liabilities": 123,
"shareholders_equity": 123,
"net_cash_flow_from_operations": 123,
"capital_expenditure": 123,
"net_cash_flow_from_investing": 123,
"net_cash_flow_from_financing": 123,
"change_in_cash_and_equivalents": 123,
"free_cash_flow": 123,
"revenue_chg": 123,
"net_income_chg": 123,
"operating_income_chg": 123,
"gross_profit_chg": 123,
"net_cash_flow_from_operations_chg": 123,
"net_cash_flow_from_investing_chg": 123,
"net_cash_flow_from_financing_chg": 123,
"free_cash_flow_chg": 123
}
}
}{
"error": "Bad Request",
"message": "Invalid request parameters"
}{
"error": "Unauthorized",
"message": "Invalid API key provided"
}{
"error": "Payment Required",
"message": "This endpoint requires a paid subscription. Please upgrade your plan."
}{
"error": "Not Found",
"message": "Ticker XXXX not found"
}Earnings
Earnings Snapshot
What a company actually reported, against what was expected, with beat/miss signals.
GET
https://api.aisa.one/apis/v1/financial
/
earnings
Get earnings snapshot
curl --request GET \
--url https://api.aisa.one/apis/v1/financial/earnings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/financial/earnings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/financial/earnings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/financial/earnings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/financial/earnings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/financial/earnings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/financial/earnings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"earnings": {
"ticker": "<string>",
"report_period": "2023-12-25",
"fiscal_period": "<string>",
"currency": "<string>",
"quarterly": {
"fiscal_period": "<string>",
"currency": "<string>",
"revenue": 123,
"estimated_revenue": 123,
"revenue_surprise": "BEAT",
"earnings_per_share": 123,
"estimated_earnings_per_share": 123,
"eps_surprise": "BEAT",
"net_income": 123,
"gross_profit": 123,
"operating_income": 123,
"weighted_average_shares": 123,
"weighted_average_shares_diluted": 123,
"cash_and_equivalents": 123,
"total_debt": 123,
"total_assets": 123,
"total_liabilities": 123,
"shareholders_equity": 123,
"net_cash_flow_from_operations": 123,
"capital_expenditure": 123,
"net_cash_flow_from_investing": 123,
"net_cash_flow_from_financing": 123,
"change_in_cash_and_equivalents": 123,
"free_cash_flow": 123,
"revenue_chg": 123,
"net_income_chg": 123,
"operating_income_chg": 123,
"gross_profit_chg": 123,
"net_cash_flow_from_operations_chg": 123,
"net_cash_flow_from_investing_chg": 123,
"net_cash_flow_from_financing_chg": 123,
"free_cash_flow_chg": 123
},
"annual": {
"fiscal_period": "<string>",
"currency": "<string>",
"revenue": 123,
"estimated_revenue": 123,
"revenue_surprise": "BEAT",
"earnings_per_share": 123,
"estimated_earnings_per_share": 123,
"eps_surprise": "BEAT",
"net_income": 123,
"gross_profit": 123,
"operating_income": 123,
"weighted_average_shares": 123,
"weighted_average_shares_diluted": 123,
"cash_and_equivalents": 123,
"total_debt": 123,
"total_assets": 123,
"total_liabilities": 123,
"shareholders_equity": 123,
"net_cash_flow_from_operations": 123,
"capital_expenditure": 123,
"net_cash_flow_from_investing": 123,
"net_cash_flow_from_financing": 123,
"change_in_cash_and_equivalents": 123,
"free_cash_flow": 123,
"revenue_chg": 123,
"net_income_chg": 123,
"operating_income_chg": 123,
"gross_profit_chg": 123,
"net_cash_flow_from_operations_chg": 123,
"net_cash_flow_from_investing_chg": 123,
"net_cash_flow_from_financing_chg": 123,
"free_cash_flow_chg": 123
}
}
}{
"error": "Bad Request",
"message": "Invalid request parameters"
}{
"error": "Unauthorized",
"message": "Invalid API key provided"
}{
"error": "Payment Required",
"message": "This endpoint requires a paid subscription. Please upgrade your plan."
}{
"error": "Not Found",
"message": "Ticker XXXX not found"
}Reported earnings for one stock, actuals against estimates. Each entry carries
report_period, fiscal_period, filing_date, filing_url and accession_number, a quarterly block with revenue, estimated_revenue, revenue_surprise and revenue_surprise_pct, the same trio for earnings_per_share, plus year-over-year change fields. It also returns signals: upstream-computed flags such as EPS_BEAT with a headline and the actual / estimate / surprise_pct behind it. ticker is required and it is the only parameter. Use it for what a company actually reported. For forward-looking consensus that has not happened yet use get_financial_analyst_estimates.
Example
curl -X GET "https://api.aisa.one/apis/v1/financial/earnings?ticker=NVDA" \
-H "Authorization: Bearer $AISA_API_KEY"
⌘I