Skip to main content
POST
Get Earnings

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-earnings
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-earnings
  • Runtime facts: 80f6d0ab09ca1b2bfaa51bc30934eca7d1f0ea7e38c9d075b9100f098998c5d9
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based billing; Default request estimate: $0.00089 USD (not a fixed price). Declared unit rate: $0.000001 USD per provider_credit. 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.00089
  • Declared unit rate (USD): 1e-06
  • Billing unit: provider_credit
  • Cost contract: response_units
  • Published reference multiplier: 1.0
  • Declared maximum count/units: 10000000
  • Settlement evidence source: response_body

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
cik
string

Company Central Index Key. Mutually exclusive with ticker. Supply a company identifier, date, or complete date range.

date
string

Exact filing date in YYYY-MM-DD format. Mutually exclusive with date_start/date_end; supply a company identifier, date, or complete date range.

Pattern: ^\d{4}-\d{2}-\d{2}$
year
integer

Fiscal year. Required with period or quarter, which also require a company identifier. Free users are limited to 2026; Premium covers the last 5 fiscal years; Business tier and above provides full history.

offset
integer
default:0

Results to skip; pages contain 50.

Required range: x >= 0
period
enum<string>

Fiscal period. Mutually exclusive with quarter and requires a company identifier and year.

Available options:
q1,
q2,
q3,
q4,
fy
ticker
string

Company ticker symbol. Mutually exclusive with cik. Supply a company identifier, date, or complete date range.

quarter
enum<string>

Fiscal quarter. Mutually exclusive with period and requires a company identifier and year.

Available options:
1,
2,
3,
4
date_end
string

Range end in YYYY-MM-DD format. Requires date_start and is mutually exclusive with date; supply a company identifier, date, or complete date range.

Pattern: ^\d{4}-\d{2}-\d{2}$
date_start
string

Range start in YYYY-MM-DD format. Requires date_end and is mutually exclusive with date; supply a company identifier, date, or complete date range.

Pattern: ^\d{4}-\d{2}-\d{2}$

Response

Tool result data

cash_flow
object
filing_info
object
company_info
object
balance_sheet
object
income_statement
object