https://github.com/jasonappah/google-sheet-to-json
Use a Google Sheet as a read-only backend using Vercel's serverless functions.
https://github.com/jasonappah/google-sheet-to-json
google-sheets json vercel
Last synced: 12 days ago
JSON representation
Use a Google Sheet as a read-only backend using Vercel's serverless functions.
- Host: GitHub
- URL: https://github.com/jasonappah/google-sheet-to-json
- Owner: jasonappah
- License: gpl-3.0
- Created: 2020-08-03T22:01:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-21T07:39:54.000Z (about 2 years ago)
- Last Synced: 2025-04-13T13:16:16.464Z (12 days ago)
- Topics: google-sheets, json, vercel
- Language: JavaScript
- Homepage: https://gs.jasonaa.me
- Size: 550 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# google-sheet-to-json
Get data from a Google Sheet as JSON.
## Usage
Publish the Google Sheet as HTML, and point the app to it by setting the `url` query parameter, like this: `https://gs.jasonaa.me/?url=https://docs.google.com/spreadsheets/d/e/2PACX-1vRrQMuGETRv6JZqmA8fSIYhMrx4D-UvYJeA1Ir4Y3SBd8ebaIInoQ0dvd9Z-wb7z26dkUXie9SH3ZxB/pubhtml`.Then, you should get an array of JSON objects, with the headers of your sheet used as the object keys.
Here's how to publish your Google Sheet.

---
Powered by Vercel.
[](https://vercel.com/new/project?template=https://github.com/jasonappah/google-sheet-to-json)