今日のNotion

2026年11月25日(水)

要約

1注目:NotionのAPIで、「## Action items」などの見出しを目印に、そのすぐ前後へ内容を挿入できるようになった。

2従来の文字列一致方式(insert_content.after)は非推奨になった。

3ヒント:古い方式を使う連携は、新しいposition設定への切り替えを計画しよう。

今日の注目記事
NotionのAPI、指定した見出しのすぐ後にコンテンツを追加可能に開発者ツール
v5.32.0
Notion JavaScript SDK version with the new option
★ 今日の注目記事

NotionのAPI、指定した見出しのすぐ後にコンテンツを追加可能に

Notionの開発者向け変更履歴(11月24日付)によると、ページのMarkdown A simple way of formatting text with symbols, such as # for headings and - for bullet points, that apps turn into styled text.を更新するエンドポイントで、「## Action items」のような見出しなど指定したブロックの直前・直後に新しい内容を挿入できるようになった。これまでの文字列一致による方法は非推奨となった(Notion Developers Changelog A dated list of what changed in each new version of an app, published by the company that makes it.)。

わかったこと

  1. 何が変わったか:insert_contentで、after_contentまたはbefore_contentのpositionとアンカー(例:見出し「## Action items」)を指定できるようになった。新しい内容は、アンカーに一致したブロックの隣に、同じ階層で挿入される(Notion Developers changelog)。
  2. 非推奨になったもの:省略記号で文字列を照合する従来のinsert_content.afterパラメーターは非推奨となり、連携は新しいposition設定へ移行すべきだ。insert_content自体はレガシー扱いではなくなった(Notion Developers changelog)。
  3. 条件:アンカー指定はmarkdown_version「v2」でのみ動作する。公式JavaScript SDK A ready-made toolbox of code that a company gives developers so they can build things on top of its product, like custom blocks in Notion.の@notionhq/client 5.32.0が新しい指定に対応し、古いパラメーターを非推奨と表示する(Notion Developers changelog)。

なぜ重要か: スクリプトや自動化、AIエージェントでNotionページにメモやタスクを追加しているなら、ページ全体を書き換えずに正しい場所へ書き込みやすくなる。古い「after」を使っている連携を確認し、削除される前に切り替えを計画しよう。

この記事を共有

情報源(1)
  • Changelog: November 24, 2026 - Insert markdown next to a block · Notion DevelopersRead ↗