Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Google Sheets as JSON data for Web Pages JavaScript Fetch
Rating: 4.7 out of 5(58 ratings)
5,601 students

Google Sheets as JSON data for Web Pages JavaScript Fetch

Create a URL generator Website from scratch HTML CSS and JavaScript make custom queries to return Google Sheets Data
Created byLaurence Svekis
Last updated 11/2024
English

What you'll learn

  • How to setup your Google Sheet to output data as a web endpoint
  • Connect to a Google Sheet from JavaScript frontend code using Fetch
  • Get Sheet data as JSON format it in a useable format for JavaScript
  • Output Sheet data into your webpages

Course content

2 sections11 lectures1h 30m total length
  • Introduction Google Sheets Data as JSON Website Data Query Sheets3:34
  • Using JavaScript Fetch to connect to the sheet Data23:13

    Using JavaScript Fetch to connect to the sheet Data

    Create an index.html page and link to a JavaScript file. Suggested editor is Visual Studio Code and using Live Server to output the page as HTTP page in the Browser

  • Source Code add Sheet data to your website0:36
  • Get Sheet data as JSON with Headings from sheets20:45

    Get Sheet data as JSON with Headings from sheets

    First row of data automatically becomes headings if they contain string values. You can now loop through the first row cols and get the heading values for each one of the rows. Get your Content in CSV format and specify the format using the tax out value. csv or json


  • Source Code JSON Google Sheet Data with Headings Example0:43
  • Using Query Language Select Custom Sheet Data as JSON11:22

    Using Query Language Select Custom Sheet Data as JSON

    With Google Sheets you can make custom query requests to the Spreadsheet to return specific results. MakeSQL like queries to your spreadsheet data. Google Sheets can select the sheet and the response format like JSON or CSV. Perfect to use Google Sheets data directly on your Website.


  • Source Code Sheets Data Custom Queries for Data return to Webpage output0:49
  • Create a Dynamic Web Application to dynamically connect to different sheets18:51
  • Source Code Query to Sheet get JSON1:14

Requirements

  • HTML CSS and JavaScript
  • JSON
  • Programming knowledge

Description

Do you want to connect your Google Sheets data to your website, this course will provide the steps to create the connections. Explore how to setup a connection to your sheet data with JavaScript return your data and use it on your web page and within you web applications

Development of a website that generates links for Google Sheets.

Combination of Google Sheets send your data and using the data from your sheet in real time on your website.

Requests and query the data for results, return it on your website.

Using JavaScript Fetch to connect to the sheet Data

Create an index.html page and link to a JavaScript file. Suggested editor is Visual Studio Code and using Live Server to output the page as HTTP page in the Browser

Get Sheet data as JSON with Headings from sheets

First row of data automatically becomes headings if they contain string values. You can now loop through the first row cols and get the heading values for each one of the rows. Get your Content in CSV format and specify the format using the tax out value. csv or json

Using Query Language Select Custom Sheet Data as JSON

With Google Sheets you can make custom query requests to the Spreadsheet to return specific results. MakeSQL like queries to your spreadsheet data. Google Sheets can select the sheet and the response format like JSON or CSV. Perfect to use Google Sheets data directly on your Website.

Create a Dynamic Web Application to dynamically connect to different sheets

Exercise to make connections to your Google Spreadsheet with Dynamic value from an input field. Set the Spreadsheet ID from the input field, select the sheet you want to return data from and add a query value that gets encoded. Return the results from the interactive web input fields that are specific to that request. Make more request build your endpoint URL.

Source code and resource included



Who this course is for:

  • JavaScript Developers
  • Web developers
  • Anyone who wants JSON data from a spreadsheet
  • Anyone who uses Sheets in Google Workspace