Kanorio

API 參考

Seo

Content Delivery API: GET /seo/llms.txt, GET /seo/llms-full.txt, GET /seo/sitemap.xml, …

這頁只有英文版。API 參考、Webhook 事件與變更紀錄維持英文,和程式碼裡的欄位名稱、錯誤碼一致。
Base URL https://{site}/api/v1ErrorsPagination

Parameters

  • localestring · query

    Locale of the file: page and post titles and summaries from that locale's published translations, URLs with the locale's URL prefix, and a Languages section linking the other locales' files at /{prefix}/llms.txt. 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. A custom llms.txt applies to the primary locale only. Rewrite /{prefix}/llms.txt on your front end to this endpoint with locale={prefix}.

Errors

  • UNSUPPORTED_LOCALE 400
curl -X GET "https://{site}/api/v1/seo/llms.txt"

Parameters

  • localestring · query

    Locale of the file: page sections and post bodies from that locale's published translations, URLs with the locale's URL prefix, and links to the other locales' files. 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. A custom llms-full.txt applies to the primary locale only.

Errors

  • UNSUPPORTED_LOCALE 400
curl -X GET "https://{site}/api/v1/seo/llms-full.txt"
curl -X GET "https://{site}/api/v1/seo/sitemap.xml"
curl -X GET "https://{site}/api/v1/seo/robots.txt"

Parameters

  • pathstring · query

    Relative page path starting with / (e.g. /, /about, /blog, /blog/my-post)

  • localestring · query

    Locale of the structured data: inLanguage, page and post names and descriptions from that locale's published translations, and page URLs with the locale's URL prefix. Pass path in the primary locale's path space (strip the locale prefix). 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.

Errors

  • INVALID_QUERY 400
  • PAGE_NOT_FOUND 404
  • UNSUPPORTED_LOCALE 400
curl -X GET "https://{site}/api/v1/seo/jsonld"