https://github.com/mazipan/gsheet-rest-api
📑 Deployable Google Sheet Rest API
https://github.com/mazipan/gsheet-rest-api
sheets-api spreadsheet
Last synced: 9 months ago
JSON representation
📑 Deployable Google Sheet Rest API
- Host: GitHub
- URL: https://github.com/mazipan/gsheet-rest-api
- Owner: mazipan
- License: mit
- Created: 2025-02-03T08:00:31.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-07T07:35:19.000Z (about 1 year ago)
- Last Synced: 2025-04-13T09:04:29.429Z (12 months ago)
- Topics: sheets-api, spreadsheet
- Language: TypeScript
- Homepage: https://gsheet-rest-api.vercel.app
- Size: 690 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 📑 GSheet Rest API
Effortless REST API for your Google Sheet. Instantly turn your Google Sheet into a powerful API.
- Home: [gsheet-rest-api.vercel.app](https://gsheet-rest-api.vercel.app/)
- API Doc: [gsheet-rest-api.vercel.app/docs](https://gsheet-rest-api.vercel.app/docs)
- Example App: [gsheet-rest-api.vercel.app/example](https://gsheet-rest-api.vercel.app/example)
## Setup access
+ Enable [Google Sheets API](https://console.developers.google.com/apis/api/sheets.googleapis.com/overview) + [Google Drive API](https://console.developers.google.com/apis/api/drive.googleapis.com/overview) in your Cloud Console
+ Create new [service account](https://console.cloud.google.com/iam-admin/serviceaccounts)
+ Add new keys in your service account
- Download the JSON file, and put it in the `.env.local`. [Read this article](https://dev.to/vvo/how-to-add-firebase-service-account-json-files-to-vercel-ph5)
+ Grant your service account access to the speadsheet
- Share the spreadsheet
- Add people with email from your service account
- Click "Copy link" button to get the `spreadsheetid` (e.g: If the link is `https://docs.google.com/spreadsheets/d/1-Qi5_aizQiNTMRBuqboory9Ba7lyonxCjDCogASdVdg/edit?usp=sharing` then the ID is `1-Qi5_aizQiNTMRBuqboory9Ba7lyonxCjDCogASdVdg`)
## Development
- Install dependencies
```bash
bun install
```
- Run project
```bash
bun run dev
```
## Deploy on Vercel
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fmazipan%2Fgsheet-rest-api)
Add environment variable `GOOGLE_CREDENTIALS` with your JSON from service account key.
## Limitations and Quota
[Following Google Sheets API documentation](https://developers.google.com/sheets/api/limits). This version of the Google Sheets API has a limit of 500 requests per 100 seconds per project, and 100 requests per 100 seconds per user. Limits for reads and writes are tracked separately. There is no daily usage limit.
Be mindful about this limitation, if you want to use this api as a backend for your frontend!
## Credits
- [melalj/gsheet-api](https://github.com/melalj/gsheet-api)
- [openais-io/sheepdb](https://github.com/openais-io/sheepdb)
---
â“’ since 2025, By Irfan Maulana