Access Live JSON Services in Google Sheets

Ready to get started?

Learn more or sign up for a free trial:

CData Connect



Use CData Connect Cloud to create a virtual MySQL Database for JSON services and gain access to live JSON services from your Google Sheets.

Google Sheets is a free, web-based spreadsheet program. When paired with CData Connect Cloud, you can instantly access JSON services from within Google Sheets for data analysis, collaborations, calculations, and more. This article shows how to connect to JSON in your Connect Cloud instance and access live JSON services in Google Sheets.

CData Connect Cloud provides a pure cloud-to-cloud interface for JSON, allowing you to easily access live JSON services in Google Sheets. Simply use the partner Connect Cloud Connector to generate a query (or write your own). Using optimized data processing out of the box, CData Connect Cloud pushes all supported query operations (filters, JOINs, etc) directly to JSON, leveraging server-side processing to quickly return JSON services.

This setup requires a CData Connect Cloud instance and the CData Connect Cloud Connector for Google Sheets. To get started, get a free trial of Connect Cloud and download the free Connect Cloud Google Sheets Connector.


Create a Virtual MySQL Database for JSON Services

CData Connect Cloud uses a straightforward, point-and-click interface to connect to data sources and generate APIs.

  1. Log into Connect Cloud and click Databases.
  2. Select "JSON" from Available Data Sources.
  3. Enter the necessary authentication properties to connect to JSON.

    See the Getting Started chapter in the data provider documentation to authenticate to your data source: The data provider models JSON APIs as bidirectional database tables and JSON files as read-only views (local files, files stored on popular cloud services, and FTP servers). The major authentication schemes are supported, including HTTP Basic, Digest, NTLM, OAuth, and FTP. See the Getting Started chapter in the data provider documentation for authentication guides.

    After setting the URI and providing any authentication values, set DataModel to more closely match the data representation to the structure of your data.

    The DataModel property is the controlling property over how your data is represented into tables and toggles the following basic configurations.

    • Document (default): Model a top-level, document view of your JSON data. The data provider returns nested elements as aggregates of data.
    • FlattenedDocuments: Implicitly join nested documents and their parents into a single table.
    • Relational: Return individual, related tables from hierarchical data. The tables contain a primary key and a foreign key that links to the parent document.

    See the Modeling JSON Data chapter for more information on configuring the relational representation. You will also find the sample data used in the following examples. The data includes entries for people, the cars they own, and various maintenance services performed on those cars.

  4. Click Test Database.
  5. Click Privileges -> Add and add the new user (or an existing user) with the appropriate permissions.

With the virtual database created, you are ready to connect to JSON services from Google Sheets.

Access Live JSON Services in Google Sheets

The steps below outline connecting to CData Connect Cloud from Google Sheets to access live JSON services.

  1. Log into Google Sheets, create a new sheet (or open an existing one).
  2. Click Add-ons and click Get Add-ons (if you have already installed the Add-on, jump to step 5).
  3. Search for CData Connect Cloud Connector and select the Add-on.
  4. Authorize the Connector.
  5. Back in Google Sheets, click Add-ons and open the CData Connect Cloud Connector.
  6. Use your instance name (myinstance in myinstance.cdatacloud.net), username, and password to connect to your Connect Cloud instance.
  7. Click CREATE to access JSON services through your Connect Cloud instance.
  8. Select a Database (e.g. JSON1) and click Next.
  9. Select a Table (e.g. people) and Fields (columns), add any sorting, filtering, and limits and click Execute.

SQL Access to JSON Services from Cloud Applications

Now, you have a direct, cloud-to-cloud connection to live JSON services from your Google Sheets workbook. You can add more data to your workbook for calculations, aggregations, collaboration, and more.

Try CData Connect Cloud and get SQL data access to 200+ SaaS, Big Data, and NoSQL sources directly from your cloud applications.