If you have a lot of interesting data in your JSON format. Maybe in Airtable, or Webflow, or an API that you want to bring to Google Sheets. You can use NoCodeAPI to do just that. Crazy Awesome !! π
Video Tutorial
If you love video tutorial then we also have video tutorial for you.
Step 1 : Fetch JSON from a fake API
β For this tutorial we are going to fetch our fake JSON data from JSON placeholder API
β As you scroll down, fake JSON placeholder offers different options to fetch this data. We are going to use /todos to fetch 200 todos in JSON and create 200 rows in our google sheet.
β Test if the endpoint is working by pasting this URL in your browser > https://jsonplaceholder.typicode.com/todos
. It should give you JSON data inside the browser (like below β I am using JSON formatter chrome extension to beautify JSON).
Step 2 : Connect Google Sheet with NoCodeAPI
β Sign In to NoCodeAPI dashboard by clicking here.
β Go to Marketplace and Activate
google sheet API
β Click on Make Google Sheet
API
β A sidebar appears. In the side bar, βChooseβ your Google Account through which you are managing your Google Sheets.
β Allow
nocodeapi to manage your Google Sheets data
β You will be redirected to NoCodeAPI dashboard.
β Give your API a name and paste your Sheet ID in the Sheet ID input field.
β You can find you Google Sheet ID in your URL. It is located between /d
and /edit
text, like below.
β Click Create
button and it will generate your NoCodeAPI endpoint.
β Using this endpoint we are going to import our JSON data to the Google Sheet.
Step 3 : Import your JSON data to Google Sheets
β Click on 3 dots button to find Import Data
button in drop down. Click on it to start importing your JSON data to your Google Sheet.
β An overlay opens where we are going to convert our JSON data to Google Sheet.
β Paste your data in the GET
input β https://jsonplaceholder.typicode.com/todos
β Click on Fetch Data
button.
β Add Id
, title
, completed
to our selective table headings.
β Click on Next Step
button
β The drop down Input Table Name & push data
header opens on itself.
β Change the name of heading from completed
to status
like below.
β Select your Sheet API, you created in Step 2.
β Select the empty sheet Sheet2
that gives you a success message.
β Click Push Data
to send your JSON data to Google Sheet.
β Next to Push data you should find your status bar turning green.
This is it
We have successfully converted our JSON data to Google Sheet. You can fetch your required JSON data to Google Sheet in a similar fashion.
I hope you liked this article. Help us write better by giving your feedback on our twitter channel at @nocodeapi. Thank you for reading. Happy Coding !! βοΈ
Top comments (0)