> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://notion.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://notion.ferndocs.com/_mcp/server.

#### [Create a Notion block](https://github.com/makenotion/notion-sdk-js/tree/main/examples/intro-to-notion-api/basic/1-add-block.ts)

In this introductory codebase, start by learning the basics of Notion's Public API: creating a new block.

See sample code →

#### [Create a linked Notion block](https://github.com/makenotion/notion-sdk-js/blob/main/examples/intro-to-notion-api/basic/2-add-linked-block.ts)

Build on the previous example by creating a block in Notion and adding a link to it.

See sample code →

#### [Create a styled/linked Notion block](https://github.com/makenotion/notion-sdk-js/blob/main/examples/intro-to-notion-api/basic/3-add-styled-block.ts)

Extend the previous example further by styling a block of text that links to an external website.

See sample code →

#### [Get text from any type of block](https://github.com/makenotion/notion-sdk-js/tree/main/examples/parse-text-from-any-block-type)

This integration shows how to get a list of blocks from a Notion page and parse the text from any type of block.

Fork repository on GitHub →