I’ve never done it but apparently there is a Google Sheets REST API so its possible https://developers.google.com/sheets/api/guides/concepts