{"id":15929838,"url":"https://github.com/saneef/clean-google-sheets-json","last_synced_at":"2026-01-18T16:31:42.064Z","repository":{"id":40713709,"uuid":"279304341","full_name":"saneef/clean-google-sheets-json","owner":"saneef","description":"Generate clean JSON from Google Sheet JSON endpoint","archived":false,"fork":false,"pushed_at":"2022-06-25T14:13:13.000Z","size":54,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T20:24:29.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saneef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-13T13:02:48.000Z","updated_at":"2020-07-13T13:07:25.000Z","dependencies_parsed_at":"2022-07-29T04:38:19.849Z","dependency_job_id":null,"html_url":"https://github.com/saneef/clean-google-sheets-json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saneef%2Fclean-google-sheets-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saneef%2Fclean-google-sheets-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saneef%2Fclean-google-sheets-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saneef%2Fclean-google-sheets-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saneef","download_url":"https://codeload.github.com/saneef/clean-google-sheets-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247014520,"owners_count":20869376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T00:21:26.355Z","updated_at":"2026-01-18T16:31:42.052Z","avatar_url":"https://github.com/saneef.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clean-google-sheets-json\n\n## Usage\n\n1. Prepare your Google Sheet. Clark’s article, [‘How to use Google Sheets as a JSON Endpoint’](https://www.freecodecamp.org/news/cjn-google-sheets-as-json-endpoint/) will guide you on how to get the JSON endpoint.\n2. Check out this project locally, and run `yarn install` or `npm install` inside the directory.\n3. Run `$ ./cli.js \u003cjson-end-point-from-step-1\u003e`, and you should get JSON saved as `output.json` in the same folder.\n\n### ⚠️ Note\n\nCurrently only supports sheets with first rows as headers. Like CSV.\n\n### References\n\n- [Sample Google Sheet](https://docs.google.com/spreadsheets/d/e/2PACX-1vQ9hqMO9iJEgIne_9o-nLTtMR-dG2rWtZiONp2DMo6fhYM0FedwoXE34hbV1R07KfwbXl-WkXbQM9qZ/pubhtml)\n- [Sample Sheet JSON endpoint](https://spreadsheets.google.com/feeds/cells/1v6HjlEZAi5Vhkgrcd96JsN34zOpS_aouienqPAVuZAk/1/public/full?alt=json)\n- Sample output:\n\n```json\n{\n  \"updated\": \"2020-07-13T12:59:10.010Z\",\n  \"title\": \"Sheet1\",\n  \"cols\": 3,\n  \"rows\": 9,\n  \"data\": [\n    {\n      \"Date\": \"01/01/2018\",\n      \"Title\": \"Monday\",\n      \"Numbers\": \"0\"\n    },\n    {\n      \"Date\": \"02/01/2018\",\n      \"Title\": \"Tuesday\",\n      \"Numbers\": \"1\"\n    },\n    {\n      \"Date\": \"03/01/2018\",\n      \"Title\": \"Wednesday\",\n      \"Numbers\": \"2\"\n    },\n    {\n      \"Date\": \"04/01/2018\",\n      \"Title\": \"Thursday\",\n      \"Numbers\": \"3\"\n    },\n    {\n      \"Date\": \"05/01/2018\",\n      \"Title\": \"Friday\",\n      \"Numbers\": \"4\"\n    },\n    {\n      \"Date\": \"06/01/2018\",\n      \"Title\": \"Saturday\",\n      \"Numbers\": \"5\"\n    },\n    {\n      \"Date\": \"07/01/2018\",\n      \"Title\": \"Sunday\",\n      \"Numbers\": \"6\"\n    },\n    {\n      \"Date\": \"08/01/2018\",\n      \"Title\": \"Monday\",\n      \"Numbers\": \"7\"\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaneef%2Fclean-google-sheets-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaneef%2Fclean-google-sheets-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaneef%2Fclean-google-sheets-json/lists"}