{"id":1513924,"date":"2024-09-04T12:13:17","date_gmt":"2024-09-04T12:13:17","guid":{"rendered":"https:\/\/davidcarralon.com\/outils\/generateur-de-schemas\/video"},"modified":"2026-06-04T11:06:16","modified_gmt":"2026-06-04T11:06:16","slug":"video","status":"publish","type":"page","link":"https:\/\/davidcarralon.com\/fr\/outils\/generateur-de-schemas\/video","title":{"rendered":"Video Schema"},"content":{"rendered":"\n<div class=\"jpsg-container\">\n\n    <h2>Video Schema Generator<\/h2>\n        <p>My Schema tool will generate compliant Json-LD structured data based \n        on your required field. Each field will generate an item property<\/p>\n        \n        <div class=\"jpsg-buttons\">\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/website\"> Website<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/organization\"> Organization<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/breadcrumbs\"> Breadcrumbs<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/article\"> Article<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/localbusiness\"> Local Business<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/product\"> Product<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/event\">Event<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/video\">Video<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/recipe\">Recipe<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/aggregaterating\">Aggregate Rating<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/jobposting\">Job Postings<\/a> <\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/FAQ\">FAQ<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/medicalschema\">Medical Schema<\/a><\/button>\n        <\/div>\n    <div class=\"row\">\n    <div class=\"column\" id=\"schema-output\">\n        <h3 id=\"generatedSchema\" style=\"display:none;\">Generated JSON-LD:<\/h3>\n        <h3 id=\"dataSample\">Structured data sample for \u2018Video\u2019 Schema <\/h3>\n\n        <pre class=\"textDavid\" id=\"textDavid\">\n{\n  \"@context\": \"http:\/\/schema.org\",\n  \"@type\": \"VideoObject\",\n  \"name\": \"david\",\n  \"description\": \"I\u2019m an independent SEO consultant with over 20 years of experience in SEO and digital marketing.\",\n  \"thumbnailUrl\": \"https:\/\/davidcarralon.com\/\",\n  \"uploadDate\": \"08\/15\/2024\",\n  \"duration\": \"2222\",\n  \"contentUrl\": \"https:\/\/davidcarralon.com\/david\",\n  \"embedUrl\": \"https:\/\/davidcarralon.com\/david\/video\",\n  \"interactionCount\": \"2\",\n  \"expires\": \"2024-08-08\"\n}\n<\/pre>  \n        <pre class=\"schemapre\" id=\"schema-json\"><\/pre>\n        <button id=\"copyButton\" style=\"display:none;\">Copy JSON-LD<\/button>\n        <button id=\"validateSchema\" style=\"display:none;\"><a href=\"https:\/\/search.google.com\/test\/rich-results\" rel=\"noopener\">Validate(Google)<\/a><\/button>\n<\/div>\n        <div class=\"column\">\n            <form id=\"schema-form\">\n                <div class=\"form-group\">\n                    <label for=\"video-name\">Name:<\/label>\n                    <input type=\"text\" id=\"video-name\" name=\"name\"  placeholder=\"Name\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"video-thumbnail-Url\">Thumbnail Url:<\/label>\n                    <input type=\"url\" id=\"video-thumbnail-Url\" name=\"thumbnail-Url\" placeholder=\"Thumbnail Url\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"video-description\">Description:<\/label>\n                    <input type=\"text\" id=\"video-description\" name=\"description\" placeholder=\"Description\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"video-upload\">Upload Date:<\/label>\n                    <input type=\"text\" id=\"video-upload\" name=\"uploadDate\" placeholder=\"Upload Date\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"video-duration\">Duration:<\/label>\n                    <input type=\"text\" id=\"video-duration\" name=\"duration\" placeholder=\"Duration\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"video-content\">Content Url:<\/label>\n                    <input type=\"url\" id=\"video-content\" name=\"contentUrl\" placeholder=\"Content Url\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"video-embed\">Embed Url:<\/label>\n                    <input type=\"url\" id=\"video-embed\" name=\"embedUrl\" placeholder=\"Embed Url\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"video-interaction\">Interaction Count:<\/label>\n                    <input type=\"text\" id=\"video-interaction\" name=\"interactionCount\" placeholder=\"Interaction Count\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"video-expires\">Expires:<\/label>\n                    <input type=\"date\" id=\"video-expires\" name=\"expires\" placeholder=\"Expires\" required>\n                <\/div>\n\n\n                <!-- Add more fields as necessary -->\n                <div class=\"form-group\">\n                <button type=\"button\" onclick=\"generateSchema()\">Generate Schema<\/button>\n                <button type=\"reset\" id=\"reset\">Clear all<\/button>\n                <\/div>\n            <\/form>\n        <\/div>\n\n<\/div>\n\n <script>\n        function generateSchema() {\n\n            var videoName = document.getElementById('video-name').value;\n            var videothumbnail = document.getElementById('video-thumbnail-Url').value;\n            var videoDescription = document.getElementById('video-description').value;\n            var videoUpload = document.getElementById('video-upload').value;\n            var videoDuration = document.getElementById('video-duration').value;\n            var videoContent = document.getElementById('video-content').value;\n            var videoEmbed = document.getElementById('video-embed').value;\n            var videoInteraction = document.getElementById('video-interaction').value;\n            var videoExpires = document.getElementById('video-expires').value;\n\n\n            var schema = {\n                 \n                \"@context\": \"http:\/\/schema.org\",\n                \"@type\": \"VideoObject\",\n                \"name\": videoName,\n                \"description\": videoDescription,\n                \"thumbnailUrl\": videothumbnail,\n                \"uploadDate\": videoUpload,\n                \"duration\": videoDuration,\n                \"contentUrl\": videoContent,\n                \"embedUrl\": videoEmbed,\n                \"interactionCount\": videoInteraction,\n                \"expires\": videoExpires\n             \n         };     \n                 \n\n            document.getElementById('schema-json').textContent = JSON.stringify(schema, null, 2);\n            document.getElementById('generatedSchema').style.display = 'inline-block';\n            document.getElementById('copyButton').style.display = 'inline-block';\n            document.getElementById('validateSchema').style.display = 'inline-block';\n            document.getElementById('dataSample').style.display = 'none';\n            document.getElementById('textDavid').style.display = 'none';\n        }\n<\/script>\n\n<script>\n    document.getElementById('copyButton').addEventListener('click', function() {\n        \/\/ Get the text from the generated JSON-LD area\n        const jsonLdText = document.querySelector('#schema-json').innerText;\n\n        \/\/ Create a temporary textarea element to hold the text\n        const tempTextArea = document.createElement('textarea');\n        tempTextArea.value = jsonLdText;\n        document.body.appendChild(tempTextArea);\n\n        \/\/ Select the text and copy it to the clipboard\n        tempTextArea.select();\n        document.execCommand('copy');\n\n        \/\/ Remove the temporary textarea\n        document.body.removeChild(tempTextArea);\n\n        \/\/ Optional: Alert the user that the text has been copied\n        alert('JSON-LD copied to clipboard!');\n    });\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":1464116,"parent":1513788,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"class_list":{"1":"page","2":"type-page","6":"entry"},"featured_image_src":"https:\/\/davidcarralon.com\/wp-content\/uploads\/Schema-Video-1-600x400.png","acf":[],"featured_image_src_square":"https:\/\/davidcarralon.com\/wp-content\/uploads\/Schema-Video-1-600x600.png","_links":{"self":[{"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/pages\/1513924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/comments?post=1513924"}],"version-history":[{"count":1,"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/pages\/1513924\/revisions"}],"predecessor-version":[{"id":1513925,"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/pages\/1513924\/revisions\/1513925"}],"up":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/pages\/1513788"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/media\/1464116"}],"wp:attachment":[{"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/media?parent=1513924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}