# Google Finance (`canadesk/google-finance`) Actor

Search Google Finance instruments and collect current quotes or historical prices for stocks, funds, indices, currency pairs and crypto.

- **URL**: https://apify.com/canadesk/google-finance.md
- **Developed by:** [Canadesk Support](https://apify.com/canadesk) (community)
- **Categories:** News, Social media, SEO tools
- **Features:** Full permissions
- **Stats:** 115 total users, 4 monthly users, 99.4% runs succeeded, 7 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 finance results

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/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

Collect quotes and historical prices from **Google Finance**. Search financial instruments or submit a list of tickers, funds, indices, currency pairs and crypto pairs.

### Features

| **Process** | **What you get** |
| :--- | :--- |
| Search | Matching instruments with tickers, names and exchanges |
| Get Price | Available prices, changes, previous close, currency and after-hours information |
| Get History | Historical price points and available volume, newest first |

Historical timestamps are converted to UTC. Available periods and fields depend on the instrument.

### Example

```json
{
  "process": "gh",
  "tickers": ["GOOGL:NASDAQ", "SWPPX:MUTF", "EUR-USD"],
  "period": "5d",
  "maxResults": 1000,
  "delay": 1,
  "proxy": { "useApifyProxy": false }
}
```

Choose `gs` to search, `gp` for quotes, or `gh` for history. An exchange-qualified ticker such as `GOOGL:NASDAQ` avoids ambiguity. For history, a bare ticker is resolved to a matching instrument when possible. Pairs use forms such as `EUR-USD` or `ETH-BTC`.

`maxResults` limits the total output across all tickers. `delay` sets the pause between requests. A proxy can be selected when needed.

### Output

Each result contains `ticker` and a `data` array with one instrument match, quote or historical point. Historical records contain `dateTimeUTC`, `price` and `volume`; quote records retain their instrument details and market timestamps.

Available history, sampling intervals and fields vary by instrument and selected period. Missing values remain empty. Quotes reflect Google Finance's supplied data and may be delayed.

For support, open an issue with the shared run URL and affected ticker.

#### Unsuccessful lookups

Where listed in the Pricing tab, a handled lookup problem that prevents a run from returning any real results produces one clear error record and a single $0.02 unsuccessful-lookup fee, in addition to any listed start fee.

### Pricing

Each valid pay-per-event run with at least one input includes a minimum charge of 100 result units, shared across all inputs in that run. Any placeholder rows are clearly marked and contain no scraped data; filter them out when exporting. Each separate run has its own minimum, including scheduled or API runs. Platform usage is included.

# Actor input Schema

## `process` (type: `string`):

Search instruments, collect current quotes or retrieve historical price points.

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

Ticker symbols, SYMBOL:EXCHANGE identifiers, or currency and crypto pairs.

## `period` (type: `string`):

Date range for historical prices.

## `maxResults` (type: `integer`):

Maximum instrument matches, quotes or historical price points across all tickers.

## `batch` (type: `integer`):

Retained for existing saved tasks. Requests are processed sequentially.

## `delay` (type: `integer`):

Seconds between source requests.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "process": "gh",
  "tickers": [
    ".DJI",
    "SWPPX:MUTF",
    "GOOGL:NASDAQ",
    "ETH-BTC",
    "EUR-USD"
  ],
  "period": "5d",
  "maxResults": 10000,
  "batch": 1,
  "delay": 3,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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": [
        ".DJI",
        "SWPPX:MUTF",
        "GOOGL:NASDAQ",
        "ETH-BTC",
        "EUR-USD"
    ],
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("canadesk/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 = {
    "tickers": [
        ".DJI",
        "SWPPX:MUTF",
        "GOOGL:NASDAQ",
        "ETH-BTC",
        "EUR-USD",
    ],
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("canadesk/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 '{
  "tickers": [
    ".DJI",
    "SWPPX:MUTF",
    "GOOGL:NASDAQ",
    "ETH-BTC",
    "EUR-USD"
  ],
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call canadesk/google-finance --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,canadesk/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/5BAb5hv8YFQXEweKU/builds/21LTBK6DnkGfauoSX/openapi.json
