# Notion Read Page Markdown

Blocks for reading Notion pages and converting them to Markdown format.

## Notion Read Page Markdown

### What it is

Read a Notion page and convert it to Markdown format with proper formatting for headings, lists, links, and rich text.

### How it works

This block reads a Notion page and converts its content to Markdown format. It handles Notion's block structure and rich text, translating headings, lists, links, bold, italic, and other formatting into standard Markdown.

The conversion preserves the document structure while making the content portable and usable in other contexts. Optionally include the page title as a top-level header in the output.

### Inputs

| Input          | Description                                                                                                                                                                                     | Type | Required |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---- | -------- |
| page\_id       | Notion page ID. Must be accessible by the connected integration. You can get this from the page URL notion.so/A-Page-586edd711467478da59fe35e29a1ffab would be 586edd711467478da59fe35e29a1ffab | str  | Yes      |
| include\_title | Whether to include the page title as a header in the markdown                                                                                                                                   | bool | No       |

### Outputs

| Output   | Description                           | Type |
| -------- | ------------------------------------- | ---- |
| error    | Error message if the operation failed | str  |
| markdown | Page content in Markdown format.      | str  |
| title    | Page title.                           | str  |

### Possible use case

**Content Export**: Export Notion pages as Markdown for use in static site generators or documentation tools.

**AI Processing**: Convert Notion content to Markdown for LLM processing, summarization, or analysis.

**Cross-Platform Publishing**: Use Notion as a CMS and export content as Markdown for blogs or wikis.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://agpt.co/docs/integrations/block-integrations/read_page_markdown.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
