{
  "@type": "HeadlessPages",
  "@id": "/_api/headless_pages/2010",
  "uid": 2010,
  "title": "Navigation",
  "slug": "/features/navigation",
  "seo_title": "",
  "description": "A page tree in one request, with absolute URLs in the request language and a depth you choose.",
  "no_index": 0,
  "no_follow": 0,
  "canonical_link": null,
  "og_title": "",
  "og_description": null,
  "og_image": [
    {
      "uid": 2022,
      "name": "navigation.jpg",
      "extension": "jpg",
      "publicUrl": "https://typo3.example/fileadmin/_processed_/3/f/csm_navigation_94ff3e6ad1.jpg",
      "mimeType": "image/jpeg",
      "fileSize": 156840,
      "metadata": {
        "title": null,
        "alternative": "An unlabelled folded map printed in cyan, magenta and yellow, with branching paths and a pin at one junction",
        "description": null,
        "copyright": null
      },
      "width": 1536,
      "height": 806
    }
  ],
  "breadcrumbs": [
    {
      "uid": 2000,
      "title": "tca-api-headless",
      "nav_title": "",
      "url": "https://typo3.example/website/",
      "doktype": 1
    },
    {
      "uid": 2002,
      "title": "Features",
      "nav_title": "",
      "url": "https://typo3.example/website/features",
      "doktype": 1
    },
    {
      "uid": 2010,
      "title": "Navigation",
      "nav_title": "",
      "url": "https://typo3.example/website/features/navigation",
      "doktype": 1
    }
  ],
  "languages": [
    {
      "languageId": 0,
      "locale": "en-US",
      "hreflang": "en",
      "title": "English",
      "url": "https://typo3.example/website/features/navigation",
      "available": true,
      "active": true
    },
    {
      "languageId": 1,
      "locale": "de-DE",
      "hreflang": "de",
      "title": "German",
      "url": "https://typo3.example/website/de/funktionen/navigation",
      "available": true,
      "active": false
    }
  ],
  "meta": {
    "robots": "index,follow",
    "canonical": "https://typo3.example/website/features/navigation",
    "schema": {
      "@context": "https://schema.org",
      "@type": "WebPage",
      "url": "https://typo3.example/website/features/navigation",
      "name": "Navigation",
      "inLanguage": "en",
      "description": "A page tree in one request, with absolute URLs in the request language and a depth you choose."
    },
    "alternates": [
      {
        "hreflang": "en",
        "href": "https://typo3.example/website/features/navigation"
      },
      {
        "hreflang": "de",
        "href": "https://typo3.example/website/de/funktionen/navigation"
      },
      {
        "hreflang": "x-default",
        "href": "https://typo3.example/website/features/navigation"
      }
    ]
  },
  "regions": {
    "intro": [
      {
        "uid": 2060,
        "CType": "textmedia",
        "header": "Navigation",
        "header_layout": 0,
        "header_position": "",
        "header_link": null,
        "subheader": "",
        "bodytext": [
          {
            "_type": "block",
            "_key": "k0",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k1",
                "marks": [],
                "text": "One request returns a page and its subpages as a tree: titles, slugs, doktype and absolute URLs in the request language. The menu at the top of this page and the page list in the footer were built from it."
              }
            ]
          }
        ],
        "assets": [
          {
            "uid": 2022,
            "name": "navigation.jpg",
            "extension": "jpg",
            "publicUrl": "/fileadmin/website/plates/navigation.jpg",
            "mimeType": "image/jpeg",
            "fileSize": 156840,
            "metadata": {
              "title": null,
              "description": null
            }
          }
        ],
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      }
    ],
    "main": [
      {
        "uid": 2061,
        "CType": "text",
        "header": "Depth",
        "header_layout": 0,
        "header_position": "",
        "header_link": null,
        "subheader": "",
        "bodytext": [
          {
            "_type": "block",
            "_key": "k0",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k1",
                "marks": [],
                "text": "Without a parameter the tree goes down "
              },
              {
                "_type": "span",
                "_key": "k2",
                "marks": [
                  "code"
                ],
                "text": "navigation.depth"
              },
              {
                "_type": "span",
                "_key": "k3",
                "marks": [],
                "text": " levels, one on this request:"
              }
            ]
          },
          {
            "_type": "block",
            "_key": "k4",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k5",
                "marks": [
                  "code"
                ],
                "text": "GET /_api/headless_navigation/2000?depth=1"
              }
            ]
          },
          {
            "_type": "block",
            "_key": "k6",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k7",
                "marks": [],
                "text": "A higher "
              },
              {
                "_type": "span",
                "_key": "k8",
                "marks": [
                  "code"
                ],
                "text": "depth"
              },
              {
                "_type": "span",
                "_key": "k9",
                "marks": [],
                "text": " is capped to "
              },
              {
                "_type": "span",
                "_key": "k10",
                "marks": [
                  "code"
                ],
                "text": "navigation.maxDepth"
              },
              {
                "_type": "span",
                "_key": "k11",
                "marks": [],
                "text": ", four on this site. This request asks for nine:"
              }
            ]
          },
          {
            "_type": "block",
            "_key": "k12",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k13",
                "marks": [
                  "code"
                ],
                "text": "GET /_api/headless_navigation/2002?depth=9"
              }
            ]
          }
        ],
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      },
      {
        "uid": 2062,
        "CType": "text",
        "header": "An invalid depth",
        "header_layout": 0,
        "header_position": "",
        "header_link": null,
        "subheader": "",
        "bodytext": [
          {
            "_type": "block",
            "_key": "k0",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k1",
                "marks": [],
                "text": "A depth that is not a positive integer is a client error:"
              }
            ]
          },
          {
            "_type": "block",
            "_key": "k2",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k3",
                "marks": [
                  "code"
                ],
                "text": "GET /_api/headless_navigation/2000?depth=all"
              }
            ]
          }
        ],
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      },
      {
        "uid": 2063,
        "CType": "text",
        "header": "What a menu leaves out",
        "header_layout": 0,
        "header_position": "",
        "header_link": null,
        "subheader": "",
        "bodytext": [
          {
            "_type": "block",
            "_key": "k0",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k1",
                "marks": [],
                "text": "The tree follows the rules of a frontend menu. Pages hidden in menus, pages not available in the language and the pages of other sites are left out, and a left-out page hides its subpages. This site's Meta page is hidden in menus, so the footer finds the imprint by a path lookup. The Colophon has no German translation, so the German menu doesn't list it."
              }
            ]
          },
          {
            "_type": "block",
            "_key": "k2",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k3",
                "marks": [],
                "text": "Standard pages, links and shortcuts (doktype 1, 3 and 4) are listed and delivered; "
              },
              {
                "_type": "span",
                "_key": "k4",
                "marks": [
                  "code"
                ],
                "text": "doktype"
              },
              {
                "_type": "span",
                "_key": "k5",
                "marks": [],
                "text": " tells them apart, and "
              },
              {
                "_type": "span",
                "_key": "k6",
                "marks": [
                  "code"
                ],
                "text": "url"
              },
              {
                "_type": "span",
                "_key": "k7",
                "marks": [],
                "text": " is always the page's own URL. Other doktypes answer like a missing page."
              }
            ]
          }
        ],
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      }
    ],
    "specimen": [
      {
        "uid": 2064,
        "CType": "header",
        "header": "Kettenblatt: Bikes",
        "header_layout": 0,
        "header_position": "",
        "header_link": {
          "href": "https://typo3.example/kettenblatt/bikes",
          "target": null,
          "title": null
        },
        "subheader": "",
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      }
    ]
  }
}