RapidAPI logo

Yahoo Finance

FREEMIUM
By apidojo
Updated 2 months ago
Finance
9.8/10
Popularity Score
2149ms
Latency
91%
Success Rate

Yahoo Finance API Documentation

Yahoo Finance API helps to query for all information about finance summary, stocks, quotes, movers as on Yahoo Finance official website.

View API Details
market
GETmarket/get-summary
GETmarket/get-movers
GETmarket/get-quotes
GETmarket/get-charts
GETmarket/auto-complete
stock
GETstock/get-detail
GETstock/get-histories
GETstock/get-news
GETstock/v2/get-holders
GETstock/v2/get-financials
GETstock/v2/get-options
GETstock/v2/get-analysis
GETstock/v2/get-historical-data
GETstock/v2/get-statistics
GETstock/v2/get-chart
GETstock/v2/get-newsfeed
GETstock/v2/get-summary
GETstock/v2/get-profile
GETmarket/get-summary

Get live summary information at the request time

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
regionSTRING
REQUIREDThe main region to get summary information from (AU | CA | FR | DE | HK | US | IT | ES | GB | IN)
langSTRING
REQUIREDThe language codes (en | fr | de | it | es | zh)
Code Snippet
unirest.get("https://apidojo-yahoo-finance-v1.p.rapidapi.com/market/get-summary?region=US&lang=en")
.header("X-RapidAPI-Host", "apidojo-yahoo-finance-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://apidojo-yahoo-finance-v1.p.rapidapi.com/market/get-summary
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://apidojo-yahoo-finance-v1.p.rapidapi.com/market/get-summary?region=US&lang=en")
.header("X-RapidAPI-Host", "apidojo-yahoo-finance-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication