const spreadsheetId = "1Qd78SyUr_0DEc4yVsRcjuQIHgxQ7HNtssXa_t3IQTio"; const range = "Договора"; // Попробуем без диапазона const apiKey = "AIzaSyD7PR11ptQBTkM2vJEuojE12rvifBrjUyE"; fetch(`https://sheets.googleapis.com/v4/spreadsheets/${spreadsheetId}/values/${range}?key=${apiKey}`) .then(response => response.json()) .then(data => console.log(JSON.stringify(data, null, 2))) // Удобный вывод JSON .catch(error => console.error("Ошибка запроса:", error));