DEV Community

Vikram Sharma
Vikram Sharma

Posted on

Yahoo Finance API - Can It Still be Used?

Yahoo! closed down Yahoo! Finance API some time back. A finance API does not show up on Yahoo Developer Homepage. It was a great API for developers looking to build an app. It was cheap (free?) and offered a wealth of financial data. But is it still possible to use Yahoo Finance API? API Dojo offers an API called Yahoo Finance. It is probably not an official API. Notice the missing exclamation mark. However, let's take this API for a spin.

Setting up Yahoo Finance API

To get started you’ll need:

  • Javascript editor and npm unirest package that will speed up code writing.
  • Subscribe to the Yahoo Finance API. You can subscribe via Rakuten RapidAPI by clicking here.

The API has the following Endpoints

  • market/get-summary: Get live summary information at the request time
  • market/get-movers: The live day gainers / losers / actives in specific region
  • market/get-quotes: Retrieve the quotes by symbols
  • market/get-charts: Get data to draw charts for a specific symbol and its comparisons
  • market/auto-complete: Get auto complete suggestion for stocks
  • stock/get-detail: Get detail information of each stock
  • stock/get-histories: Get stock histories to draw charts
  • stock/get-news: Get latest news related to a symbol, the result may be empty if there are no news in that region.

Get Market summary

1. Start by clicking on the market/get-summary function on the left menu.
2. The header parameters will be prefilled automatically
3. Enter the region and language code you wish to get summary information from
4. Click on the Test Endpoint button to make a request and see the result
5. Your code is ready to be copied on the right side of the screen

Get Market Quotes:

1. Start by clicking on the market/quotes function on the left menu.
2. The header parameters will be prefilled automatically
3. Enter the region, language, and symbols you wish to get quotes for
4. Click on the Test Endpoint button to make a request and see the result
5. Your code is ready to be copied on the right side of the screen

Get Stock details:

1. Start by clicking on the stock/get-detail function on the left menu.
2. The header parameters will be prefilled automatically
3. Enter the region, language, and symbol you wish to get quotes for
4. Click on the Test Endpoint button to make a request and see the result
5. Your code is ready to be copied on the right side of the screen

That is it. This API is simple to use.

Top comments (0)