Get JSON feed from published Google sheet Get JSON feed from published Google sheet json json

Get JSON feed from published Google sheet


As agershun already pointed out, you need to publish the document. Follow these steps:

1) File menu > Publish to the web...

enter image description here

2) Click the Start Publishing button

enter image description here

3) Load your URL and you'll see it in JSON

Note: Here is my working example, the URL formed exactly like yours, except this one is published: https://spreadsheets.google.com/feeds/list/1qym45VIwM4ruaWDkqndaOBzgOMAhOsjZ7rL76wJrTkY/od6/public/values?alt=json

If after you've done all this and you receive the error Invalid query parameter value for grid_id. then refer to this post for a solution: Retrieve Google Spreadsheet Worksheet JSON


Probably you need to publish the spreadsheet, because when I tried to open the spreadsheet with your key, Google says:

We're sorry. This document is not published.

To fix it choose "File / Publish to the web..." menu of Google Spreadsheets and publish the sheet. Copy the url from the dialog and use it in your code.

See the working snippet below to open similar spreadsheet with Tabletop library.