visit
In my last article, I showed you 3 ways to import external data into Google Sheets.
In this article, we'll take a look at how to use a JSON API in Google Sheets and how to convert JSON data to Google Sheets.JSON is one of the and there's an abundance of resources available to help you pull into . This article serves as a summary of the available resources and a good jumping off point.I've divided this guide into three sections://api.chucknorris.io/jokes/random
//pokeapi.co/api/v2/pokemon/1
Okay, let's dive in...
1a.) Use Google Apps Script
The most popular method to import JSON data into Google Sheets is by using the editor and copying and pasting a publicly available Import JSON script from Github, or writing your own code. Most of the top results on Google Search for are a variation of these steps:
ImportJSON
"=IMPORTJSON
and you'll see the function you created pop-up as an option. Click it.=IMPORTJSON("//cat-fact.herokuapp.com/facts")
1b.) Use Python
is one of the world’s fastest and most popular programming languages used by a diverse range of professionals like data analysts, software engineers, and even accountants.The difference between Python and Google Apps Script is that Google Apps Script is Google's own native programming language. Some people even supplement Google Apps Script with Python. There are several reasons you might choose to use Python:
requests.get
”. The API URL usually consists of the domain’s API URL, you API token, and parameters that you want to pull (ex. First_Name, Last_Name, Email, etc.).2a.) Zapier
might be the most popular tool for connecting JSON data sources between different platforms. Zapier's an automation tool for connecting different apps together.Zapier has . Check that page to see if they have an integration available for your specific data source(s).Cost: as long as you only need to do 100 "tasks" per month or less. Any more tasks than 100/month and you'll need to move to a paid plan, which start at $19.99 usd/month.
For example, if you’re an e-commerce store that has more than 100 orders a month, and you want to connect your Shopify orders to Google Sheets, you will need to move to a paid plan.Here's an example video someone made showing you how to connect a data source to Google Sheets using Zapier:2b.) Apipheny
Apipheny.io is an API connector for Google Sheets. Apipheny is popular with data analysts and with people who have experience working with APIs.With Apipheny, you can import JSON into Google Sheets in just a few clicks. All you have to do is open the add-on, then enter your API URL and headers/key into the add-on and then click "Run". Your JSON API data will automatically pull in your Google Sheet.You can also save and schedule your API requests so the data refreshes on a recurring basis. There's a custom
=APIPHENY()
function and the ability to reference the value of a cell in your API URL, headers, or POST body. All without leaving your Google Sheet.Apipheny could be right for you if you want the ability to query any endpoint of an API instead of having to rely on pre-built integrations, and the ability to connect to almost any JSON or CSV data source, making it possible to connect to an unlimited number of data sources and make custom blends of data.
Cost: Apipheny is free to use with affordable paid plans.
2c.) Supermetrics
is a popular marketing reporting and automation tool for PPC, SEO, social and web analytics. Supermetrics has integrations with more than 70 different platforms. It's one of the go-to choices for agencies.Supermetrics has a few different tools, and one of them is a Google Sheets specific add-on that you can install in the G Suite Marketplace.Using Supermetrics, you can segment different marketing channels in multiple ways in Google Sheets then use your sheets skills to make reports that really stand out. They also have a Google Data Studio connector that allows you to connect major marketing platforms directly for reporting.Cost: has a free 14-day trial and then goes to a paid plan which starts at $69 usd/month. There is a free plan but it only includes a Google Analytics integration.
..2d.) Funnel
is an enterprise software that allows for automated data collection and marketing reports. Funnel has many integrations available - they have integrations with over 500 data sources.Funnel has a lot of different features, and one of those features is the ability to . So what you would do is connect your data source to the Funnel software, and then export the data to Google Sheets.With the Funnel software, you would be working outside of Google Sheets, like Zapier, instead of directly in Google Sheets as with Supermetrics or Apipheny., the Funnel team shows you step-by-step how to connect your Funnel data to your Google Sheet and then schedule it as a task to refresh daily.Cost: and their pricing is based on your ad spend.
If you only need a JSON connector, and want to keep costs down, then Funnel and Supermetrics may not be the right choice unless you have a need for more of their features.
3a.) Hire a data analyst
A data analyst will either use a no-code tool such as the ones I covered in section 2 above, or they'll create a custom solution.You can hire a freelance data analyst on a website such as Upwork or Toptal.Upwork
On , you can post a job for free and start getting applicants almost immediately. It's free to post a job on Upwork but making it a featured job for $29.99 helps get more applicants.I've been using Upwork for years now for a wide variety of projects and have been satisfied with the results. You have to interview and hire a freelancer yourself. It's a good option for small business owners. and then just create an account and start a job post. Choose data analyst as the category.Toptal
is another freelancer website but it's more exclusive. Toptal puts its applicants through a difficult hiring process and they claim to only hire the top 3% of freelance talent.So if you want a true expert to help you out, Toptal might be the place to get it, but with that expertise comes a bigger price tag. (if the popup shows, you can click the "No Thanks" button at the bottom).Other
At Apipheny we have Google Sheets experts and developers for hire. .My friend and colleague, Nate Page, is a freelance data analyst who has experience working with JSON:3b.) Hire a developer
If you think the scope of your project calls for a custom solution with features that other software doesn't provide, or you just want to be in control of the product, you could always hire a developer to help you out.You'll have the best luck if you specifically look for a Google Apps Script developer on a freelance site like Upwork or Fiverr.The right developer for you will depend on the scope of your project. You'll have to send your project brief/details to freelancers and interview them to see who's the best fit..