Need help with googlefinance?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

554 Stars 160 Forks MIT License 23 Commits 31 Opened issues


Python module to get real-time stock data from Google Finance API

Services available


Need anything else?

Contributors list

# 184,612
13 commits
# 405,386
1 commit
# 11,506
The Jul...
1 commit


Python module to get stock data from Google Finance API

This module provides no delay, real time stock data in NYSE & NASDAQ.

Another awesome module, yahoo-finance's data is delayed by 15 min, but it provides convenient apis to fetch historical day-by-day stock data.

Please note that Google has closed this endpoint -- so the module may not work properly


From PyPI with pip:

$pip install googlefinance

From development repo (requires git)

$git clone
$cd googlefinance
$python install

Usage example

>>> from googlefinance import getQuotes
>>> import json
>>> print json.dumps(getQuotes('AAPL'), indent=2)
    "Index": "NASDAQ", 
    "LastTradeWithCurrency": "129.09", 
    "LastTradeDateTime": "2015-03-02T16:04:29Z", 
    "LastTradePrice": "129.09", 
    "Yield": "1.46", 
    "LastTradeTime": "4:04PM EST", 
    "LastTradeDateTimeLong": "Mar 2, 4:04PM EST", 
    "Dividend": "0.47", 
    "StockSymbol": "AAPL", 
    "ID": "22144"
>>> print json.dumps(getQuotes(['AAPL', 'VIE:BKS']), indent=2)
    "Index": "NASDAQ", 
    "LastTradeWithCurrency": "129.36", 
    "LastTradeDateTime": "2015-03-03T16:02:36Z", 
    "LastTradePrice": "129.36", 
    "LastTradeTime": "4:02PM EST", 
    "LastTradeDateTimeLong": "Mar 3, 4:02PM EST", 
    "StockSymbol": "AAPL", 
    "ID": "22144"
    "Index": "VIE", 
    "LastTradeWithCurrency": "17.10", 
    "LastTradeDateTime": "2015-03-03T13:30:30Z", 
    "LastTradePrice": "17.10", 
    "LastTradeTime": "1:30PM GMT+1", 
    "LastTradeDateTimeLong": "Mar 3, 1:30PM GMT+1", 
    "StockSymbol": "BKS", 
    "ID": "978541942832888"

>>> from googlefinance import getNews >>> import json >>> print json.dumps(getNews("GOOG"), indent=2) [ { "usg": "AFQjCNEndnF6ktTO4yZ7DO6VWNNKuNLRqA", "d": "Feb 26, 2016", "tt": "1456499673", "sp": "Alphabet logo Alphabet Inc (NASDAQ:GOOG) CEO Lawrence Page sold 33,332 shares of the firm's stock in a transaction dated Tuesday, March 22nd.", "s": "Financial Market News", "u": "", "t": "Alphabet Inc (GOOG) CEO Lawrence Page Sells 33332 Shares", "sru": "" }, { "usg": "AFQjCNHfaafHtJPn5GWu-6RiVG_J_1TYUw", "d": "Mar 26, 2016", "tt": "1458951075", "sp": "You don't get to $300 billion without overcoming your fair share of problems. This truism certainly applies individually to tech titans Alphabet (NASDAQ:GOOG) (NASDAQ:GOOGL) and Apple (NASDAQ:AAPL) at different points in their respective corporate ...", "s": "Motley Fool", "u": "", "t": "Alphabet Inc Eyes a New Road to Mobile Success in the Most Unlikely Places", "sru": "" } ]

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.