Retrieving Real-Time Stock Quotes with Google's Deprecated Gadget API
For developers seeking financial data from Google services, Google Finance once offered an API to retrieve stock quotes. However, this Google Finance Gadget API has been officially discontinued since October 2012 and is no longer supported. Despite its deprecation, the API remained functional until it was completely terminated in March 2022.
Before its termination, the Gadget API allowed developers to access stock data via HTTP requests using the following URL structure:
http://www.google.com/finance/info?q={stock_symbol}
where {stock_symbol} represents the relevant stock symbol. For example, the following request returns data for Google's NASDAQ-listed stock:
http://www.google.com/finance/info?q=NASDAQ:GOOG
Beyond this basic request structure, Google offered a range of parameters to customize the response, including:
Additionally, developers could obtain stock charts using the following URL:
https://www.google.com/finance/getchart?q={stock_symbol}
Important Note: Using the Google Finance API for publicly available applications is strictly prohibited by Google's terms of service. Developers should use authorized financial data sources for such applications.
The above is the detailed content of ## Is Google Finance\'s Deprecated Gadget API Still a Viable Option for Real-Time Stock Quotes?. For more information, please follow other related articles on the PHP Chinese website!