# Google Finance Quotes, Analyst & Earnings Data (`xyrelith-data/google-finance-scraper`) Actor

Collect Google Finance quotes for stocks, ETFs, indexes, FX and crypto, or discover market movers and lists. Each quote bundles key stats, company profile, analyst ratings and price targets, latest earnings actual-versus-estimate, a quarterly income statement and news.

- **URL**: https://apify.com/xyrelith-data/google-finance-scraper.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** Automation, Developer tools, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Finance Quotes, Analyst & Earnings Data

Collect **Google Finance** quote pages and market lists in one run. Feed it exchange-qualified tickers such as `AAPL:NASDAQ`, `7203:TYO`, `EUR-USD`, `BTC-USD` or `.INX:INDEXSP`, and get a single record per instrument with the live quote, key statistics, company profile, analyst consensus and dated actions, the latest earnings actual-versus-estimate, four quarters of income-statement data and recent news. A second mode returns the day's most active stocks, gainers, losers, indexes, currencies, cryptocurrencies and futures. No API key, cookies or proxy configuration needed.

### What this actor does

- **Two modes:** `quotes` for per-instrument pages and `markets` for the market home lists.
- **Every instrument type Google lists:** stocks, ETFs, indexes, currency pairs, crypto pairs and futures, across global exchanges.
- **Quote plus fundamentals in one row:** price, change, after-hours quote, day range, 52-week range, market cap, volume, P/E, EPS, beta, dividends, shares outstanding and employee count.
- **Analyst detail competitors often split out:** buy/hold/sell counts, consensus, 12-month high/average/low targets with upside, and every dated analyst action with firm, rating and price target.
- **Earnings and statements:** latest reported EPS and revenue against estimates with beat/miss percentages, reported-quarter history, and a quarterly income statement with revenue, costs, EBITDA, margins, EPS and tax rate.
- **Localized output:** 30 Google Finance interface languages for page text and news. Numeric values stay as numbers in the instrument's own currency.
- **Empty fields are omitted** — you never have to defend against `null`, `""` or empty arrays.

### Output per quote (`mode = "quotes"`)

Identity and timing:

- `recordType` — `quote` (or `error` for an unresolved symbol)
- `source`, `language`, `scrapedAt`
- `instrumentType` — `stock`, `etf`, `index`, `currency`, `crypto` or `future`
- `symbol`, `exchange`, `name`, `currency`
- `baseCurrency`, `quoteCurrency` — for FX and crypto pairs
- `country`, `timezone`, `url`
- `marketStatus` — `OPEN`, `CLOSED` or `PRE_MARKET`
- `marketStatusText` — Google's own status line, as displayed
- `regularMarketTime`, `lastUpdated`
- `afterHoursPrice`, `afterHoursChange`, `afterHoursChangePercent`, `afterHoursLastUpdated` — when Google publishes extended-hours data

Price and key statistics:

- `price`, `change`, `changePercent`, `previousClose`
- `open`, `high`, `low`
- `marketCap`, `averageVolume`, `volume`
- `dividendYield`, `quarterlyDividend`, `quarterlyDividendText`
- `exDividendDate`, `exDividendDateIso`
- `peRatio`, `eps`, `beta`, `sharesOutstanding`
- `week52High`, `week52Low`, `employeeCount`

Company profile (when Google supplies an About block):

- `description`, `ceo`, `ceos`
- `founded`, `headquarters`, `address`, `countryCode`
- `sector`, `industry`, `website`, `wikipediaUrl`

Analyst view:

- `consensus`, `analystCount`
- `buyRatings`, `holdRatings`, `sellRatings`
- `priceTargetHigh`, `priceTargetAverage`, `priceTargetLow`, `priceTargetUpsidePercent`
- `analystActions[]` — `analyst`, `firm`, `rating`, `action`, `date`, `dateTime`, `priceTarget`, `priceTargetCurrency`, `previousPriceTarget`, `priceTargetUpsidePercent`, `url`

