> 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 database](https://github.com/makenotion/notion-sdk-js/blob/main/examples/intro-to-notion-api/intermediate/1-create-a-database.ts)

Create your first Notion database with a defined set of properties.

See sample code →

#### [Add new pages to a database](https://github.com/makenotion/notion-sdk-js/blob/main/examples/intro-to-notion-api/intermediate/2-add-page-to-database.ts)

Build on the previous example by creating a database and adding new pages to it.

See sample code →

#### [Query pages in a database](https://github.com/makenotion/notion-sdk-js/blob/main/examples/intro-to-notion-api/intermediate/3-query-database.ts)

Learn how to filter your database rows (pages) after creating them from scratch.

See sample code →

#### [Filter and sort database pages](https://github.com/makenotion/notion-sdk-js/blob/main/examples/intro-to-notion-api/intermediate/4-sort-database.ts)

Filter and sorts pages after adding them to a new database.

See sample code →

#### [Upload files to a page](https://github.com/makenotion/notion-sdk-js/blob/main/examples/intro-to-notion-api/intermediate/5-upload-file.ts)

Create, send, and attach a file upload to a page's contents and as a comment attachment.

See sample code →

#### [Build a full-stack Notion integration](https://github.com/makenotion/notion-sdk-js/tree/main/examples/web-form-with-express)

Learn how to build a Notion integration with an interactive front-end. This codebase is referenced in the Build your first integration guide.

Fork repository on GitHub →