{
  "@type": "HeadlessPages",
  "@id": "/_api/headless_pages/2011",
  "uid": 2011,
  "title": "Routing and SEO",
  "slug": "/features/routing-seo",
  "seo_title": "",
  "description": "From a path to a page, with the SEO fields and a meta object for the head.",
  "no_index": 0,
  "no_follow": 0,
  "canonical_link": null,
  "og_title": "",
  "og_description": null,
  "og_image": [
    {
      "uid": 2023,
      "name": "routing.jpg",
      "extension": "jpg",
      "publicUrl": "https://typo3.example/fileadmin/_processed_/e/d/csm_routing_4e533e7eb9.jpg",
      "mimeType": "image/jpeg",
      "fileSize": 161591,
      "metadata": {
        "title": null,
        "alternative": "An open drawer of index cards in coloured stocks with cyan, magenta and yellow tabs, one card lifted",
        "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": 2011,
      "title": "Routing and SEO",
      "nav_title": "",
      "url": "https://typo3.example/website/features/routing-seo",
      "doktype": 1
    }
  ],
  "languages": [
    {
      "languageId": 0,
      "locale": "en-US",
      "hreflang": "en",
      "title": "English",
      "url": "https://typo3.example/website/features/routing-seo",
      "available": true,
      "active": true
    },
    {
      "languageId": 1,
      "locale": "de-DE",
      "hreflang": "de",
      "title": "German",
      "url": "https://typo3.example/website/de/funktionen/routing-seo",
      "available": true,
      "active": false
    }
  ],
  "meta": {
    "robots": "index,follow",
    "canonical": "https://typo3.example/website/features/routing-seo",
    "schema": {
      "@context": "https://schema.org",
      "@type": "WebPage",
      "url": "https://typo3.example/website/features/routing-seo",
      "name": "Routing and SEO",
      "inLanguage": "en",
      "description": "From a path to a page, with the SEO fields and a meta object for the head."
    },
    "alternates": [
      {
        "hreflang": "en",
        "href": "https://typo3.example/website/features/routing-seo"
      },
      {
        "hreflang": "de",
        "href": "https://typo3.example/website/de/funktionen/routing-seo"
      },
      {
        "hreflang": "x-default",
        "href": "https://typo3.example/website/features/routing-seo"
      }
    ]
  },
  "regions": {
    "intro": [
      {
        "uid": 2067,
        "CType": "textmedia",
        "header": "Routing and SEO",
        "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 frontend knows URLs, TYPO3 knows uids. The path lookup turns one into the other, and the page brings its SEO fields and a ready-made "
              },
              {
                "_type": "span",
                "_key": "k2",
                "marks": [
                  "code"
                ],
                "text": "meta"
              },
              {
                "_type": "span",
                "_key": "k3",
                "marks": [],
                "text": " object for the head."
              }
            ]
          }
        ],
        "assets": [
          {
            "uid": 2023,
            "name": "routing.jpg",
            "extension": "jpg",
            "publicUrl": "/fileadmin/website/plates/routing.jpg",
            "mimeType": "image/jpeg",
            "fileSize": 161591,
            "metadata": {
              "title": null,
              "description": null
            }
          }
        ],
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      }
    ],
    "main": [
      {
        "uid": 2068,
        "CType": "text",
        "header": "Path lookup",
        "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 path is relative to the base of the language and resolved by the site router, route enhancers included. The result is a collection of at most one page:"
              }
            ]
          },
          {
            "_type": "block",
            "_key": "k2",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k3",
                "marks": [
                  "code"
                ],
                "text": "GET /_api/headless_pages?path=/features/routing-seo"
              }
            ]
          },
          {
            "_type": "block",
            "_key": "k4",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k5",
                "marks": [],
                "text": "A path without a page returns an empty collection. A request without a path is answered with 400: pages are never listed."
              }
            ]
          },
          {
            "_type": "block",
            "_key": "k6",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k7",
                "marks": [
                  "code"
                ],
                "text": "GET /_api/headless_pages?path=/no-such-page"
              }
            ]
          },
          {
            "_type": "block",
            "_key": "k8",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k9",
                "marks": [
                  "code"
                ],
                "text": "GET /_api/headless_pages"
              }
            ]
          }
        ],
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      },
      {
        "uid": 2069,
        "CType": "text",
        "header": "Meta for the head",
        "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 page sends the EXT:seo fields in the request language and derives "
              },
              {
                "_type": "span",
                "_key": "k2",
                "marks": [
                  "code"
                ],
                "text": "meta"
              },
              {
                "_type": "span",
                "_key": "k3",
                "marks": [],
                "text": " from them: "
              },
              {
                "_type": "span",
                "_key": "k4",
                "marks": [
                  "code"
                ],
                "text": "robots"
              },
              {
                "_type": "span",
                "_key": "k5",
                "marks": [],
                "text": ", the "
              },
              {
                "_type": "span",
                "_key": "k6",
                "marks": [
                  "code"
                ],
                "text": "canonical"
              },
              {
                "_type": "span",
                "_key": "k7",
                "marks": [],
                "text": " URL and a schema.org "
              },
              {
                "_type": "span",
                "_key": "k8",
                "marks": [
                  "code"
                ],
                "text": "WebPage"
              },
              {
                "_type": "span",
                "_key": "k9",
                "marks": [],
                "text": ". The head of this page was built from it. "
              },
              {
                "_type": "span",
                "_key": "k10",
                "marks": [
                  "code"
                ],
                "text": "og_image"
              },
              {
                "_type": "span",
                "_key": "k11",
                "marks": [],
                "text": " is processed with the social crop and has an absolute URL."
              }
            ]
          },
          {
            "_type": "block",
            "_key": "k12",
            "style": "normal",
            "markDefs": [],
            "children": [
              {
                "_type": "span",
                "_key": "k13",
                "marks": [
                  "code"
                ],
                "text": "GET /_api/headless_pages/2011"
              }
            ]
          }
        ],
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      }
    ],
    "specimen": [
      {
        "uid": 2070,
        "CType": "header",
        "header": "Kettenblatt: City",
        "header_layout": 0,
        "header_position": "",
        "header_link": {
          "href": "https://typo3.example/kettenblatt/bikes/city",
          "target": null,
          "title": null
        },
        "subheader": "",
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      }
    ]
  }
}