I'm trying to use the following REST API within one of my sheets, and am struggling to return a specific result from the JSON array (first timer here!!)
Here's what I have so far....
function Bittrex_API() {
// Call the Bittrex API for market rates
var response = UrlFetchApp.fetch(
"https://bittrex.com/api/v1.1/public/getmarketsummaries");
// Parse the JSON reply
var json = response.getContentText();
var data = JSON.parse(json);
Logger.log(data);
}
This returns the full array in the Logs, but how do I get it to pull all information from a specific result in the array?
I can return specific results from the first section, by calling the index position "0" as follows:
function Bittrex_API() {
// Call the Bittrex API for market rates
var response = UrlFetchApp.fetch(
"https://bittrex.com/api/v1.1/public/getmarketsummaries");
// Parse the JSON reply
var json = response.getContentText();
var data = JSON.parse(json);
Logger.log(data["result"][0]);
}
But how do I specify a different section of the array without using the index number??
i.e. I want to return all information relating to MarketName=BTC-RCN.