{"id":1513928,"date":"2024-09-04T12:14:41","date_gmt":"2024-09-04T12:14:41","guid":{"rendered":"https:\/\/davidcarralon.com\/outils\/generateur-de-schemas\/recipe"},"modified":"2026-06-04T11:06:14","modified_gmt":"2026-06-04T11:06:14","slug":"recipe","status":"publish","type":"page","link":"https:\/\/davidcarralon.com\/fr\/outils\/generateur-de-schemas\/recipe","title":{"rendered":"Recipe Schema"},"content":{"rendered":"\n<div class=\"jpsg-container\">\n\n    <h2>Recipe 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 \u2018Recipe\u2019 Schema <\/h3>\n\n        <pre class=\"textDavid\" id=\"textDavid\">\n{\n\t\"@context\": \"http:\/\/schema.org\",\n\t\"@type\": \"Recipe\",\n\t\"name\": \"David\",\n\t\"image\": \"https:\/\/davidcarralon.com\/wp-content\/uploads\/davidcarralon-logo-250-low-1.png\",\n\t\"author\": {\n\t\t\"@type\": \"Person\",\n\t\t\"name\": \"David Carralon\"\n\t},\n\t\"datePublished\": \"2024-09-23\",\n\t\"description\": \"I\u2019m an independent SEO consultant with over 20 years of experience in SEO and digital marketing.\",\n\t\"aggregateRating\": {\n\t\t\"@type\": \"AggregateRating\",\n\t\t\"ratingValue\": \"5\",\n\t\t\"reviewCount\": \"10\"\n\t},\n\t\"prepTime\": \"00:30\",\n\t\"cookTime\": \"03:00\",\n\t\"totalTime\": \"03:30\",\n\t\"recipeYield\": \"10\",\n\t\"recipeIngredient\": \"David Carralon\",\n\t\"recipeInstructions\": \"David Carralon\",\n\t\"nutrition\": {\n\t\t\"@type\": \"NutritionInformation\",\n\t\t\"calories\": \"100\",\n\t\t\"fatContent\": \"100\"\n\t}\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=\"recipe-name\">Name:<\/label>\n                    <input type=\"text\" id=\"recipe-name\" name=\"recipeName\"  placeholder=\"Name\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"recipe-Authorname\">Author Name:<\/label>\n                    <input type=\"text\" id=\"recipe-Authorname\" name=\"recipeAuthorname\"  placeholder=\"Author Name\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"recipe-ImURL\">Image URL:<\/label>\n                    <input type=\"url\" id=\"recipe-ImURL\" name=\"recipeImURL\" placeholder=\"Image URL\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"recipe-DatePub\">Date Published:<\/label>\n                    <input type=\"date\" id=\"recipe-DatePub\" name=\"recipeDatePub\" placeholder=\"Date Published\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"recipe-Description\">Description:<\/label>\n                    <input type=\"text\" id=\"recipe-Description\" name=\"recipeDescription\" placeholder=\"Description\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"recipe-PrepTime\">Preparation Time:<\/label>\n                    <input type=\"time\" id=\"recipe-PrepTime\" name=\"recipePrepTime\" placeholder=\"Preparation Time\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"recipe-CookTime\">Cook Time:<\/label>\n                    <input type=\"time\" id=\"recipe-CookTime\" name=\"recipeCookTime\" placeholder=\"Cook Time\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"recipe-TotalTime\">Total Time:<\/label>\n                    <input type=\"time\" id=\"recipe-TotalTime\" name=\"recipeTotalTime\" placeholder=\"Total Time\" required>\n                <\/div>\n\n\n                <div class=\"form-group\">\n                    <label for=\"recipe-Calories\">Calories:<\/label>\n                    <input type=\"text\" id=\"recipe-Calories\" name=\"recipeCalories\" placeholder=\"Calories\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"recipe-FatContent\">Fat Content:<\/label>\n                    <input type=\"text\" id=\"recipe-FatContent\" name=\"recipeFatContent\" placeholder=\"Fat Content\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"recipe-AveRating\">Average Rating:<\/label>\n                    <input type=\"text\" id=\"recipe-AveRating\" name=\"recipeAveRating\" placeholder=\"Average Rating\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"recipe-numberReview\">Number of Reviews:<\/label>\n                    <input type=\"text\" id=\"recipe-numberReview\" name=\"recipeNumberReview\" placeholder=\"Number of Reviews\" required>\n                <\/div>\n            \n\n                <div class=\"form-group\">\n                    <label for=\"recipe-Ingredients\">Recipe Ingredients:<\/label>\n                    <input type=\"text\" id=\"recipe-Ingredients\" name=\"recipeIngredients\" placeholder=\"Recipe Ingredients\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"recipe-Instructions\">Recipe Instructions:<\/label>\n                    <input type=\"text\" id=\"recipe-Instructions\" name=\"recipe-Instructions\" placeholder=\"Recipe Instructions:\" required>\n                <\/div>\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 recipename = document.getElementById('recipe-name').value;\n            var recipeAuthorname = document.getElementById('recipe-Authorname').value;\n            var recipeImURL = document.getElementById('recipe-ImURL').value;\n            var recipeDatePub = document.getElementById('recipe-DatePub').value;\n            var recipeDescription = document.getElementById('recipe-Description').value;\n            var recipePrepTime = document.getElementById('recipe-PrepTime').value;\n            var recipeCookTime = document.getElementById('recipe-CookTime').value;\n            var recipeTotalTime = document.getElementById('recipe-TotalTime').value;\n            var recipeCalories = document.getElementById('recipe-Calories').value;\n            var recipeFatContent = document.getElementById('recipe-FatContent').value;\n            var recipeAveRating = document.getElementById('recipe-AveRating').value;\n            var recipenumberReview = document.getElementById('recipe-numberReview').value;\n            var recipeIngredients = document.getElementById('recipe-Ingredients').value;\n            var recipeInstructions = document.getElementById('recipe-Instructions').value;\n\n\n        \n\n\n\n            var schema = {\n                \"@context\": \"http:\/\/schema.org\",\n                \"@type\": \"Recipe\",\n                \"name\": recipename ,\n                \"image\": recipeImURL ,\n                \"author\": {\n                    \"@type\": \"Person\",\n                    \"name\": recipeAuthorname \n                },\n                \"datePublished\": recipeDatePub ,\n                \"description\": recipeDescription ,\n                \"aggregateRating\": {\n                    \"@type\": \"AggregateRating\",\n                    \"ratingValue\": recipeAveRating ,\n                    \"reviewCount\": recipenumberReview \n                },\n                \"prepTime\": recipePrepTime ,\n                \"cookTime\": recipeCookTime ,\n                \"totalTime\": recipeTotalTime ,\n                \"recipeYield\": recipeAveRating ,\n                \"recipeIngredient\": recipeIngredients,\n                \"recipeInstructions\": recipeInstructions ,\n                \"nutrition\": {\n                    \"@type\": \"NutritionInformation\",\n                    \"calories\": recipeCalories ,\n                    \"fatContent\": recipeFatContent \n                }\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":1464124,"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-Recipe-2-600x400.png","acf":[],"featured_image_src_square":"https:\/\/davidcarralon.com\/wp-content\/uploads\/Schema-Recipe-2-600x600.png","_links":{"self":[{"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/pages\/1513928","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=1513928"}],"version-history":[{"count":1,"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/pages\/1513928\/revisions"}],"predecessor-version":[{"id":1513929,"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/pages\/1513928\/revisions\/1513929"}],"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\/1464124"}],"wp:attachment":[{"href":"https:\/\/davidcarralon.com\/fr\/wp-json\/wp\/v2\/media?parent=1513928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}