Skip to main content

Export notion page to markdown using official notion api

Project description

Notion Markdown Exporter 2.1 [Updated]

PyPI version

  • Notion Markdown Exporter using official notion api by notion-sdk-py

Update v2.1

  • Improved exporting speed by using MultiThreading

API Key(Token)

$ export NOTION_TOKEN="{your integration token key}"


$ pip install notion2md

Useage: Shell Command


notion2md -p ~/MyBlog/content/posts -u

Usage: Python

from notion2md.exporter import block_exporter

#output_path is optional
block_exporter("id of notion page","OutPut Path(Relative)")


  • Page Exporter
  • Database Exporter
  • export file object(image and files)
  • export child page


Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

notion2md-2.1.0-py3-none-any.whl (7.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page