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
公司实际公布的数据与市场预期的对比,并附超出/不及预期的信号。
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 和 accession_number,一个包含 revenue、estimated_revenue、revenue_surprise 和 revenue_surprise_pct 的 quarterly 区块,earnings_per_share 的同样三项,以及同比变化字段。它还会返回 signals:由上游计算的标记,例如带 headline 以及其背后 actual / estimate / surprise_pct 的 EPS_BEAT。ticker 为必填,也是唯一的参数。适合用于查看公司实际公布了什么。如需尚未发生的前瞻性一致预期,请使用 get_financial_analyst_estimates。
示例
curl -X GET "https://api.aisa.one/apis/v1/financial/earnings?ticker=NVDA" \
-H "Authorization: Bearer $AISA_API_KEY"
// 把整段复制给 Claude Code、Codex、Cursor 或任意 coding agent。
// 连接、授权、跑通这个例子需要的东西都在里面 ——
// 不用粘贴任何 key,浏览器里点一次 Allow 就好。
{
"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/zh/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 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次
Allow,不需要粘贴任何 key。各客户端的具体命令和每次调用的价格见
aisa.one/zh-cn/mcp。授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
查询参数
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).
响应
收益响应
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.