curl -sS "https://api.stockcontext.com/v1/tools/stock_financials" \
-H "X-API-Key: $STOCKCONTEXT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"symbol":"SAP","schema":2,"statements":["income","balance"],"period_kind":"annual","periods":2}'import requests
url = "https://api.stockcontext.com/v1/tools/stock_financials"
payload = {
"symbol": "SAP",
"schema": 2,
"statements": ["income", "balance"],
"period_kind": "annual",
"periods": 2
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
symbol: 'SAP',
schema: 2,
statements: ['income', 'balance'],
period_kind: 'annual',
periods: 2
})
};
fetch('https://api.stockcontext.com/v1/tools/stock_financials', 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.stockcontext.com/v1/tools/stock_financials",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbol' => 'SAP',
'schema' => 2,
'statements' => [
'income',
'balance'
],
'period_kind' => 'annual',
'periods' => 2
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.stockcontext.com/v1/tools/stock_financials"
payload := strings.NewReader("{\n \"symbol\": \"SAP\",\n \"schema\": 2,\n \"statements\": [\n \"income\",\n \"balance\"\n ],\n \"period_kind\": \"annual\",\n \"periods\": 2\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.stockcontext.com/v1/tools/stock_financials")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"SAP\",\n \"schema\": 2,\n \"statements\": [\n \"income\",\n \"balance\"\n ],\n \"period_kind\": \"annual\",\n \"periods\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stockcontext.com/v1/tools/stock_financials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"SAP\",\n \"schema\": 2,\n \"statements\": [\n \"income\",\n \"balance\"\n ],\n \"period_kind\": \"annual\",\n \"periods\": 2\n}"
response = http.request(request)
puts response.read_bodyFinancial statements
SEC-verified income statement, balance sheet, cash flow, and ratios with per-cell provenance.
curl -sS "https://api.stockcontext.com/v1/tools/stock_financials" \
-H "X-API-Key: $STOCKCONTEXT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"symbol":"SAP","schema":2,"statements":["income","balance"],"period_kind":"annual","periods":2}'import requests
url = "https://api.stockcontext.com/v1/tools/stock_financials"
payload = {
"symbol": "SAP",
"schema": 2,
"statements": ["income", "balance"],
"period_kind": "annual",
"periods": 2
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
symbol: 'SAP',
schema: 2,
statements: ['income', 'balance'],
period_kind: 'annual',
periods: 2
})
};
fetch('https://api.stockcontext.com/v1/tools/stock_financials', 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.stockcontext.com/v1/tools/stock_financials",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbol' => 'SAP',
'schema' => 2,
'statements' => [
'income',
'balance'
],
'period_kind' => 'annual',
'periods' => 2
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.stockcontext.com/v1/tools/stock_financials"
payload := strings.NewReader("{\n \"symbol\": \"SAP\",\n \"schema\": 2,\n \"statements\": [\n \"income\",\n \"balance\"\n ],\n \"period_kind\": \"annual\",\n \"periods\": 2\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.stockcontext.com/v1/tools/stock_financials")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"SAP\",\n \"schema\": 2,\n \"statements\": [\n \"income\",\n \"balance\"\n ],\n \"period_kind\": \"annual\",\n \"periods\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stockcontext.com/v1/tools/stock_financials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"SAP\",\n \"schema\": 2,\n \"statements\": [\n \"income\",\n \"balance\"\n ],\n \"period_kind\": \"annual\",\n \"periods\": 2\n}"
response = http.request(request)
puts response.read_bodystock_financials is the statement-face source for the fields below. Served cells are filed-scale decimal strings unless the row is a derived ratio.
2026-07-07 income statement fields
| Field | Statement | Description and basis | Refusal / guard behavior |
|---|---|---|---|
interest_expense | income_statement | Consolidated operating interest expense from the statement face. If the face renders the expense as a negative row, the API serves the canonical positive magnitude. | Refuses not_reported when no exact face concept is present. Refuses ambiguous_candidate for captive-finance / partial labels or multiple interest-expense-family concepts on the same face. |
dividends_per_share | income_statement | Annual common DPS from facts; declared DPS wins, then cash-paid DPS. The overview valuation block exposes the basis as declared or cash_paid. | Refuses not_reported when no valid current-FY ISO-4217/share row exists. Refuses ambiguous_candidate when class-dimensioned DPS rows differ. |
verification_pending while scoring is incomplete or oracle_contradicted if verification blocks serving it.Authorizations
Body
Request body for stock_financials.
Ticker or resolvable symbol.
1 - 24Schema-1 statement selector. financials returns all three statements.
income, balance, cash_flow, financials Period family to return.
annual, quarter, ytd Number of periods to return.
1 <= x <= 20Only latest_restated is advertised and served for new integrations.
latest_restated Schema 1 accepts concise/full. Schema 2 maps omitted or concise to core and accepts core/full/audit.
concise, full, core, audit Response schema selector. Omit (or send 2) for the schema-2 envelope, the default; 1 selects the frozen legacy wire. Boolean values are rejected by the API boundary.
1, 2 Schema-2 statement list. Aliases income_statement and balance_sheet are canonicalized before validation; the response orders statements as income, balance, cash_flow.
3income, balance, cash_flow Schema-2 only. Adds approximate twin fields when the renderer can compute them.
Response
Get SEC-verified financial statements. Envelope-level schema; captured examples remain authoritative for full nested payload detail.
Schema-2 envelope. The OpenAPI schema is structural; captured examples are authoritative for full nested payload detail.