# Notion API Python ## Communicate with Notion API to retrieve data using Python ### Youtube Video [![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/Nlc0eFDnx6E/0.jpg)](https://www.youtube.com/watch?v=Nlc0eFDnx6E) ### Installation Open terminal and type the following ``` git clone https://github.com/visheshdvivedi/Notion-API-Python ``` Or you can directly download from this page\ Once downloaded, go to the downloaded folder, open command prompt there and type\ ``` pip install -r requirements.txt ``` ### Usage First open the database_id.txt and replace all the text with just your database ID\ Similarly, open the integration_token.txt and replace all text with just your integration token\ To check out the help message, type ``` python main.py -h ``` To retrieve data from the database ``` python main.py -r ``` To retrieve data from the database and save in 'data.json' ``` python main.py -o 'data.json' ``` To know how the script works, check out my blog: [Click here](https://itsallaboutpython.blogspot.com/2021/05/notion-api-python.html) To get more info, check out my Youtube: [Click here](https://www.youtube.com/channel/UCggZvARaczWC4wc4E6f330w?sub_confirmation=1) Instagram; [Click here](http://instagram.com/itsallaboutpython) Blog-site: [Click here](http://itsallaboutpython.blogspot.com/)