He estado teniendo problemas con Highcharts al solicitar desde una hoja de Google, hace unos días todo estaba bien, pero de repente me arrojaba un error 404 y no sabía qué hacer. Higcharts solo te pide que pongas la clave de la hoja de calculo de google, y el numero de la ficha, y nada mas. Quiero cambiar la URL que Higcharts hace la solicitud pero no sé cómo. Error:
data.src.js:124 GET https://spreadsheets.google.com/feeds/cells/1YtSfF3-9kzx1G6zwllLX9GhkVgufSUjQyKVI3Ken-AA/2/public/values?alt=json 404Parece un problema de Google: https://support.google.com/docs/thread/121088347/retrieving-data-from-sheets-results-in-404-error-50-of-the-time
feeds es la versión anterior de Sheets API y está cerrada. Vea el anuncio de Google aquí https://cloud.google.com/blog/products/g-suite/migrate-your-apps-use-latest-sheets-api
Intenta usar esta función para obtener valores como json
function getJson(id,gid){ var txt = UrlFetchApp.fetch(`https://docs.google.com/spreadsheets/d/${id}/gviz/tq?tqx=out:json&tq&gid=${gid}`).getContentText(); var jsonString = txt.match(/(?<="table":).*(?=}\);)/g)[0] var json = JSON.parse(jsonString) return(json) }json.cols[1].labeljson.rows[0].c[1].v