Skip to content

経路 C · API only — 完成形

約 3 分後、管理画面を開かずに公開コンテンツを読める状態になります(公開済みプロジェクトがある前提)。

できていること

項目状態
ベース URL/public/p/{projectId}/v1 を使っている
発見llms.txt で公開フォームセット / エントリが分かる
取得一覧・単体(include_snapshot=true)が取れる
(任意)キー必須設定なら X-Luno-Public-Api-Key を付けている

確認チェックリスト

  • [ ] projectId を用意した
  • [ ] llms.txt が 200 で返る
  • [ ] エントリ一覧(include_snapshot=true)が取れる
  • [ ] (任意)サイトに Embed または自前 fetch を繋いだ

今すぐやる

  1. projectId を取得する(プロジェクト設定、または MCP get_public_api_info
  2. 公開インデックスを読む
bash
curl "https://api.luno.rest/public/p/{projectId}/v1/llms.txt"
ts
const text = await fetch(
  'https://api.luno.rest/public/p/{projectId}/v1/llms.txt'
).then((r) => r.text())
bash
# 「この projectId の llms.txt を読んで公開構造を要約して」
  1. エントリを本文付きで取る
bash
curl "https://api.luno.rest/public/p/{projectId}/v1/form-sets/blog/entries?include_snapshot=true"
  1. エンドポイント全体は 公開 API · API only

次の一手

目的ページ
エンドポイント一覧公開 API
サイトに繋ぐフレームワーク別レシピ(Next.js / Astro / Nuxt)
埋め込みで載せるEmbed & Pub
公開イベントで再生成Webhooks
中身を書く経路 A · Agents / 経路 B · Console