We all know that Google Finance discontinued its public API service years ago.
In this article, I want to share a different way to access Google Finance data without scraping the page every few minutes.
The API was never truly removed. Instead, it appears to have been converted into a different, more dynamic form that is harder to use directly. However, if you carefully inspect the network requests and responses, you may find some interesting JSON responses. From there, you can trace them back to several important objects in the HTML, such as:
AF_initDataKeys and AF_dataServiceRequests
You may also notice endpoints such as:
- https://www.google.com/finance/_/GoogleFinanceUi/data/batchexecute
- https://www.google.com/finance/beta/_/FinHubUi/data/batchexecute
I have documented the details on GitHub and built a local MCP service that allows AI agents to query the latest financial information provided by Google Finance. It is more powerful than the Google Sheets finance functions, and the project is fully open source.
Please check it out here:
Before using it further, please read the legal notice:
Have fun running it with Codex, Claude, Grok, Hermes, OpenCode, or your favorite AI agent workflow.

