# Google Finance Scraper (`scraped_org/google-finance-scraper`) Actor

Effortlessly gather stocks, ETFs, Mutual Funds data from Google Finance.
Our Actor is designed for speed, reliability, and scalability, handling multiple stocks in a single run with ease.
Perfect for businesses, developers, and analysts looking to gain insights and make data-driven decisions.

- **URL**: https://apify.com/scraped\_org/google-finance-scraper.md
- **Developed by:** [Scraped](https://apify.com/scraped_org) (community)
- **Categories:** Developer tools
- **Stats:** 30 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$25.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

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

## Google Finance Scraper

Effortlessly gather stocks, ETFs, Mutual Funds data from **Google Finance**.<br>
Our Actor is designed for speed, reliability, and scalability, handling multiple stocks in a single run with ease.<br>
Perfect for businesses, developers, and analysts looking to gain insights and make data-driven decisions.<br>
Apify proxies are supported by this actor. See [explanation](#proxy). See those links for more information: [Link1](https://docs.apify.com/sdk/python/docs/concepts/proxy-management), [Link2](https://docs.apify.com/platform/actors/development/actor-definition/input-schema/specification/v1#object)<br>
Key features include:

- Stocks Details
- Market Trends
- Stock Search

### Actions

| Action Name                       | Action Code        | Description        |
| --------------------------------- | ------------------ | ------------------ |
| [Stocks Details](#stocks-details) | `"stocks_details"` | Get Stocks Details |
| [Market Trends](#market-trends)   | `"market_trends"`  | Get Market Trends  |
| [Search Stocks](#search-stocks)   | `"search_stocks"`  | Search Stocks      |

#### Stocks Details

Get Stocks Details from Google Finance.

##### Inputs

| Input Name                           | Input Code                          | Description                                                                     | Type             | Constraints                                    | Required | Default            |
| ------------------------------------ | ----------------------------------- | ------------------------------------------------------------------------------- | ---------------- | ---------------------------------------------- | -------- | ------------------ |
| Action                               | `action`                            | Perform extraction of stocks details from Google Finance                        | String           | Pass `"stocks_details"` to perform this action | Yes      | `"stocks_details"` |
| Country                              | `country`                           | 2 letters country code (ISO 3166-2)                                             | String           | Valid country code                             | No       | `"us"`             |
| Language                             | `language`                          | 2 letters language code (ISO 639-1)                                             | String           | Valid language Code                            | No       | `"en"`             |
| Stocks                               | `stocks`                            | List of stocks. Fill stocks as in Google Finance URL (e.g. `["AAPL:NASDAQ"]`)   | Array of Strings | Valid stocks. Non valid IDs will be skipped    | Yes      |                    |
| Extract Stock News                   | `extract_stock_news`                | Whether to extract news related to the stocks or not                            | Boolean          |                                                | No       | `true`             |
| Extract Quarterly Financial          | `extract_quarterly_financial`       | Whether to extract quarterly financial of the stocks or not                     | Boolean          |                                                | No       | `true`             |
| Extract Yearly Financial             | `extract_yearly_financial`          | Whether to extract yearly financial of the stocks or not                        | Boolean          |                                                | No       | `true`             |
| Extract Current Stock Prices         | `extract_stock_prices_in_day`       | Whether to extract stocks prices of the current day (or last market day) or not | Boolean          |                                                | No       | `true`             |
| Extract Stock Prices of Last 30 Days | `extract_stock_prices_last_30_days` | Whether to extract stocks prices of last 30 days or not                         | Boolean          |                                                | No       | `true`             |

#### Market Trends

Get Market Trends from Google Finance.

##### Inputs

| Input Name    | Input Code            | Description                                             | Type             | Constraints                                                                  | Required | Default            |
| ------------- | --------------------- | ------------------------------------------------------- | ---------------- | ---------------------------------------------------------------------------- | -------- | ------------------ |
| Action        | `action`              | Perform extraction of market trends from Google Finance | String           | Pass `"market_trends"` to perform this action                                | Yes      | `"stocks_details"` |
| Country       | `country`             | 2 letters country code (ISO 3166-2)                     | String           | Valid country code                                                           | No       | `"us"`             |
| Language      | `language`            | 2 letters language code (ISO 639-1)                     | String           | Valid language Code                                                          | No       | `"en"`             |
| Market Trends | `market_trends_types` | List of Market Trends                                   | Array of Strings | Valid market trends types: See [**Market Trends List**](#market-trends-list) | Yes      | `["most-active"]`  |

##### Market Trends List

Market Trends and Their Code

> Indexes: `"indexes"`<br>
> Indexes in Americas: `"indexes_americas"`<br>
> Indexes in Europe, Middle East, Africa: `"indexes_europe-middle-east-africa"`<br>
> indexes in Asia Pacific: `"indexes_asia-pacific"`<br>
> Most Active: `"most-active"`<br>
> Gainers: `"gainers"`<br>
> Losers: `"losers"`<br>
> Climate Leaders: `"climate-leaders"`<br>
> Cryptocurrencies: `"cryptocurrencies"`<br>
> Currencies: `"currencies"`<br>

#### Search Stocks

Search Stocks in Google Finance.

##### Inputs

| Input Name    | Input Code      | Description                                  | Type   | Constraints                                   | Required | Default            |
| ------------- | --------------- | -------------------------------------------- | ------ | --------------------------------------------- | -------- | ------------------ |
| Action        | `action`        | Perform search of stocks from Google Finance | String | Pass `"search_stocks"` to perform this action | Yes      | `"stocks_details"` |
| Country       | `country`       | 2 letters country code (ISO 3166-2)          | String | Valid country code                            | No       | `"us"`             |
| Language      | `language`      | 2 letters language code (ISO 639-1)          | String | Valid language Code                           | No       | `"en"`             |
| Search Stocks | `search_stocks` | Search text (e.g. `"apple"`)                 | String |                                               | Yes      |                    |

### Proxy

`proxy` object should be defined by the required proxy technique.<br>
The following section will help to define the `proxy` object.

#### Data Center Proxies

| Field               | Description                                                                                                                                | Type    | Default |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ------- | ------- |
| `useApifyProxy`     | Whether to use Apify Proxies.                                                                                                              | Boolean | `true`  |
| `apifyProxyCountry` | Taking Data Center proxies of specific country.<br>2 letters country code (ISO 3166-2)<br>If blank the proxies can be taken from anywhere. | String  |         |

#### Residential Proxies

| Field               | Description                                                                                                                                | Type            | Default |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | --------------- | ------- |
| `useApifyProxy`     | Whether to use Apify Proxies.                                                                                                              | Boolean         | `true`  |
| `apifyProxyGroups`  | Specify `["RESIDENTIAL"]` to use residential proxy.                                                                                        | Array of String |         |
| `apifyProxyCountry` | Taking residential proxies of specific country.<br>2 letters country code (ISO 3166-2)<br>If blank the proxies can be taken from anywhere. | String          |         |

#### Special Proxies

| Field               | Description                                                                                                                                | Type            | Default |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | --------------- | ------- |
| `useApifyProxy`     | Whether to use Apify Proxies                                                                                                               | Boolean         | `true`  |
| `apifyProxyGroups`  | Specify `["GOOGLE_SERP"]` to use special proxy.<br>Other groups can be specified here - Search that in Apify for more information.         | Array of String |         |
| `apifyProxyCountry` | Taking residential proxies of specific country.<br>2 letters country code (ISO 3166-2)<br>If blank the proxies can be taken from anywhere. | String          |         |

#### Own Proxies

| Field           | Description                                                                                                              | Type            | Default |
| --------------- | ------------------------------------------------------------------------------------------------------------------------ | --------------- | ------- |
| `useApifyProxy` | Whether to use Apify Proxies. Pass `false` to use your own proxies.                                                      | Boolean         | `true`  |
| `proxyUrls`     | Specify your own proxies in an array of string with this format:<br>`http://username:password@my-proxy.example.com:port` | Array of String | `[]`    |

#### No Proxies

| Field           | Description                                                        | Type    | Default |
| --------------- | ------------------------------------------------------------------ | ------- | ------- |
| `useApifyProxy` | Whether to use Apify Proxies. Pass `false` to run without proxies. | Boolean | `true`  |

# Actor input Schema

## `action` (type: `string`):

Select an action to perform

## `country` (type: `string`):

2 letters country code (ISO 3166-2)

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

2 letters language code (ISO 639-1)

## `stocks` (type: `array`):

List of stocks. Fill stocks as in Google Finance URL

## `extract_stock_news` (type: `boolean`):

Whether to extract news related to the stocks or not

## `extract_quarterly_financial` (type: `boolean`):

Whether to extract quarterly financial of the stocks or not

## `extract_yearly_financial` (type: `boolean`):

Whether to extract yearly financial of the stocks or not

## `extract_stock_prices_in_day` (type: `boolean`):

Whether to extract stocks prices of the current day (or last market day) or not

## `extract_stock_prices_last_30_days` (type: `boolean`):

Whether to extract stocks prices of last 30 days or not

## `market_trends_types` (type: `array`):

Market Trends Types

## `search_stocks` (type: `string`):

Search Stocks

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

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "action": "stocks_details",
  "country": "us",
  "language": "en",
  "stocks": [
    "AAPL:NASDAQ"
  ],
  "extract_stock_news": true,
  "extract_quarterly_financial": true,
  "extract_yearly_financial": true,
  "extract_stock_prices_in_day": true,
  "extract_stock_prices_last_30_days": true,
  "market_trends_types": [
    "most-active"
  ],
  "proxy": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraped_org/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 = { "proxy": { "useApifyProxy": True } }

# Run the Actor and wait for it to finish
run = client.actor("scraped_org/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 '{
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call scraped_org/google-finance-scraper --silent --output-dataset

```

## MCP server setup

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