Reputation: 53
I am trying to get JSON data from publicly shared Google SpreadSheets that are created by from other users.
To call that api I use the following url format: https://spreadsheets.google.com/feeds/list/[sheet_id]/[tab_id]/public/basic?alt=json
But when I set the sheet_id
from the one I get from a shared link I receive 404 response. :-(
By the way, I can get JSON data from same shared link if I make it public on the web.
Like this:
Can I get json data from only another users shared link?
This is my application condition.
Thank you for your patience and please excuse my poor English.
Upvotes: 1
Views: 1471
Reputation: 60133
I'm not sure what API method you're using, but this seems to work fine on the example spreadsheet you gave. (Make sure to include your API key.)
GET https://sheets.googleapis.com/v4/spreadsheets/1TlGL9JASdAidux2xAMKKbWOeMEAJswzRUdp4cWqnDzg/values/texts?key=<REDACTED>
Upvotes: 1