How to import JSON data to a Google Sheet

The Google Sheets integration makes it easy for you to visualize data you have stored in Google Sheets. 

It has quickly become one of Databox's most popular integrations. One of the reasons for this is that Google makes it relatively easy to sync data from other platform's APIs into a Sheet.

Thanks to generous developers posting code samples online, you only need to make minor edits to this code so it's syncing the appropritate data.

In order to import JSON data to Google Sheets, follow the steps below.

 Create a new Google Sheet
 Select  Extensions Apps Script
 Delete the placeholder content
  Copy and paste the code from this script to the Script Editor

 Select File > Save


 Name your code "ImportJSON"

 Close the Script Editor and navigate back to your Google Sheet
 In cell A1, type ImportJSON("xxx"). Replace xxx with your API endpoint (be sure to keep the quotes and parenthesis) 
 Press enter. Your Google Sheet should now populate with your JSON data
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.