I'm trying to get the number which is basically 116 into a cell on Google sheets with the following code, however I get the missing ; before statement error:

var copper = UrlFetchApp.fetch("https://api.diviscan.io/masternodes");

  var copperObject = JSON.parse(copper);

  var fact3 = copperObject.layers['copper'].getContentText());
  var sheet3 = SpreadsheetApp.getActiveSheet();

Any help would be great!

1 Answer 1


There is an extra closing parens on this line:

var fact3 = copperObject.layers['copper'].getContentText());

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.