# Yahoo Finance API — Stock Quotes, Fundamentals & Options (`kaz_kakyo/yahoo-finance-consolidated`) Actor

Yahoo Finance API: one normalized JSON report per ticker — stock quotes, company profile, fundamentals, earnings, institutional holders, news and options chains. Each block reports its own status instead of silent nulls. Billed only for data actually delivered.

- **URL**: https://apify.com/kaz\_kakyo/yahoo-finance-consolidated.md
- **Developed by:** [Heim AI](https://apify.com/kaz_kakyo) (community)
- **Categories:** Automation, News, Developer tools
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 ticker report (core)s

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Yahoo Finance API — Stock Quotes, Fundamentals, Earnings & Options Chain

Get **one normalized JSON report per ticker** — live quote, company profile, financial fundamentals, earnings, institutional holders, news, and optional options chains — in a single run. Built for stock screeners, valuation models, research dashboards, and AI agents that need **structured stock market data** without writing a Yahoo Finance scraper.

The thing that makes this different: **every block tells you its own status.** If fundamentals were throttled, you get `"status": "throttled"` — not a silent `null` you discover three steps later in your pipeline.

| | |
|---|---|
| **Actor id** | `kaz_kakyo/yahoo-finance-consolidated` |
| **Minimal input** | `{ "tickers": ["AAPL"] }` |
| **Cost** | **$0.0009**/ticker (quote & profile) · **$0.0020**/ticker (with fundamentals, earnings, holders or news) · **$0.0020**/options expiry |
| **Output** | one `ticker-report` row per ticker, plus one `option-chain` row per expiry |
| **Speed** | direct JSON endpoints — no browser, no `yfinance` dependency |

### Quick start

```json
{
  "tickers": ["AAPL", "MSFT", "NVDA"],
  "blocks": ["quote", "profile"]
}
```

That's a watchlist snapshot at $0.0009 per ticker. Want the full research pull? Ask for the deep blocks:

```json
{
  "tickers": ["AAPL"],
  "blocks": ["quote", "profile", "fundamentals", "earnings", "news", "holders"],
  "includeOptions": true
}
```

Call it from anywhere:

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('kaz_kakyo/yahoo-finance-consolidated').call(
  { tickers: ['AAPL', 'MSFT'], blocks: ['quote', 'profile'] },
  { maxTotalChargeUsd: 1.0 },
);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### What each block gives you

| Block | Tier | Contains |
|---|---|---|
| `quote` | core | Current/last price, day range, volume, market cap, market state |
| `profile` | core | Sector, industry, country, employee count, business summary |
| `fundamentals` | deep | Financial statement figures and key statistics |
| `earnings` | deep | Earnings history and estimates |
| `holders` | deep | Institutional and major holders |
| `news` | deep | Recent headlines for the ticker |
| options | separate | Calls and puts per expiry date (`includeOptions: true`) |

Request only what you need — you are billed on what is actually delivered, so a quote-only run costs the core rate.

### Output contract

**Ticker report** — one per requested ticker:

```json
{
  "type": "ticker-report",
  "ticker": "AAPL",
  "sourceTimestamp": "2026-07-30T20:00:00.000Z",
  "marketState": "closed",
  "currency": "USD",
  "quoteDelaySeconds": 0,
  "exchange": "NMS",
  "timezone": "America/New_York",
  "blocks": {
    "quote":        { "status": "ok",          "data": { "regularMarketPrice": 210.5 } },
    "profile":      { "status": "ok",          "data": { "sector": "Technology" } },
    "fundamentals": { "status": "unavailable", "data": null, "reason": "HTTP 429" }
  }
}
```

**Options chain** — one row per ticker × expiry when `includeOptions` is on:

```json
{ "type": "option-chain", "ticker": "AAPL", "expiry": "2026-08-03", "calls": [], "puts": [] }
```

#### Block status values — read these before you parse

| Status | Meaning | What to do |
|---|---|---|
| `ok` | Real data is present in `data` | Use it |
| `unavailable` | Yahoo returned nothing usable for this block | Treat as missing; check `reason` |
| `throttled` | Rate-limited upstream | Retry later; not a permanent failure |
| `schema_changed` | Response shape did not match what we expect | Data may exist but is untrusted — do not parse blindly |

A block is only `ok` when it contains **real market data**. Metadata-only or empty payloads are reported as `unavailable`, never dressed up as success.

**On freshness:** this is not advertised as real-time. Every report carries `sourceTimestamp`, `marketState` (pre / regular / post / closed), `currency`, and `quoteDelaySeconds` so you can decide whether the data is fresh enough for your use.

### Input reference

| Field | Type | Default | Notes |
|---|---|---|---|
| `tickers` | array of strings | — | **Required.** Symbols, e.g. `["AAPL","MSFT"]` |
| `blocks` | array | all six | Any of `quote`, `profile`, `fundamentals`, `earnings`, `news`, `holders` |
| `includeOptions` | boolean | `false` | Adds options chains as separate rows |
| `optionExpiries` | array of strings | all | Target specific expiry dates, e.g. `["2026-08-03"]` |

### Pricing

| Event | Price | Charged when |
|---|---|---|
| `ticker-core-delivered` | **$0.0009** | At least one block is `ok` and all `ok` blocks are core (`quote`, `profile`) |
| `ticker-full-delivered` | **$0.0020** | At least one deep block is `ok` (`fundamentals`, `earnings`, `holders`, `news`) |
| `option-chain-delivered` | **$0.0020** | Per delivered ticker × expiry chain |
| `apify-actor-start` | **$0.00005** | Per run |

You pay the deep rate only when deep data actually arrives. A ticker is billed **at most once** — core and full are mutually exclusive — and a report with no `ok` block is **never charged**. Cap spend with `maxTotalChargeUsd`.

### Why this one

- **One call, one normalized report** — no stitching together several endpoints or actors per ticker.
- **Honest failures.** A blocked or empty block is labelled, never converted into a silent `null` that quietly corrupts a model downstream.
- **Priced by what you receive**, so cheap watchlist polling stays cheap.
- **No browser, no `yfinance`** — it queries JSON endpoints directly, with crumb/cookie session handling, exponential backoff on 429/5xx, and a residential retry only when a refreshed session is still blocked.
- **Fails loud.** If every ticker is blocked upstream, the run fails with a diagnostic instead of finishing "successfully" with an empty dataset.

### Common uses

Watchlist and portfolio monitoring on a schedule · stock screeners and valuation models · earnings-season research · options analytics · competitor and sector tracking · feeding a finance agent or MCP tool with structured ticker data.

***

*Not affiliated with or endorsed by Yahoo. Market data is provided as retrieved and may be delayed; verify before relying on it for trading decisions.*

# Actor input Schema

## `tickers` (type: `array`):

Yahoo Finance symbols to fetch (e.g. `AAPL`, `MSFT`, `BRK-B`, `0700.HK`). One consolidated report per ticker. Max practical batch depends on your Max total charge.

## `blocks` (type: `array`):

Which sections to include in each report. Default = all non-options blocks. Each block carries an explicit status: `ok`, `unavailable`, `throttled`, or `schema_changed` — never a silent null success.

## `includeOptions` (type: `boolean`):

Default false. When true, also fetch Yahoo options JSON (billed separately per ticker × expiry chain delivered ok).

## `optionExpiries` (type: `array`):

Optional. Restrict options to these expiries (Unix epoch seconds or `YYYY-MM-DD`). When empty and `includeOptions` is true, only the nearest available expiry is fetched.

## Actor input object example

```json
{
  "tickers": [
    "AAPL"
  ],
  "blocks": [
    "quote",
    "profile",
    "fundamentals",
    "earnings",
    "news",
    "holders"
  ],
  "includeOptions": false
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tickers": [
        "AAPL"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kaz_kakyo/yahoo-finance-consolidated").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tickers": ["AAPL"] }

# Run the Actor and wait for it to finish
run = client.actor("kaz_kakyo/yahoo-finance-consolidated").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tickers": [
    "AAPL"
  ]
}' |
apify call kaz_kakyo/yahoo-finance-consolidated --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kaz_kakyo/yahoo-finance-consolidated"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vplx9KH33aO7TSfsh/builds/pBaTovXSfsGuT6nhJ/openapi.json
