API リファレンス
Pages
Content Delivery API: GET /pages, GET /pages/{slug}
Parameters
localestring · queryLocale for page titles and SEO fields. One of the site's locales from /site (a code such as `en-US` or the URL prefix such as `en`); omit it for the primary locale. Other values, including locales that are still translating, return 400 UNSUPPORTED_LOCALE. Untranslated fields fall back to the primary locale. On multilingual sites each page carries resolvedLocale and availableLocales. Slugs stay in the primary locale's path space; prefix them with the locale's pathPrefix.
limitinteger · queryMaximum number of items to return, 1-100. Defaults to 20.
cursorstring · queryOpaque cursor from the previous page's nextCursor. Omit for the first page.
Response 200
dataobject[]requireddata[].resolvedLocalestringMultilingual sites only: the locale this page was delivered in (the requested locale when it has a published translation, otherwise the primary locale).
data[].availableLocalesstring[]Multilingual sites only: locales with a published translation of this page (the primary locale is not listed). Use it for hreflang and canonical.
data[].localePathsobjectMultilingual sites only: this page's path in every live locale, keyed by locale code, without the locale prefix (each locale can have its own translated slug). Use it for hreflang, a language switcher and sitemap alternates.
data[].idstringrequireddata[].slugstringrequireddata[].pathstringrequireddata[].parentSlugstring | nullrequireddata[].isDirectorybooleanrequireddata[].depthintegerrequireddata[].ancestorsobject[]requireddata[].ancestors[].slugstringrequireddata[].ancestors[].pathstringrequireddata[].ancestors[].titlestringrequireddata[].breadcrumbsobject[]requireddata[].breadcrumbs[].labelstringrequireddata[].breadcrumbs[].hrefstringrequireddata[].breadcrumbSource"path" | "override"requireddata[].titlestringrequireddata[].pageTypestringrequireddata[].isHomePagebooleanrequireddata[].orderintegerrequireddata[].globalHeaderIdstring | nulldata[].globalFooterIdstring | nulldata[].seoobjectrequireddata[].seo.ogImageFramingobject | nullOptional presentation framing for the share image (fitMode, padColor, focus, screens).
data[].publishedAtstring | nulldata[].updatedAtstringhasMorebooleanrequiredTrue when another page exists; pass nextCursor to fetch it.
nextCursorstring | nullrequiredCursor for the next page, or null on the last page.
Errors
UNSUPPORTED_LOCALE400INVALID_CURSOR400
curl -X GET "https://{site}/api/v1/pages"One published page by slug (supports 2-level path and 'home' alias) with sections and assets map
/pages/{slug}Parameters
slugstring · pathrequiredlocalestring · queryLocale for the page title, SEO fields and section text. One of the site's locales from /site (a code such as `en-US` or the URL prefix such as `en`); omit it for the primary locale. Other values, including locales that are still translating, return 400 UNSUPPORTED_LOCALE. Untranslated fields fall back to the primary locale. On multilingual sites the page carries resolvedLocale and availableLocales (use them for canonical and hreflang). Slugs and in-content links stay in the primary locale's path space; prefix them with the locale's pathPrefix.
Response 200
pageanyrequiredassetsobjectrequired
Errors
PAGE_NOT_FOUND404UNSUPPORTED_LOCALE400
curl -X GET "https://{site}/api/v1/pages/{slug}"