Latest earnings and history:

- `latestEarnings` — `fiscalYear`, `fiscalQuarter`, `fiscalPeriod`, `periodEnd`, `reportedAt` (when Google supplies it), `currency`, `revenueActual`, `revenueEstimate`, `revenueBeatPercent`, `revenueResult`, `epsActual`, `epsEstimate`, `epsBeatPercent`, `epsResult`
- `earningsHistory[]` — the same shape for each retained reported quarter

Quarterly income statement (`incomeStatement[]`):

- `fiscalYear`, `fiscalQuarter`, `fiscalPeriod`, `periodEnd`, `currency`
- `revenue`, `costOfGoodsSold`, `costOfRevenue`, `grossProfit`
- `researchAndDevelopment`, `sellingGeneralAndAdministrative`, `operatingExpense`, `totalOperatingExpenses`
- `operatingIncome`, `otherNonOperatingIncome`
- `ebtIncludingUnusualItems`, `ebtExcludingUnusualItems`, `incomeTaxExpense`, `effectiveTaxRate`
- `netIncome`, `netProfitMargin`, `eps`, `ebitda`

News and peers:

- `news[]` — `headline`, `source`, `publishedAt`, `age`, `url`, `summary`
- `newsCount`
- `relatedStocks[]` — `symbol`, `name`, `price`, `changePercent`

### Output per market row (`mode = "markets"`)

- `recordType` — `market`
- `listName` — `mostActive`, `gainers`, `losers`, `indexes`, `currencies`, `crypto` or `futures`
- `instrumentType`, `symbol`, `name`, `exchange`, `currency`
- `price`, `change`, `changePercent`, `previousClose`
- `lastUpdated`, `url`
- `source`, `language`, `scrapedAt`

### Output per error row

- `recordType` — `error`
- `symbol`, `error`, `url`, `source`, `language`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `quotes` | `quotes` for instrument pages, `markets` for market lists |
| `symbols` | array | `["AAPL:NASDAQ"]` | Exchange-qualified symbols, pairs or quote URLs (mode=quotes). Bare tickers use `defaultExchange` |
| `defaultExchange` | string | `NASDAQ` | Exchange appended to a bare ticker (mode=quotes) |
| `language` | string | `en` | Google Finance interface/news language (30 options) |
| `marketLists` | array | `["mostActive"]` | Any of `mostActive`, `gainers`, `losers`, `indexes`, `currencies`, `crypto`, `futures`, `all` (mode=markets) |
| `maxItems` | int | `100` | Hard cap on pushed records, including error rows (1–500) |
| `includeAfterHours` | boolean | `true` | Keep the extended-hours quote when available |
| `includeProfile` | boolean | `true` | Keep the company profile fields |
| `includeAnalystView` | boolean | `true` | Keep analyst counts, targets and actions |
| `includeEarnings` | boolean | `true` | Keep latest earnings and reported-quarter history |
| `includeIncomeStatement` | boolean | `true` | Keep the quarterly income statement |
| `includeNews` | boolean | `true` | Keep recent news |
| `includeRelatedStocks` | boolean | `true` | Keep related-stock cards for equities |
| `maxAnalystActions` | int | `50` | Analyst actions kept per instrument (1–200) |
| `incomeStatementQuarters` | int | `4` | Income-statement quarters and earnings-history rows kept (1–8) |
| `maxNewsItems` | int | `20` | News stories kept per instrument (0–100) |

### Example: full record for a US stock

```json
{
  "mode": "quotes",
  "symbols": ["AAPL:NASDAQ", "MSFT:NASDAQ"],
  "maxItems": 2,
  "maxAnalystActions": 20,
  "incomeStatementQuarters": 4,
  "maxNewsItems": 10
}
```

### Example: global mix of exchange, FX, crypto and index

```json
{
  "mode": "quotes",
  "symbols": ["7203:TYO", "SAP:ETR", "EUR-USD", "BTC-USD", ".INX:INDEXSP"],
  "maxItems": 5
}
```

### Example: daily market movers and lists

```json
{
  "mode": "markets",
  "marketLists": ["mostActive", "gainers", "losers", "crypto"],
  "maxItems": 30
}
```

### Example: lean localization run

```json
{
  "mode": "quotes",
  "symbols": ["0700:HKG"],
  "language": "zh-CN",
  "includeIncomeStatement": false,
  "includeNews": false,
  "maxItems": 1
}
```

### Use cases

- Build a daily watchlist snapshot with quotes, valuation ratios and 52-week ranges.
- Compare analyst consensus, price targets and recent rating changes across a sector.
- Track earnings beats and misses, then pull the matching quarterly income statement.
- Monitor currency, crypto and index levels alongside equities in one dataset.
- Run a localized market brief with news and company descriptions in the audience's language.
- Feed a spreadsheet or BI tool with flat, numeric records that need no null handling.

### FAQ

**Which symbol format should I use?**
Use Google Finance's `SYMBOL:EXCHANGE` form: `AAPL:NASDAQ`, `7203:TYO`, `.INX:INDEXSP`. Currency and crypto pairs use a dash (`EUR-USD`, `BTC-USD`). Google Finance quote URLs are accepted and converted automatically. A bare ticker gets the `defaultExchange` suffix.

**Why is a field missing from one record?**
Google does not publish every field for every instrument. Indexes have no company profile, FX and crypto have no P/E or market cap, and analyst coverage varies by exchange. Missing fields are omitted rather than returned as null. Beta, website and dividend fields are the most common omissions.

**Do I need an API key, cookies or a proxy?**
No. The actor reads public Google Finance pages with no account, cookie or proxy setup. If a request is rate-limited, it retries and can switch to a datacenter proxy automatically.

**When is after-hours data available?**
Google publishes an extended-hours quote only when its page has one, usually for US equities outside the regular session. The timestamp is included so you can tell how fresh it is.

**Does `language` translate the numbers?**
No. Prices, ratios and statement values remain numeric in the instrument's own currency. The setting localizes page labels, company descriptions, status text and news, and the original text fields are kept where Google supplies them.

**What does `marketStatus` mean?**
It is derived from Google's trading schedule: `OPEN`, `CLOSED` or `PRE_MARKET`. `marketStatusText` keeps Google's raw status line, which may be localized.

**Can I get the balance sheet or cash flow statement?**
Those tabs are not part of the page data this actor reads. The quarterly income statement, latest earnings and reported earnings history are included. Balance sheet and cash-flow statements are not.

**How many symbols can one run handle?**
Up to 500 records via `maxItems`; the default is 100. Market mode also deduplicates a symbol that appears in more than one selected list.

**Why are some markets lists only a few rows?**
The Google Finance markets home exposes four rows per mover list and five per index/currency/crypto/futures group. The actor returns exactly what the page publishes.

**Is the data real time?**
It is the same delayed data Google Finance shows on the page. `lastUpdated`, `regularMarketTime` and each news `publishedAt` tell you the actual freshness.

# Actor input Schema

## `mode` (type: `string`):

quotes fetches per-instrument pages; markets reads the Google Finance markets home lists.

## `symbols` (type: `array`):

Exchange-qualified symbols such as AAPL:NASDAQ, 7203:TYO, .INX:INDEXSP, EUR-USD or BTC-USD. Quote URLs are accepted too. Bare tickers use the default exchange below.

## `defaultExchange` (type: `string`):

Exchange appended when a symbol has no SYMBOL:EXCHANGE suffix. Ignored for currency and crypto pairs.

## `language` (type: `string`):

Google Finance interface and news language. Data values stay numeric and in the instrument's own currency.

## `marketLists` (type: `array`):

One or more of: mostActive, gainers, losers, indexes, currencies, crypto, futures, all. Unknown values are ignored.

## `maxItems` (type: `integer`):

Hard cap on records pushed, including error records.

