Google Apps Script can publish spreadsheet data as a lightweight web endpoint. A doGet function reads rows, maps headers to values, and returns a JSON text response.

Plan the response first

Use stable field names, omit private columns, handle an empty sheet, and return a predictable structure. Treat the published URL as public unless access is explicitly restricted.