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",
"source_type": "8-K",
"filing_date": "2023-12-25",
"filing_url": "<string>",
"accession_number": "<string>",
"fiscal_period": "<string>",
"currency": "<string>",
"filing_datetime": "2023-11-07T05:31:56Z",
"filing_window": "PRE_MARKET",
"signals": [
{
"type": "MARGIN_EXPANSION",
"headline": "<string>",
"metric": "<string>",
"period": "<string>",
"details": {}
}
],
"quarterly": {
"revenue": 123,
"revenue_chg": 123,
"revenue_yoy_chg": 123,
"earnings_per_share": 123,
"earnings_per_share_chg": 123,
"earnings_per_share_yoy_chg": 123,
"gross_profit": 123,
"gross_profit_chg": 123,
"gross_profit_yoy_chg": 123,
"gross_margin": 123,
"gross_margin_chg_bps": 123,
"gross_margin_chg_pct": 123,
"gross_margin_yoy_chg_bps": 123,
"gross_margin_yoy_chg_pct": 123,
"operating_income": 123,
"operating_income_chg": 123,
"operating_income_yoy_chg": 123,
"operating_margin": 123,
"operating_margin_chg_bps": 123,
"operating_margin_chg_pct": 123,
"operating_margin_yoy_chg_bps": 123,
"operating_margin_yoy_chg_pct": 123,
"net_income": 123,
"net_income_chg": 123,
"net_income_yoy_chg": 123,
"net_margin": 123,
"net_margin_chg_bps": 123,
"net_margin_chg_pct": 123,
"net_margin_yoy_chg_bps": 123,
"net_margin_yoy_chg_pct": 123,
"weighted_average_shares": 123,
"weighted_average_shares_diluted": 123,
"cash_and_equivalents": 123,
"change_in_cash_and_equivalents": 123,
"total_debt": 123,
"total_assets": 123,
"total_liabilities": 123,
"shareholders_equity": 123,
"net_cash_flow_from_operations": 123,
"net_cash_flow_from_operations_chg": 123,
"net_cash_flow_from_operations_yoy_chg": 123,
"net_cash_flow_from_investing": 123,
"net_cash_flow_from_investing_chg": 123,
"net_cash_flow_from_investing_yoy_chg": 123,
"net_cash_flow_from_financing": 123,
"net_cash_flow_from_financing_chg": 123,
"net_cash_flow_from_financing_yoy_chg": 123,
"capital_expenditure": 123,
"capital_expenditure_chg": 123,
"capital_expenditure_yoy_chg": 123,
"free_cash_flow": 123,
"free_cash_flow_chg": 123,
"free_cash_flow_yoy_chg": 123
},
"annual": {
"revenue": 123,
"revenue_chg": 123,
"revenue_yoy_chg": 123,
"earnings_per_share": 123,
"earnings_per_share_chg": 123,
"earnings_per_share_yoy_chg": 123,
"gross_profit": 123,
"gross_profit_chg": 123,
"gross_profit_yoy_chg": 123,
"gross_margin": 123,
"gross_margin_chg_bps": 123,
"gross_margin_chg_pct": 123,
"gross_margin_yoy_chg_bps": 123,
"gross_margin_yoy_chg_pct": 123,
"operating_income": 123,
"operating_income_chg": 123,
"operating_income_yoy_chg": 123,
"operating_margin": 123,
"operating_margin_chg_bps": 123,
"operating_margin_chg_pct": 123,
"operating_margin_yoy_chg_bps": 123,
"operating_margin_yoy_chg_pct": 123,
"net_income": 123,
"net_income_chg": 123,
"net_income_yoy_chg": 123,
"net_margin": 123,
"net_margin_chg_bps": 123,
"net_margin_chg_pct": 123,
"net_margin_yoy_chg_bps": 123,
"net_margin_yoy_chg_pct": 123,
"weighted_average_shares": 123,
"weighted_average_shares_diluted": 123,
"cash_and_equivalents": 123,
"change_in_cash_and_equivalents": 123,
"total_debt": 123,
"total_assets": 123,
"total_liabilities": 123,
"shareholders_equity": 123,
"net_cash_flow_from_operations": 123,
"net_cash_flow_from_operations_chg": 123,
"net_cash_flow_from_operations_yoy_chg": 123,
"net_cash_flow_from_investing": 123,
"net_cash_flow_from_investing_chg": 123,
"net_cash_flow_from_investing_yoy_chg": 123,
"net_cash_flow_from_financing": 123,
"net_cash_flow_from_financing_chg": 123,
"net_cash_flow_from_financing_yoy_chg": 123,
"capital_expenditure": 123,
"capital_expenditure_chg": 123,
"capital_expenditure_yoy_chg": 123,
"free_cash_flow": 123,
"free_cash_flow_chg": 123,
"free_cash_flow_yoy_chg": 123
}
}
],
"next_page_url": "<string>"
}Get Earnings Data
What a company actually reported, against what was expected, with beat/miss signals.
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",
"source_type": "8-K",
"filing_date": "2023-12-25",
"filing_url": "<string>",
"accession_number": "<string>",
"fiscal_period": "<string>",
"currency": "<string>",
"filing_datetime": "2023-11-07T05:31:56Z",
"filing_window": "PRE_MARKET",
"signals": [
{
"type": "MARGIN_EXPANSION",
"headline": "<string>",
"metric": "<string>",
"period": "<string>",
"details": {}
}
],
"quarterly": {
"revenue": 123,
"revenue_chg": 123,
"revenue_yoy_chg": 123,
"earnings_per_share": 123,
"earnings_per_share_chg": 123,
"earnings_per_share_yoy_chg": 123,
"gross_profit": 123,
"gross_profit_chg": 123,
"gross_profit_yoy_chg": 123,
"gross_margin": 123,
"gross_margin_chg_bps": 123,
"gross_margin_chg_pct": 123,
"gross_margin_yoy_chg_bps": 123,
"gross_margin_yoy_chg_pct": 123,
"operating_income": 123,
"operating_income_chg": 123,
"operating_income_yoy_chg": 123,
"operating_margin": 123,
"operating_margin_chg_bps": 123,
"operating_margin_chg_pct": 123,
"operating_margin_yoy_chg_bps": 123,
"operating_margin_yoy_chg_pct": 123,
"net_income": 123,
"net_income_chg": 123,
"net_income_yoy_chg": 123,
"net_margin": 123,
"net_margin_chg_bps": 123,
"net_margin_chg_pct": 123,
"net_margin_yoy_chg_bps": 123,
"net_margin_yoy_chg_pct": 123,
"weighted_average_shares": 123,
"weighted_average_shares_diluted": 123,
"cash_and_equivalents": 123,
"change_in_cash_and_equivalents": 123,
"total_debt": 123,
"total_assets": 123,
"total_liabilities": 123,
"shareholders_equity": 123,
"net_cash_flow_from_operations": 123,
"net_cash_flow_from_operations_chg": 123,
"net_cash_flow_from_operations_yoy_chg": 123,
"net_cash_flow_from_investing": 123,
"net_cash_flow_from_investing_chg": 123,
"net_cash_flow_from_investing_yoy_chg": 123,
"net_cash_flow_from_financing": 123,
"net_cash_flow_from_financing_chg": 123,
"net_cash_flow_from_financing_yoy_chg": 123,
"capital_expenditure": 123,
"capital_expenditure_chg": 123,
"capital_expenditure_yoy_chg": 123,
"free_cash_flow": 123,
"free_cash_flow_chg": 123,
"free_cash_flow_yoy_chg": 123
},
"annual": {
"revenue": 123,
"revenue_chg": 123,
"revenue_yoy_chg": 123,
"earnings_per_share": 123,
"earnings_per_share_chg": 123,
"earnings_per_share_yoy_chg": 123,
"gross_profit": 123,
"gross_profit_chg": 123,
"gross_profit_yoy_chg": 123,
"gross_margin": 123,
"gross_margin_chg_bps": 123,
"gross_margin_chg_pct": 123,
"gross_margin_yoy_chg_bps": 123,
"gross_margin_yoy_chg_pct": 123,
"operating_income": 123,
"operating_income_chg": 123,
"operating_income_yoy_chg": 123,
"operating_margin": 123,
"operating_margin_chg_bps": 123,
"operating_margin_chg_pct": 123,
"operating_margin_yoy_chg_bps": 123,
"operating_margin_yoy_chg_pct": 123,
"net_income": 123,
"net_income_chg": 123,
"net_income_yoy_chg": 123,
"net_margin": 123,
"net_margin_chg_bps": 123,
"net_margin_chg_pct": 123,
"net_margin_yoy_chg_bps": 123,
"net_margin_yoy_chg_pct": 123,
"weighted_average_shares": 123,
"weighted_average_shares_diluted": 123,
"cash_and_equivalents": 123,
"change_in_cash_and_equivalents": 123,
"total_debt": 123,
"total_assets": 123,
"total_liabilities": 123,
"shareholders_equity": 123,
"net_cash_flow_from_operations": 123,
"net_cash_flow_from_operations_chg": 123,
"net_cash_flow_from_operations_yoy_chg": 123,
"net_cash_flow_from_investing": 123,
"net_cash_flow_from_investing_chg": 123,
"net_cash_flow_from_investing_yoy_chg": 123,
"net_cash_flow_from_financing": 123,
"net_cash_flow_from_financing_chg": 123,
"net_cash_flow_from_financing_yoy_chg": 123,
"capital_expenditure": 123,
"capital_expenditure_chg": 123,
"capital_expenditure_yoy_chg": 123,
"free_cash_flow": 123,
"free_cash_flow_chg": 123,
"free_cash_flow_yoy_chg": 123
}
}
],
"next_page_url": "<string>"
}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"
// Copy this whole block into Claude Code, Codex, Cursor or any coding agent.
// It carries everything needed to connect, authorize and run this example —
// no key to paste, one click of Allow in the browser.
{
"operation_id": "get_financial_earnings",
"arguments": {
"ticker": "NVDA"
},
"max_price_usd": 0.05
}
// ── for the agent ─────────────────────────────────────────────────────────
// Register the AIsa MCP server, then call its `use` tool with the JSON above.
// name aisa
// endpoint https://mcp.aisa.one/mcp
// transport streamable-http
// auth OAuth. The server publishes RFC 9728 metadata, so open a
// browser and the user clicks Allow once — nothing to paste.
// If AISA_API_KEY is set, send it as a bearer header instead.
// Use your own MCP mechanism, not a hand-edited config file:
// Codex codex mcp add aisa --url https://mcp.aisa.one/mcp
// Claude Code claude mcp add --transport http -s user aisa https://mcp.aisa.one/mcp
// Cursor / VS Code a "url" entry for https://mcp.aisa.one/mcp in the MCP config
// The server lists five tools over https://mcp.aisa.one/servers worth of APIs:
// search, get_details, use, batch_use, list_categories. search and
// get_details are free; use is billed per call and max_price_usd refuses
// anything above the cap before spending. This operation's full contract —
// every argument, the response shape, the price and the pitfalls — is at
// https://aisa.one/docs/api-reference/financial/get_earnings.md
// Then run the call and show me the result.
https://mcp.aisa.one/mcp — Claude
Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client
opens a browser, you click Allow once, and there is no key to paste. Your
agent then reaches every endpoint through five tools: search,
list_categories and get_details are free, use and batch_use are
billed per call. Setup per client is in
Connect via MCP; the live tool list and what each call
costs are on aisa.one/mcp.Request contract
- Method and path: GET /apis/v1/financial/earnings
- Availability: enabled
- Request URL template: https://api.aisa.one/apis/v1/financial/earnings
- cursor: query; optional
- limit: query; optional
- ticker: query; required
- Runtime facts: afe2e5d365275c032408a51b04030fb8f5be4f9d70a476d8735d89f06821a9b8
{
"operationId": "get_financial_earnings",
"method": "GET",
"path": "/apis/v1/financial/earnings",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"name": "cursor",
"in": "query",
"description": "Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "limit",
"in": "query",
"description": "Number of most-recent **report periods** worth of filings to return, sorted by `(report_period DESC, filing_date ASC)`. The number of entries returned may exceed `limit` when a recent period has both an 8-K and a 10-Q / 10-K. Values above 40 are clamped to 40. Non-positive or non-integer values return 400. This is the total across all pages, not a page size: each page holds up to 10 records, linked by `next_page_url`.",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 40,
"default": 1
}
},
{
"name": "ticker",
"in": "query",
"description": "The ticker symbol (e.g. `AAPL`).",
"required": true,
"schema": {
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"x-aisa-pricing": {
"cost_contract": "fixed_success",
"customer_multiplier": 1.0,
"customer_pricing": "provider_cost_multiplier",
"default_request_estimate_usd": 0.02,
"estimate_source": "profile_seed",
"evidence_source": "request_snapshot"
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Published reference price: $0.02 USD per successful request. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 0.02
- Cost contract: fixed_success
- Published reference multiplier: 1.0
- Settlement evidence source: request_snapshot
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.
Number of most-recent report periods worth of filings to return, sorted by (report_period DESC, filing_date ASC). The number of entries returned may exceed limit when a recent period has both an 8-K and a 10-Q / 10-K. Values above 40 are clamped to 40. Non-positive or non-integer values return 400. This is the total across all pages, not a page size: each page holds up to 10 records, linked by next_page_url.
1 <= x <= 40The ticker symbol (e.g. AAPL).
Response
Earnings response
Flat list of SEC filings for the ticker, sorted by (report_period DESC, filing_date ASC). When limit=N, up to N report_periods worth of filings are returned; entry count may exceed N when a recent period has both an 8-K and a 10-Q/10-K.
Show child attributes
Show child attributes
Absolute URL of the next page of results. Present only when more results remain; request it as-is to continue. Each page holds up to 10 records.