How to create JSON feed from Google Sheets Data
- Create a Google Sheet
- Under File Menu Select ‘Publish to the web”
- Select under Link Sheet and as Web Page – Click Publish
- Check the URL provided to ensure page is visible on the web
- Copy Sheet ID
- Place the id in the JSON URL ‘https://spreadsheets.google.com/feeds/list/’+id+’/1/public/values?alt=json’;
- const id = ‘1H2xq8J5uZKDABgu1JlvV-nVWKqZoV8_UpB_D_snOrLo’;
- const url = ‘https://spreadsheets.google.com/feeds/list/’+id+’/1/public/values?alt=json’;
7. Open URL into a browser to ensure you can see data as JSON
8. Using fetch connect to the web URL with Sheet data.
Technical Lead ? IT at Old Mutual Insure
2 年const url = ‘https://spreadsheets.google.com/feeds/list/’+id+’/1/public/values?alt=json’; this is not working
Tax Lawyer
4 年Thank you for
Linkedin Top Voice | Author | Artificial Intelligence and Machine Learning
4 年Good one. I was not aware of this
I like helping people where I can. I am considered a good listener, an idea man, and an excellent advisor. I am a survivor of AML, and always willing to listen, encourage, and offer help to those battling cancer.
4 年Thanks for the easy documentation. As an old tech writer, you did a good job.
TIME 2B GREAT 4 Kids-Teens-College| International Author-Keynote Speaker-Workshops-Youth Ministry-Initiatives| WHO'S WHO in USA| TOP 50 MOST IMPACTFUL| 250 RISING STAR INFLUENCERS| TOP 100 THOUGHT LEADERS|??Mama Liz???
4 年Thank you for sharing, Laurence Svekis