RapidAPI logo

Yahoo Finance

FREE
By enclout
Updated 5 months ago
Finance
2.7/10
Popularity Score
487ms
Latency
100%
Success Rate

Yahoo Finance API Documentation

Give a list of stock symbols, this API returns stock data using Yahoo Finance.

Related APIs:

View API Details
GETyahoo_finance
GETyahoo_finance

Yahoo Finance API

Authorization:

description

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
textSTRING
REQUIREDcomma delimited list of stock symbols
auth_tokenQUERY
REQUIREDThe API Key - Please get it from www.enclout.com
Code Snippet
unirest.get("https://enclout-yahoo-finance.p.rapidapi.com/show.json?text=AAPL%2C+MSFT%2C+GOOG")
.header("X-RapidAPI-Host", "enclout-yahoo-finance.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://enclout-yahoo-finance.p.rapidapi.com/show.json
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://enclout-yahoo-finance.p.rapidapi.com/show.json?text=AAPL%2C+MSFT%2C+GOOG")
.header("X-RapidAPI-Host", "enclout-yahoo-finance.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