# Google Finance Live Query Actor (`scrapeai/google-finance`) Actor

Discover query-matched Google Finance instruments and extract verified live quote pages with prices, currencies, exchange, market cap and company metrics. Supports explicit SYMBOL:EXCHANGE lists.

- **URL**: https://apify.com/scrapeai/google-finance.md
- **Developed by:** [ScrapeAI](https://apify.com/scrapeai) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 50.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 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.

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

### What does Google Finance Live Query Actor do?

This **Google Finance Actor** discovers instruments for your query through live Google Search, opens each matching Google Finance quote page, and verifies its ticker and price before adding a record. It also accepts comma-separated `SYMBOL:EXCHANGE` values, which fetch the requested quotes directly. Each instrument produces one dataset row.

The legacy Finance search URL now redirects to a general market page. This Actor uses query-based discovery instead of returning unrelated market indices from that page. It does not access brokerage accounts or personalized portfolios. Prices reflect the source page and may be delayed; inspect the market timestamp before using a value.

### Why use this Actor?

Use it to research instruments, compare published quotes, collect company metrics, or feed an existing market-data workflow. Apify provides API access, scheduling, integrations, monitoring and downloadable datasets. Results include their source URL and retrieval time so you can audit each record against [Google Finance](https://www.google.com/finance/).

### How to use this Actor

1. Enter a query such as `technology stocks`, a company name, or comma-separated symbols such as `NVDA:NASDAQ,AAPL:NASDAQ`.
2. Set `maxItems` and the minimum count you require. Defaults are 10.
3. Leave GOOGLE_SERP discovery enabled for queries, or explicitly disable the proxy to try direct Google Search access.
4. Start the Actor and inspect the dataset. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Input

`query` controls discovery. `maxItems` limits the number of distinct instruments; `minItems` makes insufficient output fail rather than padding it. A single explicitly requested instrument cannot produce ten distinct instruments: set both counts to 1 for that use case. The effective minimum never exceeds `maxItems`.

`hl` and `gl` set the discovery language and country. `requestTimeoutSecs` defaults to 45 and accepts 5–60 seconds. `proxyConfiguration` defaults to `{"useApifyProxy":true,"groups":["GOOGLE_SERP"]}`. Explicit symbol lists skip discovery and its proxy requests. Other service-specific fields inherited by the input form are ignored.

### Output and data fields

| Field | Meaning |
| --- | --- |
| title, url | Company or instrument and verified quote URL |
| details.ticker, symbol, exchange | Identity from the final quote page |
| details.price, priceText, currency | Primary quote and source currency |
| details.changePercent | Change displayed beside that primary quote |
| details.open, high, low | Session metrics when available |
| details.marketCap, volume, averageVolume | Published market metrics |
| details.peRatio, eps, beta | Published company metrics |
| details.marketTimestamp | Source market time, when exposed |
| sourceType, scrapedAt | Extraction method and retrieval time |

Fields absent from the source remain absent. Related-stock prices and currencies are excluded from the primary quote. No unrelated suggestions or generated instrument records are added.

### Pricing and cost estimation

The configured Store fee is $0.00199 per result ($1.99 per 1,000), plus the $0.00005 Actor Start event. Users pay Apify platform usage and proxy costs. General queries can use multiple paid GOOGLE_SERP requests: at most six discovery pages for ten requested records, increasing up to fifteen for larger requests. Quote pages are fetched directly. Check your current Apify pricing for platform and proxy rates.

### Tips and limitations

Use explicit symbols when identity matters most. Free-text search ranks source pages and matching names or profiles; a phrase is not a guaranteed industry classification. Fewer than the minimum verified records causes a failed run. Direct access may encounter Google challenges. The Actor reports those errors and does not solve CAPTCHAs.

### FAQ and support

Run `apify validate-schema` and `apify run` locally. Local datasets are not synchronized to the cloud. Deploy and run on Apify to inspect production output. Website changes, rate limits, incomplete pages and regional differences can affect extraction. Review the source timestamp and relevant data-use terms. Use the Actor Issues tab for reproducible problems, including the input and run URL.

# Actor input Schema

## `query` (type: `string`):

Query or text to send to the public Google Finance source. The default is a working live-data query.

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

Maximum number of live records to return. Use 10 for a quick check or increase up to 100 when the source supports it.

## `minItems` (type: `integer`):

The Actor fails instead of adding static data when the live source returns fewer than this many records. Default is 10.

## `hl` (type: `string`):

Two- or three-letter language code for the live request.

## `gl` (type: `string`):

Two-letter country code used for regional live results.

## `requestTimeoutSecs` (type: `integer`):

Timeout for each live Google discovery or publisher request.

## `proxyConfiguration` (type: `object`):

Uses the paid GOOGLE_SERP group for Google Search discovery by default. Each search page is a separate proxy request. Set useApifyProxy to false for direct discovery. Quote and publisher pages are fetched directly.

## `targetLanguages` (type: `array`):

Optional language codes used by Google Translate. Ignored by other Actors.

## `departureDate` (type: `string`):

Optional flight departure date in YYYY-MM-DD format. Used by Google Flights; ignored by other Actors.

## `returnDate` (type: `string`):

Optional flight return date in YYYY-MM-DD format. Used by Google Flights; ignored by other Actors.

## `checkInDate` (type: `string`):

Optional hotel check-in date in YYYY-MM-DD format. Used by Google Hotels; ignored by other Actors.

## `checkOutDate` (type: `string`):

Optional hotel check-out date in YYYY-MM-DD format. Used by Google Hotels; ignored by other Actors.

## Actor input object example

```json
{
  "query": "technology stocks",
  "maxItems": 10,
  "minItems": 10,
  "hl": "en",
  "gl": "us",
  "requestTimeoutSecs": 45,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "groups": [
      "GOOGLE_SERP"
    ]
  },
  "targetLanguages": []
}
```

# Actor output Schema

## `dataset` (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 = {
    "query": "technology stocks",
    "hl": "en",
    "gl": "us",
    "targetLanguages": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeai/google-finance").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 = {
    "query": "technology stocks",
    "hl": "en",
    "gl": "us",
    "targetLanguages": [],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeai/google-finance").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 '{
  "query": "technology stocks",
  "hl": "en",
  "gl": "us",
  "targetLanguages": []
}' |
apify call scrapeai/google-finance --silent --output-dataset

```

## MCP server setup

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

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/JiD6Q4ilOGLUdtKcd/builds/Un7o1S8RQfG1T3sNQ/openapi.json
