> ## Content Index
> Fetch the complete content index at: https://notionsolutions.net/llms.txt
> Use this file to discover other available public pages before exploring further.

# Get a Notion Page’s Content Through the API: Markdown or Nested Blocks
- URL: https://notionsolutions.net/notion-api-get-page-content/
- Published: 2026-12-04T09:00:00.000Z
- Updated: 2026-12-04T08:59:59.000Z
- Description: A page object holds metadata. Choose Markdown v2 for text or nested blocks for structure, then record gaps, references and pagination before calling the read complete.
- Author: Kevin Turner
- Tags: guide, automations

Use `GET /v1/pages/{page_id}/markdown?markdown_version=v2` for text-oriented content, or `GET /v1/blocks/{page_id}/children` for structured blocks. The block route needs pagination for each parent and recursion into nested children. I'd choose Markdown for summarizing a page and blocks when IDs, types and nesting matter; check for missing or inaccessible content on either route.

## Choose the representation before making the request

[Retrieve a page returns its metadata and properties](https://developers.notion.com/reference/retrieve-a-page?ref=notionsolutions.net), rather than the body. Similarly, [Search by title finds accessible pages and data sources](https://developers.notion.com/reference/post-search?ref=notionsolutions.net); finding a page isn't the same as reading its contents.

Start with a known page ID and a connection authorized to read the intended content. Preserve the API's [record IDs instead of parsing returned human-facing URLs](https://developers.notion.com/reference/versioning?ref=notionsolutions.net). The examples use `Notion-Version: 2026-12-01`; a `Notion-Version` header is required on REST requests. The [connection and page-creation guide](https://notionsolutions.net/notion-api-create-page/) covers onboarding if you still need to arrange access.

| Choose         | Use it for                                                                  | Check afterward                                                                    |
| -------------- | --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| Markdown v2    | A text-oriented representation without writing a block-to-text converter.   | truncated, unknown\_block\_ids, placeholders and reference-only content.           |
| Block children | Block IDs, types, rich text and explicit control over the nested structure. | Every parent's cursor chain, nested has\_children branches and special references. |

![Markdown request configuration with markdown_version set to v2 and include_transcript set to false.](https://storage.ghost.io/c/5c/30/5c30c46b-86a3-4d20-984f-4f6ae8ad1ed2/content/images/2026/11/notion-api-get-page-content-markdown-desktop-20261120.webp)

Select v2 explicitly. Leave include\_transcript false unless the transcript belongs in the requested output.

## Read Markdown with v2 selected explicitly

Use the [Retrieve page as Markdown endpoint](https://developers.notion.com/reference/retrieve-page-markdown?ref=notionsolutions.net) with `markdown_version=v2`. [The December API version defaults to v2](https://developers.notion.com/guides/get-started/upgrade-guide-2026-12-01?ref=notionsolutions.net#send-notion-flavored-markdown) and rejects `v1`. Keep `markdown_version=v2` explicit if the same request also runs on the March version, whose default is `v1`.

```http
GET https://api.notion.com/v1/pages/{page_id}/markdown?markdown_version=v2
Authorization: Bearer {NOTION_TOKEN}
Notion-Version: 2026-12-01
```

Replace the placeholders with your authorized token and page ID. For meeting transcripts that belong in the output, add `include_transcript=true`. That option [defaults to false](https://developers.notion.com/reference/retrieve-page-markdown?ref=notionsolutions.net); v2 places an included transcript inside `meeting-notes-section-transcript`.

The response is a `page_markdown` object. Inspect these [content and completeness fields](https://developers.notion.com/reference/retrieve-page-markdown?ref=notionsolutions.net) together:

- **markdown:** the returned content, including any placeholders or reference tags.
- **truncated:** a signal that some content wasn't loaded, including documented truncation or permission cases.
- **unknown\_block\_ids:** IDs to investigate, rather than a promise that every omitted section can be recovered.

Very large pages can encounter a [record limit of approximately 20,000 blocks](https://developers.notion.com/guides/data-apis/working-with-markdown-content?ref=notionsolutions.net#unknown-blocks-truncation-and-permissions). A child page or other content not shared with the connection can also produce missing content. The unknown-ID array doesn't tell you which cause applies.

For each new unknown ID, [you can try the same Markdown endpoint](https://developers.notion.com/guides/data-apis/working-with-markdown-content?ref=notionsolutions.net#unknown-blocks-truncation-and-permissions) with that ID in the `{page_id}` position. Truncated content may return as a subtree; an inaccessible ID returns `object_not_found`. Keep the ID, original location and result together. I'd retain recovered subtrees with their provenance until their placement is resolved, because blindly appending them can duplicate content or change its order.

Track attempted IDs and stop retrying an inaccessible or non-progressing branch. The response schema [limits unknown\_block\_ids to 100 entries](https://developers.notion.com/reference/retrieve-page-markdown?ref=notionsolutions.net); the documented contract doesn't explain recovery when more affected IDs exist. Inspect the Markdown placeholders as well, and keep the read marked incomplete when gaps remain. A false truncation flag alone doesn't establish faithful rendering of every block.

![Block children request with an empty start_cursor field and page_size set to 100.](https://storage.ghost.io/c/5c/30/5c30c46b-86a3-4d20-984f-4f6ae8ad1ed2/content/images/2026/11/notion-api-get-page-content-children-desktop-20261120.webp)

Start without a cursor. On later requests, pass next\_cursor as start\_cursor for the same parent; page\_size=100 is a limit, not a completion signal.

## Paginate each parent, then retrieve its nested children

[Retrieve block children returns only the immediate children](https://developers.notion.com/reference/get-block-children?ref=notionsolutions.net) of a page or block. Start with the page ID:

```http
GET https://api.notion.com/v1/blocks/{page_id}/children?page_size=100
Authorization: Bearer {NOTION_TOKEN}
Notion-Version: 2026-12-01
```

Use `has_more` to decide whether another response is needed. Pass `next_cursor` back unchanged as `start_cursor` for the *same parent*; omit it initially. [A short result page doesn't mean the list is finished](https://developers.notion.com/reference/pagination?ref=notionsolutions.net). Cursors are opaque: encode them as query-parameter values without parsing or validating their format.

For each ordinary block with `has_children=true`, repeat the process with that block's ID. Each child starts its own cursor chain. This pseudocode describes the traversal; `get_children` means the HTTP endpoint above, and `budget` is your shared request limit for the read:

```text
walk(parent_id, ancestors, budget):
    output = []
    if parent_id in ancestors:
        record_gap(parent_id, "cycle")
        return output
    path = ancestors + [parent_id]
    cursor = absent
    seen_cursors = set()

    repeat:
        if budget.remaining_requests == 0:
            record_gap(parent_id, "request budget exhausted")
            return output
        budget.remaining_requests -= 1
        page = get_children(parent_id, page_size=100,
                            start_cursor=cursor)  # omit when absent
        if page is an error:
            record_gap(parent_id, page.error)
            return output

        for block in page.results:
            node = {raw_block: block, children: []}
            if block.type == "synced_block" and
               block.synced_block.synced_from != null:
                record_reference(parent_id, block)
            else if block.has_children:
                node.children = walk(block.id, path, budget)
            output.append(node)

        if page.has_more == false:
            return output
        if page.next_cursor == null or
           page.next_cursor in seen_cursors:
            record_gap(parent_id, "cursor did not advance")
            return output
        seen_cursors.add(page.next_cursor)
        cursor = page.next_cursor
```

Keep the raw block and its parent/path so the output retains structure and provenance. The loop preserves ordinary child-list order, records incomplete branches and leaves duplicate synced blocks as references. Apply the special-content rules below separately. For large or deep pages, use a job queue or another bounded traversal design instead of relying on unlimited recursive calls.

When extracting text from supported rich-text values, [plain\_text gives the unformatted string](https://developers.notion.com/guides/data-apis/working-with-page-content?ref=notionsolutions.net). Preserve the rich-text objects too if links, mentions or styling matter. Joining only strings discards that structure.

## Handle references and unsupported content explicitly

| Encountered content   | What to retain or retrieve                                                                                                                                                                                                                                                                                                                              |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Child page            | A [child\_page block is a reference without children in the containing response](https://developers.notion.com/guides/data-apis/working-with-page-content?ref=notionsolutions.net). Decide whether subpages belong in the task, then retrieve an included child page separately with its own access and coverage checks.                                |
| Synced block          | [Originals have synced\_from=null; duplicates point to the original block ID](https://developers.notion.com/reference/block?ref=notionsolutions.net). Retain the reference and location. The documented reference shape doesn't settle duplicate-child fallback behavior, so don't silently replace it with a guessed traversal.                        |
| Meeting notes         | The [metadata container points to summary\_block\_id, notes\_block\_id and transcript\_block\_id](https://developers.notion.com/guides/data-apis/working-with-page-content?ref=notionsolutions.net). If those sections are in scope, wait for notes\_ready, then read each section's children with pagination. Record pending or inaccessible sections. |
| Unsupported block     | A [type=unsupported placeholder doesn't expose its content](https://developers.notion.com/reference/block?ref=notionsolutions.net). Keep the ID and informational block\_type; accept new string values rather than enforcing a fixed enum.                                                                                                             |
| Markdown custom block | [Readback returns a definition reference, not rendered contents](https://developers.notion.com/guides/data-apis/working-with-markdown-content?ref=notionsolutions.net). Instances with binding overrides still appear as unknown. Retain that distinction in the output.                                                                                |

Markdown unknown tags and API unsupported-block placeholders are different signals. The block route can expose supported structure that a text representation doesn't preserve; it can't reveal content absent from an unsupported placeholder. Avoid deciding that a whole Markdown version excludes a block type from a generic example list. Inspect the returned representation.

## Keep a coverage record beside the content

I'd store a small record alongside either output:

- The root page ID, API version, chosen representation and transcript choice.
- Which parent cursor chains finished, plus errors, exhausted budgets or non-progressing branches.
- Unknown IDs and placeholders, attempted subtree reads and unresolved access gaps.
- Child-page, synced, meeting-note, custom and unsupported references kept or followed, with their original locations.
- File links and whether the needed file contents were retained.

[Notion-hosted file objects provide temporary URLs valid for one hour](https://developers.notion.com/reference/file-object?ref=notionsolutions.net); re-fetch the object to refresh access. Markdown file links are also temporary. Refresh links near use, and treat retained text separately from saved file contents.

Keep property-value completeness separate too. If you also need full relations, people or inline references from the page object, use the [property-item endpoint's pagination](https://developers.notion.com/reference/retrieve-a-page-property?ref=notionsolutions.net). Finishing block pagination doesn't finish those property reads.

Call the result complete only for the declared scope and representation once its pending work and gaps are resolved. A text extraction or completed cursor walk doesn't establish a restorable backup or a single consistent snapshot while the page is being edited.

![Read content checked while Update content and Insert content are unchecked.](https://storage.ghost.io/c/5c/30/5c30c46b-86a3-4d20-984f-4f6ae8ad1ed2/content/images/2026/11/notion-api-get-page-content-capabilities-desktop-20261120.webp)

Read content permits a read operation. The connection still needs access to the page; a capability alone does not share it.

## Treat access errors and throttling as unfinished work

The read routes require [Read content capability](https://developers.notion.com/reference/get-block-children?ref=notionsolutions.net). A missing capability returns `403`; `404` can mean a missing object or missing access. Check the connection's intended access instead of treating either response as an empty page.

For [429 and 529, respect Retry-After in seconds](https://developers.notion.com/reference/request-limits?ref=notionsolutions.net), which can exceed one minute. Use bounded retries with backoff and jitter, preserving the parent ID and cursor so a delayed request doesn't restart the wrong branch. Don't retry `public_api_request_blocked`; the documented next step is to contact Notion support.