Transform Your Google Sheets into Powerful APIs Instantly
npm install data.yafb.netThis project allows you to use a Google Spreadsheet as a database and interact with it via a REST API. The API supports operations such as listing, inserting, updating, and deleting records.
Database).id, name, email).
https://script.google.com/macros/s/your-script-id/exec
`
Use this URL to interact with your API.$3
- GET /list → Retrieve all records
- POST /insert → Add a new record
- POST /update → Update an existing record
- POST /delete → Remove a record$3
`bash
curl -X GET "https://script.google.com/macros/s/your-script-id/exec?action=list"
`Now your Google Spreadsheet is a fully functional database API! 🚀
Proxy
This echo server is used to test the proxy server. It is hosted on Google Apps Script.
`
function doGet(request) {
const response = ContentService.createTextOutput(JSON.stringify(request, null, 2));
response.setMimeType(ContentService.MimeType.JSON);
return response
}function doPost(request) {
const response = ContentService.createTextOutput(JSON.stringify(request, null, 2));
response.setMimeType(ContentService.MimeType.JSON);
return response
}
``