Hi I have a public google spreadsheet at Google Docs. However when i request the JSON with:
$.getJSON( "https://spreadsheets.google.com/feeds/list/0Ak0qDiMLT3XddHlNempadUs1djdkQ0tFLWF6ci1rUUE/od6/public/values?alt=json-in-script&callback=?&gid=0",
function (data) { console.log(data) })
I get a HTTP 400 request error. Strangely the same exact code works for this spreadsheet.
What’s going on here? Thanks a lot.
I was looking for a solution to the same problem. It led me to this.
Just want to share the fix:
“Warning: API requests using the public visiblity for feeds on spreadsheets that are not “Published to the Web” yield an HTTP 400 Bad Request response with the message The spreadsheet at this URL could not be found. Make sure that you have the right URL and that the owner of the spreadsheet hasn’t deleted it.”