Yahoo Finance API endpoint
Returns financial statement data for a Yahoo Finance `symbol`. `statement` picks `income`, `balance-sheet` or `cash-flow` (aliases `income-statement`, `balance` and `cashflow` also work) and `period` picks `annual`, `quarterly` or `trailing`; trailing is supported for income and cash flow only. The response echoes `statement` and `period`, with the data under `modules`.
/yahoo-finance/ticker/{symbol}/financialsPath parameters: symbol.
Query parameters: optional statement with income, balance-sheet, or cash-flow (the aliases income-statement, balance, and cashflow are also accepted); optional period with annual, quarterly, or trailing. Trailing is supported for income and cash flow.
| Field | Filled in, of 4 checked | Values in the sample |
|---|---|---|
| costOfRevenue | 4 | 0 |
| discontinuedOperations | 0 | |
| ebit | 4 | 0 |
| effectOfAccountingCharges | 0 | |
| endDate | 4 | 1,664,496,000 to 1,759,190,400, median 1,696,032,000 |
| extraordinaryItems | 0 | |
| grossProfit | 4 | 0 |
| incomeBeforeTax | 0 | |
| incomeTaxExpense | 4 | 0 |
| interestExpense | 0 | |
| maxAge | 4 | 1 |
| minorityInterest | 0 | |
| netIncome | 4 | 93,736,000,000 to 112,010,000,000, median 96,995,000,000 |
| netIncomeApplicableToCommonShares | 0 | |
| netIncomeFromContinuingOps | 0 | |
| nonRecurring | 0 | |
| operatingIncome | 0 | |
| otherItems | 0 | |
| otherOperatingExpenses | 0 | |
| researchDevelopment | 0 | |
| sellingGeneralAdministrative | 0 | |
| totalOperatingExpenses | 4 | 0 |
| totalOtherIncomeExpenseNet | 0 | |
| totalRevenue | 4 | 383,285,000,000 to 416,161,000,000, median 391,035,000,000 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| symbol (path) | string | Yes | Yahoo Finance symbol such as AAPL | AAPL | |
| statement | string | No | Statement type. Allowed values: income (alias income-statement), balance-sheet (alias balance), cash-flow (alias cashflow) Allowed values: income, income-statement, balance-sheet, balance, cash-flow, cashflow. | ||
| period | string | No | annual, quarterly, or trailing Allowed values: annual, quarterly, trailing. | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/yahoo-finance/ticker/AAPL/financials?statement=income&period=annual" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"symbol": "AAPL",
"statement": "income",
"period": "annual",
"modules": {
"incomeStatementHistory": {}
}
}
}Request schema
No body schema
Response schema
#/definitions/yahoofinance.financialsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | yahoofinance.FinancialsResponse | No | ||||
| data.modules | object | No | Statement line items grouped by section. | |||
| data.period | string | No | annual | Reporting period returned, for example `annual`. | ||
| data.statement | string | No | income | Statement returned, for example `income`. | ||
| data.symbol | string | No | AAPL | Ticker symbol, for example `AAPL`. | ||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/yahoo-finance/ticker/AAPL/financials?statement=income&period=annual" \
-H "x-api-key: $CRAWLORA_API_KEY"