Schema ld-Json Video Youtube Markup Google

Thảo luận trong 'Lập trình web Asp.net' bắt đầu bởi seolagi, 21/1/23.

  1. seolagi
    Tham gia ngày:
    16/4/14
    Bài viết:
    1,044
    Đã được thích:
    81
    Điểm thành tích:
    48
    Code cấu trúc dữ liệu dạng ld-json video youtube của google trên 1 page có nhiều video youtube, add cấu trúc dữ liệu, sau đó add video youtube dạng json tải trang cho nhẹ website chuẩn 2023 của google được cập nhật mới nhất.
    Mã:
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "ItemList",
        "itemListElement": [
            {
                "@type": "ListItem",
                "position": 1,
                "item": {
                    "@type": "VideoObject",
                    "@id": "#video1",
                    "name": "Structured Data Properties (Google Developers Site vs Schema.org) #AskGoogleWebmasters",
                    "description": "In this episode of #AskGoogleWebmasters, John Mueller discusses whether it is better to use structured data from the Google Developers site or add more prope...",
                    "thumbnailUrl": "https://i.ytimg.com/vi/kG8L_-fhkNw/mqdefault.jpg",
                    "duration": "PT1M41S",
                    "contentUrl": "https://www.youtube.com/watch?v=kG8L_-fhkNw",
                    "embedUrl": "https://www.youtube.com/embed/kG8L_-fhkNw",
                    "uploadDate": "2019-10-09",
                    "potentialAction": {
                        "@type": "SeekToAction",
                        "target": "https://youtu.be/kG8L_-fhkNw?t={seek_to_second_number}",
                        "startOffset-input": "required name=seek_to_second_number"
                    },
                    "url": "https://classyschema.org/Video#video1"
                }
            },
            {
                "@type": "ListItem",
                "position": 2,
                "item": {
                    "@type": "VideoObject",
                    "@id": "#video2",
                    "name": "Structured Data: SEO Mythbusting (Bonus Material)",
                    "description": "In this bonus material from the filming of last week’s episode (Googlebot: SEO Mythbusting), Martin Splitt (WebMaster Trends Analyst, Google) and his guest S...",
                    "thumbnailUrl": "https://i.ytimg.com/vi/Je6G4IUYcGI/mqdefault.jpg",
                    "duration": "PT5M17S",
                    "contentUrl": "https://www.youtube.com/watch?v=Je6G4IUYcGI",
                    "embedUrl": "https://www.youtube.com/embed/Je6G4IUYcGI",
                    "uploadDate": "2019-05-29",
                    "potentialAction": {
                        "@type": "SeekToAction",
                        "target": "https://youtu.be/Je6G4IUYcGI?t={seek_to_second_number}",
                        "startOffset-input": "required name=seek_to_second_number"
                    },
                    "url": "https://classyschema.org/Video#video2"
                }
            },
            {
                "@type": "ListItem",
                "position": 3,
                "item": {
                    "@type": "VideoObject",
                    "@id": "#video3",
                    "name": "Schema.org for Videos",
                    "description": "The schema.org markup is our recommended method for providing Google with the metadata needed to index your videos. Using it requires only a few non-visible ...",
                    "thumbnailUrl": "https://i.ytimg.com/vi/kNLY51xxCD0/mqdefault.jpg",
                    "duration": "PT1M14S",
                    "contentUrl": "https://www.youtube.com/watch?v=kNLY51xxCD0",
                    "embedUrl": "https://www.youtube.com/embed/kNLY51xxCD0",
                    "uploadDate": "2011-12-04",
                    "potentialAction": {
                        "@type": "SeekToAction",
                        "target": "https://youtu.be/kNLY51xxCD0?t={seek_to_second_number}",
                        "startOffset-input": "required name=seek_to_second_number"
                    },
                    "url": "https://classyschema.org/Video#video3"
                }
            },
            {
                "@type": "ListItem",
                "position": 4,
                "item": {
                    "@type": "VideoObject",
                    "@id": "#video4",
                    "name": "Should I add schema.org markup on my videos even if they're on YouTube?",
                    "description": "Rich snippets are automatically added to SERPs for video results from YouTube. Is it recommended to add schema video markup onsite in order to get your page ...",
                    "thumbnailUrl": "https://i.ytimg.com/vi/ePG5YYHU5Jo/mqdefault.jpg",
                    "duration": "PT1M6S",
                    "contentUrl": "https://www.youtube.com/watch?v=ePG5YYHU5Jo",
                    "embedUrl": "https://www.youtube.com/embed/ePG5YYHU5Jo",
                    "uploadDate": "2013-11-04",
                    "potentialAction": {
                        "@type": "SeekToAction",
                        "target": "https://youtu.be/ePG5YYHU5Jo?t={seek_to_second_number}",
                        "startOffset-input": "required name=seek_to_second_number"
                    },
                    "url": "https://classyschema.org/Video#video4"
                }
            },
            {
                "@type": "ListItem",
                "position": 5,
                "item": {
                    "@type": "VideoObject",
                    "@id": "#video5",
                    "name": "Stand Out on Google Search Using Structured Data and Search Analytics (Google I/O '17)",
                    "description": "Learn how to make your site stand out on Search. Google increasingly uses structured data to understand a site’s content and present better web results to us...",
                    "thumbnailUrl": "https://i.ytimg.com/vi/B0BA7Tswavs/mqdefault.jpg",
                    "duration": "PT28M41S",
                    "contentUrl": "https://www.youtube.com/watch?v=B0BA7Tswavs",
                    "embedUrl": "https://www.youtube.com/embed/B0BA7Tswavs",
                    "uploadDate": "2017-05-17",
                    "potentialAction": {
                        "@type": "SeekToAction",
                        "target": "https://youtu.be/B0BA7Tswavs?t={seek_to_second_number}",
                        "startOffset-input": "required name=seek_to_second_number"
                    },
                    "url": "https://classyschema.org/Video#video5"
                }
            }
        ]
    }
    </script>
     
    Cảm ơn đã xem bài:

    Schema ld-Json Video Youtube Markup Google