Google Data APIs

Simple example of retrieving JSON feeds from Spreadsheets Data API

Introduction

This sample demonstrates displaying a list or cells feed for a particular worksheet in a spreadsheet using the JSON output format provided by the Spreadsheets Data API. This allows you to query a spreadsheet's public list or cell feed and get the resulting entries returned as JSON objects. To use the new JSON feed, create a script element whose src value is

http://spreadsheets.google.com/feeds/feed/key/worksheet/public/basic?alt=json-in-script&callback=myFunc

where feed is the type of feed, key is the key of the spreadsheet you want to retrieve, the worksheet is the positional or unique identifier of the worksheet, and myFunc is the name of your callback function that is passed the JSON object. For more information on JSON output support for Google Data APIs please see our JSON output support documentation.

Note: Retrieving a feed without authentication is only supported for published spreadsheets.

Note: Other feed types and visibility and projection values may be used with JSON output support. For more information on other feed types, and visibility and projection values please see the Spreadsheets Data API documentation.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.