Google Finance API
Extract real-time stock quotes, price history, market indices, financial statements, and company news from Google Finance. Supports stocks, ETFs, indices, currencies, and crypto - single symbol or batch portfolio runs.
MEDIAN LAGon demand
PARAMETERS5
TOTAL USERS25
MONTHLY ACTIVE8
TOTAL RUNS178
RUNS SUCCEEDED100.0%
RATING5.0 (3)
Input parameters
| PARAMETER | TYPE | REQ | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| queries | string[] | no | — | List of symbols in Google Finance format (e.g. ["GOOGL:NASDAQ", "AAPL:NASDAQ", "BTC-USD", "EUR-USD", ".DJI:INDEXDJX"]). |
| q | string | no | — | A single symbol in Google Finance format (e.g. "GOOGL:NASDAQ"). |
| hl | string | no | en | Language code for results (ISO 639-1, e.g. "en", "es", "de", "fr"). |
| window | enum | no | 1D | Time window for the price history graph. 1D = 1 day (intraday), 5D = 5 days, 1M = 1 month, 6M = 6 months, YTD = year to date, 1Y = 1 year, 5Y = 5 years, MAX = maximum available. |
| max_queries | integer | no | 0 | Maximum number of symbols to process in this run. |
Worked examples
{
"queries": [
"GOOGL:NASDAQ",
"AAPL:NASDAQ",
"BTC-USD"
],
"q": "GOOGL:NASDAQ"
}
Coverage
8
price history window — 1D 5D 1M 6M YTD +3
Tasks
Saved runs with the inputs already filled in — each one a standalone page and a working configuration example.
Code
curl
curl -X POST "https://api.apify.com/v2/acts/johnvc~google-finance-api/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"queries": ["GOOGL:NASDAQ", "AAPL:NASDAQ", "BTC-USD"], "q": "GOOGL:NASDAQ"}'
Python
from apify_client import ApifyClient
client = ApifyClient("APIFY_TOKEN")
run = client.actor("johnvc/google-finance-api").call(
run_input={'queries': ['GOOGL:NASDAQ', 'AAPL:NASDAQ', 'BTC-USD'], 'q': 'GOOGL:NASDAQ'}
)
for item in client.dataset(run.default_dataset_id).iterate_items():
print(item)