Api for scraping value of stock from Google Finance.
Visit https://stock-scraper.onrender.com/docs for documentation of API
Code to check if you have valid api key
let headersList = {
Accept: "*/*",
"X-RapidAPI-Host": "",
"X-RapidAPI-Key": "/api/", {
method: "GET",
headers: headersList
})
.then(function (response) {
return response.text();
})
.then(function (data) {
console.log(data);
});
Code to fetch the value of Microsoftโs Stock from NASDAQ Exchange with Google Finance
let headersList = {
Accept: "*/*",
"X-RapidAPI-Host": "",
"X-RapidAPI-Key": ""
};
fetch("/api/MSFT/NASDAQ", {
method: "GET",
headers: headersList
})
.then(function (response) {
return response.text();
})
.then(function (data) {
console.log(data);
});