Home  >  Article  >  Backend Development  >  ## How Can I Access Stock Quotes and Charts Using the Google Finance API?

## How Can I Access Stock Quotes and Charts Using the Google Finance API?

Barbara Streisand
Barbara StreisandOriginal
2024-10-25 04:42:02927browse

## How Can I Access Stock Quotes and Charts Using the Google Finance API?

Accessing Stock Quotes via Google Finance API

As a developer seeking access to financial data from Google services, you stumbled upon a URL that retrieves stock information for Microsoft. To expand your knowledge and explore the comprehensive parameters available for such HTTP requests, let's delve into the multifaceted offerings of Google Finance.

While the Google Finance Gadget API has been officially deprecated since October 2012, it remained active until April 2014. However, it is important to note that as of March 2022, the API has been completely discontinued.

To illustrate the API's functionality, consider the following examples:

  • http://www.google.com/finance/info?q=NASDAQ:GOOG  
  • http://www.google.com/finance/info?q=CURRENCY:GBPUSD  
  • http://finance.google.com/finance/info?client=ig&q=AAPL,YHOO

    In addition to stock quotes, you can also obtain charts through this API, as exemplified by:

  • https://www.google.com/finance/getchart?q=YELP

It's crucial to note that if your application is intended for public consumption, using the Google Finance API violates Google's terms of service.

For a comprehensive Python implementation, refer to the "google-finance-get-stock-quote-realtime" package.

The above is the detailed content of ## How Can I Access Stock Quotes and Charts Using the Google Finance API?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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