API request to quandl for fetching stock data returning HTML response instead of JSON. Its correctly returning JSON result in postman.
var url ='https://www.quandl.com/api/v3/datasets/BSE/BOM'+532540+'?start_date='+startDate+'&end_date='+endDate+'&collapse=weekly&api_key=myapikey'
console.log(url)
var options =
{
'muteHttpExceptions': true,
"contentType" : "application/json",
};
var response = UrlFetchApp.fetch(url, options);
console.log(response)
did anyone have a workaround?