# Google Finance Indices Scraper (`thescrappa/google-finance-indices-scraper`) Actor

Get live Google Finance quotes for stock market indices like the S\&P 500, Dow Jones and Nasdaq Composite with index level, point change, percent change, previous close and direction. Check up to 3 index codes per run in a few seconds, no Google login needed.

- **URL**: https://apify.com/thescrappa/google-finance-indices-scraper.md
- **Developed by:** [Scrappa](https://apify.com/thescrappa) (community)
- **Categories:** Business, 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.25 / 1,000 index 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

## Google Finance Indices Scraper

Get live quotes for stock market indices from Google Finance, such as the S\&P 500, Dow Jones Industrial Average and Nasdaq Composite. Each row gives the index level, point change, percent change, previous close and the up or down direction Google Finance shows. Use it to log index levels for reports, dashboards or market notes without opening Google Finance by hand.

### What data can you extract?

Index levels and changes are in index points, as Google Finance displays them.

| Field | Type | Description |
| --- | --- | --- |
| `id` | text | Stable row ID in the format `EXCHANGE:SYMBOL`, for example `INDEXSP:.INX`. |
| `requested_symbol` | text | Index code from your input that produced this row, for example `.INX`. |
| `symbol` | text | Index symbol returned by Google Finance, in upper case; rows without a symbol are not saved. |
| `name` | text | Index name shown by Google Finance, for example `S&P 500`; null when no name is published. |
| `exchange` | text | Google Finance index exchange code, for example `INDEXSP`, `INDEXDJX` or `INDEXNASDAQ`; null when not provided. |
| `current_price` | number | Current index level in points; null when Google Finance provides no level. |
| `price_change` | number | Change against the previous close in index points, negative when the index is down; null when not provided. |
| `percent_change` | number | Change against the previous close in percent, for example `-1.11` for a 1.11% fall; null when not provided. |
| `previous_close` | number | Index level at the previous close in points; null when not provided. |
| `movement_direction` | text | Direction Google Finance shows for the daily move, `Up` or `Down`; null when not provided. |
| `request_hl` | text | Interface language used for the Google Finance request and copied to the row; defaults to `en`. |
| `request_gl` | text | Country or region used for the Google Finance request and copied to the row; defaults to `us`. |
| `retrieved_at` | date | UTC timestamp generated by the Actor when it creates the row, in ISO 8601 format with milliseconds. |

### Use cases

- Analysts can log daily closing levels of the S\&P 500, Dow Jones and Nasdaq for market reports.
- Newsletter and content teams can add current index moves to morning or evening market notes.
- Finance teams can refresh index levels in spreadsheets and dashboards on a schedule.
- Developers can feed index levels and daily changes into alerts, bots or internal tools.

### How to use

1. Open the Actor’s **Input** tab and start with the JSON below.
2. Enter up to 3 Google Finance index codes in `indices`; set the language and country for the quote page if needed.
3. Start the run and open its default dataset to inspect or download the rows.

```json
{
  "indices": [".INX", ".DJI", ".IXIC"]
}
```

The run dataset can be downloaded as JSON, CSV, Excel or another format offered by Apify.

### Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `indices` | string/array | No | A comma-separated list or JSON array of up to 3 symbols, for example .INX, .DJI, .IXIC. |
| `hl` | string | No | Google Finance language code, such as en or de. |
| `gl` | string | No | Two-letter Google Finance country code, such as us or de. |

### Output example

The record below is synthetic. Values are examples and change with the market.

```json
{
  "id": "INDEXSP:.INX",
  "requested_symbol": ".INX",
  "symbol": ".INX",
  "name": "S&P 500",
  "exchange": "INDEXSP",
  "current_price": 7718.94,
  "price_change": -86.51,
  "percent_change": -1.11,
  "previous_close": 7805.45,
  "movement_direction": "Down",
  "request_hl": "en",
  "request_gl": "us",
  "retrieved_at": "2026-10-15T07:37:55.135Z"
}
```

### Pricing

**Current live price:** $0.375 per 1,000 results on the Apify Free plan, $0.34 on Bronze, $0.31 on Silver and $0.30 on Gold and higher plans.

Each saved index row counts as one result. From October 24, 2026, Apify also charges a one-time Actor start fee of $0.00005 per run.

### FAQ

#### Is it legal to collect public information?

This Actor is for information visible on the public source pages it reads. You are responsible for checking the source terms, privacy and copyright rules, and the laws that apply to your use.

#### How many records will a run return?

The result count depends on the input limits, pagination settings and what the source makes available. A small query or unavailable page can return fewer records, including none.

#### Can I call it through the API or connect it to other tools?

Yes. Send the same JSON input to `POST https://api.apify.com/v2/acts/thescrappa~google-finance-indices-scraper/runs`, then read the run’s default dataset. Make, Zapier and n8n can start runs and pass dataset rows to the next step; Google Sheets can receive rows through those workflows or a dataset export.

#### What happens when a request fails?

Check the run log for the source or input error, correct the input and retry after a temporary source issue. A run can contain rows saved before a later request failed.

#### Which index codes can I use?

Use the index code Google Finance shows on the index page, for example `.INX` for the S\&P 500, `.DJI` for the Dow Jones Industrial Average and `.IXIC` for the Nasdaq Composite. Google Finance may not resolve every regional code; an unknown code returns no row.

#### How many indices can I check in one run?

Up to 3 index codes per run. Start more runs, or schedule them, to cover a longer list.

### Related Scrappa Actors

- [Google Finance Historical Prices Scraper](https://apify.com/thescrappa/google-finance-historical-prices-scraper)
- [Google Finance Intraday Scraper](https://apify.com/thescrappa/google-finance-intraday-scraper)
- [Google Finance Markets Scraper](https://apify.com/thescrappa/google-finance-markets-scraper)
- [Google Finance Quote Scraper](https://apify.com/thescrappa/google-finance-quote-scraper)
- [Google Finance Search Scraper](https://apify.com/thescrappa/google-finance-search-scraper)

# Actor input Schema

## `indices` (type: `string,array`):

A comma-separated list or JSON array of up to 3 symbols, for example .INX, .DJI, .IXIC.

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

Google Finance language code, such as en or de.

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

Two-letter Google Finance country code, such as us or de.

## Actor input object example

```json
{
  "indices": [
    ".INX"
  ],
  "hl": "en",
  "gl": "us"
}
```

# Actor output Schema

## `results` (type: `string`):

All results from this run in the default dataset.

# 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 = {
    "indices": [
        ".INX"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrappa/google-finance-indices-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 = { "indices": [".INX"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thescrappa/google-finance-indices-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/iArTP4r7dSglECf1f/builds/ROcQxOvMAB6nXfeS8/openapi.json
