{"id":20651891,"url":"https://github.com/jingshing/notion_api_with_app_script","last_synced_at":"2025-06-16T22:33:17.899Z","repository":{"id":204615179,"uuid":"712262786","full_name":"JingShing/Notion_api_with_app_script","owner":"JingShing","description":"A simple note for using notion api with app script.","archived":false,"fork":false,"pushed_at":"2023-10-31T12:04:42.000Z","size":15,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T14:11:06.971Z","etag":null,"topics":["app-script","app-scripts","appscript","appscripts","javascript","notion","notion-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JingShing.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-31T05:51:02.000Z","updated_at":"2024-12-19T21:43:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"79f973b7-00d5-49dd-b6cb-998d7c3fe04a","html_url":"https://github.com/JingShing/Notion_api_with_app_script","commit_stats":null,"previous_names":["jingshing/notion_api_with_app_script"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JingShing/Notion_api_with_app_script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FNotion_api_with_app_script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FNotion_api_with_app_script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FNotion_api_with_app_script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FNotion_api_with_app_script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JingShing","download_url":"https://codeload.github.com/JingShing/Notion_api_with_app_script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FNotion_api_with_app_script/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260252084,"owners_count":22981181,"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":["app-script","app-scripts","appscript","appscripts","javascript","notion","notion-api"],"created_at":"2024-11-16T17:30:32.193Z","updated_at":"2025-06-16T22:33:17.871Z","avatar_url":"https://github.com/JingShing.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"English | [繁體中文](README_TCH.md)\n# Notion_api_with_app_script\nA simple note for using notion api with app script.\n\n# Why this repo created?\nRecently I got a mission to write the code about notion api on google app script.\n\nIt is not a good experience reading notion api manual. Since it was update its syntax recently.(I totally ruined the OAuth2.0 on it, and wasted much of my time.)\n\nIn fact, It is a torture.(There are few tutorial or instance to learn. You can only read the outdated manual or code)\n\nSo, I wrote this repo to help someone like me to keep your time from this horrible api thing.\n\nBTW, I think this time I am doing a great job on commnet in the code.\n\n# Before started\n* You may need a notion account.(from register or rent one.)\n* You may need to create a integration from [notion developer](https://developers.notion.com/)\n  * It will generate a ```integration token``` for you.(This is important, save it carefully)\n  * And you need to give integration some of capabilities of writing, reading or inserting.(Depending on what you want to do)\n* Finally, you will need a database to run script on. Exactly, you only need the database id.\n\u003e Database id can be get on your database webpage. On the url-\u003e ```https://www.notion.so/{database_id}?v={nothing_to_do}```\n\n# How to use api?\n* In the [example script](example/main.gs), put the token and database id in the const.\n* Run the script on app script.\n* In the example it will show all the object on your database.\n* Done!\n\n# Just try and modify for yourself!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingshing%2Fnotion_api_with_app_script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjingshing%2Fnotion_api_with_app_script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingshing%2Fnotion_api_with_app_script/lists"}