NotionBot SDK is an developer-friendly toolkit designed to simplify interactions with the official Notion API. It empowers developers to easily integrate Notion's features into their applications.
- Create an integration in order to provide an interface for API to identify your Notion contents.
- Official documentation : https://developers.notion.com/docs/create-a-notion-integration
git clone https://github.com/quan0715/NotionBot.git
cd NotionBot
pip install .
from NotionBot.NotionClient import Notion
AUTH = <your own integration's token>
notion_bot = Notion(auth=AUTH)
- Integration token usually started with "secret_..."
- If it authenticated, it will print out
Connect to integration YOUR_INEGRATION_NAME
,otherwiseConnect failed please request again !!!
As you run into this situation, make sure to check out your integration token is type it correctly.
page = your_notion_bot.get_page("your_page_title")
database = your_notion_bot.get_page("your_database_title")
block = your_notion_bot.get_block("your_block_id")
Check Guide for more details about the usage.