## `includeAfterHours` (type: `boolean`):

Keep Google's extended-hours price, change and timestamp when available.

## `includeProfile` (type: `boolean`):

Keep description, CEO, founding date, headquarters, sector, industry and website.

## `includeAnalystView` (type: `boolean`):

Keep consensus, buy/hold/sell counts, price targets and recent analyst actions.

## `includeEarnings` (type: `boolean`):

Keep the latest reported EPS and revenue actual-versus-estimate plus the reported-quarter history.

## `includeIncomeStatement` (type: `boolean`):

Keep quarterly revenue, costs, operating income, EBITDA, net income, margins, EPS and tax rate.

## `includeNews` (type: `boolean`):

Keep recent instrument news stories with headline, source, age and URL.

## `includeRelatedStocks` (type: `boolean`):

Keep the related-stock quote cards Google embeds on equity pages.

## `maxAnalystActions` (type: `integer`):

How many recent analyst actions to keep per instrument.

## `incomeStatementQuarters` (type: `integer`):

Reported quarters to keep in the quarterly income statement and earnings history (newest first).

## `maxNewsItems` (type: `integer`):

News stories to keep per instrument. Set 0 to skip news even when Include news is on.

## Actor input object example

```json
{
  "mode": "quotes",
  "symbols": [
    "AAPL:NASDAQ"
  ],
  "defaultExchange": "NASDAQ",
  "language": "en",
  "marketLists": [
    "mostActive"
  ],
  "maxItems": 1,
  "includeAfterHours": true,
  "includeProfile": true,
  "includeAnalystView": true,
  "includeEarnings": true,
  "includeIncomeStatement": true,
  "includeNews": true,
  "includeRelatedStocks": true,
  "maxAnalystActions": 50,
  "incomeStatementQuarters": 4,
  "maxNewsItems": 20
}
```

# Actor output Schema

## `records` (type: `string`):

Dataset containing quote, market and error records from Google Finance.

# 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 = {
    "mode": "quotes",
    "symbols": [
        "AAPL:NASDAQ"
    ],
    "defaultExchange": "NASDAQ",
    "language": "en",
    "marketLists": [
        "mostActive"
    ],
    "maxItems": 1,
    "includeAfterHours": true,
    "includeProfile": true,
    "includeAnalystView": true,
    "includeEarnings": true,
    "includeIncomeStatement": true,
    "includeNews": true,
    "includeRelatedStocks": true,
    "maxAnalystActions": 50,
    "incomeStatementQuarters": 4,
    "maxNewsItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/google-finance-scraper").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 = {
    "mode": "quotes",
    "symbols": ["AAPL:NASDAQ"],
    "defaultExchange": "NASDAQ",
    "language": "en",
    "marketLists": ["mostActive"],
    "maxItems": 1,
    "includeAfterHours": True,
    "includeProfile": True,
    "includeAnalystView": True,
    "includeEarnings": True,
    "includeIncomeStatement": True,
    "includeNews": True,
    "includeRelatedStocks": True,
    "maxAnalystActions": 50,
    "incomeStatementQuarters": 4,
    "maxNewsItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/google-finance-scraper").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 '{
  "mode": "quotes",
  "symbols": [
    "AAPL:NASDAQ"
  ],
  "defaultExchange": "NASDAQ",
  "language": "en",
  "marketLists": [
    "mostActive"
  ],
  "maxItems": 1,
  "includeAfterHours": true,
  "includeProfile": true,
  "includeAnalystView": true,
  "includeEarnings": true,
  "includeIncomeStatement": true,
  "includeNews": true,
  "includeRelatedStocks": true,
  "maxAnalystActions": 50,
  "incomeStatementQuarters": 4,
  "maxNewsItems": 20
}' |
apify call xyrelith-data/google-finance-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/google-finance-scraper"
        }
    }
}
```

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/ZnFVU3wGrMX4rT7Hh/builds/WHDtZ5oK3QDMyziwo/openapi.json
