Yahoo Finance Financial Statements
POST /api/v1/yahoo-finance/financials
Scrape income statement, balance sheet, and cash flow statement metrics from Yahoo Finance.
Overview
Scrape income statement, balance sheet, and cash flow statement metrics from Yahoo Finance.
POST /api/v1/yahoo-finance/financials
Method: POST Path: /api/v1/yahoo-finance/financials Category: Finance
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| geolocation | string | Optional | Country the request is made from, as a two-letter code, e.g. US |
| period | string | Optional | Optional fiscal period (e.g. FY2025, TTM); defaults to latest annual period |
| target | string | Required | Ticker symbol or Yahoo Finance quote URL, e.g. AAPL |
Request Example
Yahoo Finance Financial Statements Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/yahoo-finance/financials" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"geolocation": "US", "period": "example", "target": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "financial_statements": { "period": "string", "income_statement": { "revenue": 0, "operating_income": 0, "net_income": 0 }, "balance_sheet": { "cash": 0, "total_debt": 0, "total_assets": 0 }, "cash_flow_statement": { "operating_cash_flow": 0, "capital_expenditures": 0, "free_cash_flow": 0 } }, "available_periods": [ "string" ], "all_periods": { "income_statement": {}, "balance_sheet": {}, "cash_flow_statement": {} }, "error": "string", "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Yahoo Finance Financial Statements", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| financial_statements | object | Yes | |
| financial_statements.period | string | Yes | Fiscal period selected (e.g. FY2025, FY2026, TTM) |
| financial_statements.income_statement | object | Yes | Core income statement line items for the period |
| financial_statements.income_statement.revenue | integer | null | No | Total revenue |
| financial_statements.income_statement.operating_income | integer | null | No | Operating profit / income |
| financial_statements.income_statement.net_income | integer | null | No | Net income available to common stockholders |
| financial_statements.balance_sheet | object | Yes | Core balance sheet line items for the period |
| financial_statements.balance_sheet.cash | integer | null | No | Cash, cash equivalents, and short-term investments |
| financial_statements.balance_sheet.total_debt | integer | null | No | Total debt obligations |
| financial_statements.balance_sheet.total_assets | integer | null | No | Total company assets |
| financial_statements.cash_flow_statement | object | Yes | Core cash flow statement line items for the period |
| financial_statements.cash_flow_statement.operating_cash_flow | integer | null | No | Cash flow generated from operating activities |
| financial_statements.cash_flow_statement.capital_expenditures | integer | null | No | Capital expenditure payments |
| financial_statements.cash_flow_statement.free_cash_flow | integer | null | No | Free cash flow to firm |
| available_periods | array<string> | No | List of all reporting periods available in the statements |
| all_periods | object | No | Complete financial statement line items mapped across all available periods |
| all_periods.income_statement | object | No | Every income statement metric mapped to each period |
| all_periods.balance_sheet | object | No | Every balance sheet metric mapped to each period |
| all_periods.cash_flow_statement | object | No | Every cash flow metric mapped to each period |
| error | string | No | Error message when scrape fails |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/yahoo-finance/financials?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
target,geolocation,period example,US,example
Pricing & Rate Limits
Endpoint Pricing
$0.0022 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |