Finance Train LogoFinance Train
Learning LibraryTemplatesBlog
Data Science Bundle
Finance TrainFinance Train
Learning LibraryTemplatesBlog
Data Science Bundle
📑Excel & Spreadsheets

Getting Stock Quotes Using Yahoo Query Language (YQL)

October 22, 2011
1 min read

In a previous post, we learned about how to get Yahoo Stock Quotes in Excel.

This is quite useful, but what if you have your own platform or a webpage, within which you automatically want to get the desired stock data, which keeps updating automatically.

The guys at yahoo have created this wonderful Yahoo Query Language (YQL). YQL treats individual web services as though they were data tables, allowing developers to formulate SQL-like queries to extract information from them. The YQL service takes care of parsing the query string, executing it on the remote service, and returning the results in standard XML or JSON format. The results in the XML or the JSON format can then be easily utilized in any application.

As you can notice, this query utilizes the yahoo.finance.quotes open data table, to make it work.

Since the results are in XML and JSON format, you can make use of this data in practically any application, and even build new applications.

Learning Library

Practical resources on data science, machine learning, and AI for finance professionals.

Browse Library
Mini Roadmap - Data Science for Finance
Free Download

Mini Roadmap: Data Science for Finance

A step-by-step guide covering Python, SQL, analytics, and finance applications.

Finance Train

Learn data science and AI skills for finance through practical courses and tutorials.

Learn

  • Learning Library
  • Course Directory
  • Blog

Resources

  • Templates & Downloads
  • Tools
  • Tables
  • Calculators

Company

  • About
  • Contact
  • Privacy
  • Terms

© 2026 Finance Train. All rights reserved.