Home > Backend Development > PHP Tutorial > ## Is Google Finance\'s Deprecated Gadget API Still a Viable Option for Real-Time Stock Quotes?

## Is Google Finance\'s Deprecated Gadget API Still a Viable Option for Real-Time Stock Quotes?

Barbara Streisand
Release: 2024-10-25 03:56:29
Original
1027 people have browsed it

## Is Google Finance's Deprecated Gadget API Still a Viable Option for Real-Time Stock Quotes?

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}
Copy after login

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
Copy after login

Beyond this basic request structure, Google offered a range of parameters to customize the response, including:

  • q: Stock symbol (required)
  • client: Set to "ig" for a consolidated response, including multiple stock symbols in a comma-separated list
  • iq: Set to "composite" to get market summary data

Additionally, developers could obtain stock charts using the following URL:

https://www.google.com/finance/getchart?q={stock_symbol}
Copy after login

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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template