Retrieve a page as markdown
Retrieve the content of a page rendered as enhanced markdown.
Documentation Index
Fetch the complete documentation index at: https://developers.notion.com/llms.txt
Use this file to discover all available pages before exploring further.
Use cases
Use this endpoint to retrieve the full content of a Notion page as enhanced markdown, instead of working with the block-based API. This is especially useful for agentic systems and developer tools that work natively with markdown. The endpoint also accepts non-navigable block IDs returned inunknown_block_ids from a previous truncated response. Pass these IDs to fetch additional subtrees of a large page.
General behavior
Returns apage_markdown object containing the page content as an enhanced markdown string.
Unknown blocks
Some blocks may appear as<unknown url="..." alt="..."/> tags in the markdown output. This happens when:
- Truncation: The page exceeds the record limit (approximately 20,000 blocks) and some blocks could not be loaded.
- Permissions: The page contains child pages or other content that is not shared with the connection.
- Unsupported block types: Certain block types (such as bookmarks, embeds, and link previews) are not yet supported in the markdown format.
truncated field is set to true and the unknown_block_ids array contains the affected block IDs.
You can attempt to fetch unloaded blocks by passing their IDs back to this same endpoint as the page_id path parameter. Blocks that are unknown due to permissions will return a 404 error since the connection does not have access.
unknown_block_ids array does not distinguish between truncated and inaccessible blocks. Handle object_not_found errors gracefully when re-fetching unknown block IDs.Errors
Returns a 404 HTTP response if the page doesn’t exist, or if the connection doesn’t have access to the page. Returns a 400 or 429 HTTP response if the request exceeds the request limits. Each Public API endpoint can return several possible error codes. See the Error codes section of the Status codes documentation for more information.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The API version to use for this request. The latest version is 2026-03-11.
2026-03-11 Path Parameters
The ID of the page (or block) to retrieve as markdown. Non-navigable block IDs from truncated responses can be passed here to fetch their subtrees.
Query Parameters
Whether to include meeting note transcripts. Defaults to false. When true, full transcripts are included; when false, a placeholder with the meeting note URL is shown instead.
Response
The type of object, always 'page_markdown'.
"page_markdown"The ID of the page or block.
The page content rendered as enhanced Markdown.
Whether the content was truncated due to exceeding the record count limit.
Block IDs that could not be loaded (appeared as tags in the markdown). Pass these IDs back to this endpoint to fetch their content separately.
100