{"id":41833,"date":"2016-02-24T10:29:54","date_gmt":"2016-02-24T10:29:54","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=41833"},"modified":"2016-11-21T07:32:05","modified_gmt":"2016-11-21T07:32:05","slug":"magento2-programmatically-create-product","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/","title":{"rendered":"Magento2 \u2013 Programmatically Create Product"},"content":{"rendered":"<h3>Create Product Programatically<\/h3>\n<p><strong>Here we will see how to create product in magento2 with given data. <\/strong><br \/>\nUse following code to programmatically create product in magento2.<\/p>\n<pre class=\"brush:php\">\t\t$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance(); \/\/ instance of object manager\r\n\t\t$product = $objectManager-&gt;create('\\Magento\\Catalog\\Model\\Product');\r\n\t\t$product-&gt;setSku('sku'); \/\/ Set your sku here\r\n\t\t$product-&gt;setName('Sample Product'); \/\/ Name of Product\r\n\t\t$product-&gt;setAttributeSetId(4); \/\/ Attribute set id\r\n\t\t$product-&gt;setStatus(1); \/\/ Status on product enabled\/ disabled 1\/0\r\n\t\t$product-&gt;setWeight(10); \/\/ weight of product\r\n\t\t$product-&gt;setVisibility(4); \/\/ visibilty of product (catalog \/ search \/ catalog, search \/ Not visible individually)\r\n\t\t$product-&gt;setTaxClassId(0); \/\/ Tax class id\r\n\t\t$product-&gt;setTypeId('simple'); \/\/ type of product (simple\/virtual\/downloadable\/configurable)\r\n\t\t$product-&gt;setPrice(100); \/\/ price of product\r\n\t\t$product-&gt;setStockData(\r\n\t\t\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\t\t'use_config_manage_stock' =&gt; 0,\r\n\t\t\t\t\t\t\t\t\t'manage_stock' =&gt; 1,\r\n\t\t\t\t\t\t\t\t\t'is_in_stock' =&gt; 1,\r\n\t\t\t\t\t\t\t\t\t'qty' =&gt; 999999999\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t);\r\n\t\t$product-&gt;save();\r\n\r\n\t\t\/\/ Adding Image to product\r\n\t\t$imagePath = \"sample.jpg\"; \/\/ path of the image\r\n\t\t$product-&gt;addImageToMediaGallery($imagePath, array('image', 'small_image', 'thumbnail'), false, false);\r\n\t\t$product-&gt;save();\r\n\t\t\r\n\t\t\/\/ Adding Custom option to product\r\n\t\t$options = array(\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"sort_order\"    =&gt; 1,\r\n\t\t\t\t\t\t\t\"title\"         =&gt; \"Custom Option 1\",\r\n\t\t\t\t\t\t\t\"price_type\"    =&gt; \"fixed\",\r\n\t\t\t\t\t\t\t\"price\"         =&gt; \"10\",\r\n\t\t\t\t\t\t\t\"type\"          =&gt; \"field\",\r\n\t\t\t\t\t\t\t\"is_require\"   =&gt; 0\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"sort_order\"    =&gt; 2,\r\n\t\t\t\t\t\t\t\"title\"         =&gt; \"Custom Option 2\",\r\n\t\t\t\t\t\t\t\"price_type\"    =&gt; \"fixed\",\r\n\t\t\t\t\t\t\t\"price\"         =&gt; \"20\",\r\n\t\t\t\t\t\t\t\"type\"          =&gt; \"field\",\r\n\t\t\t\t\t\t\t\"is_require\"   =&gt; 0\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t);\r\n\t\tforeach ($options as $arrayOption) {\r\n\t\t\t$product-&gt;setHasOptions(1);\r\n\t\t\t$product-&gt;getResource()-&gt;save($product);\r\n\t\t\t$option = $objectManager-&gt;create('\\Magento\\Catalog\\Model\\Product\\Option')\r\n\t\t\t\t\t\t\t-&gt;setProductId($product-&gt;getId())\r\n\t\t\t\t\t\t\t-&gt;setStoreId($product-&gt;getStoreId())\r\n\t\t\t\t\t\t\t-&gt;addData($arrayOption);\r\n\t\t\t$option-&gt;save();\r\n\t\t\t$product-&gt;addOption($option);\r\n\t\t}<\/pre>\n<p><strong>Note: <\/strong> There are some points you need to remember when using this code snippet.<\/p>\n<p>1- If you want to create configurable product then you have to assign associated product to current product otherwise it will create simple product. <a href=\"http:\/\/webkul.com\/blog\/magento2-assign-existing-associated-products-to-configurable-product\/\" target=\"_blank\"> See here how to add associated products.<\/a><\/p>\n<p>2- If you do not set weight, it will create simple product.<\/p>\n<p>3- If you want to create downloadable product then you have to add download links to current product otherwise it will create virtual\/simple product.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create Product Programatically Here we will see how to create product in magento2 with given data. Use following code to programmatically create product in magento2. $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance(); \/\/ instance of object manager $product = $objectManager-&gt;create(&#8216;\\Magento\\Catalog\\Model\\Product&#8217;); $product-&gt;setSku(&#8216;sku&#8217;); \/\/ Set your sku here $product-&gt;setName(&#8216;Sample Product&#8217;); \/\/ Name of Product $product-&gt;setAttributeSetId(4); \/\/ Attribute set id $product-&gt;setStatus(1); \/\/ <a href=\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":21,"featured_media":65095,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[2070,2783],"class_list":["post-41833","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento2","tag-magento2","tag-programmatically-create-product"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create Product, Add Product Programatically in Magento2<\/title>\n<meta name=\"description\" content=\"Magento2 \u2013 Programmatically Create Product, Create Product in Magento 2, Create product from frontend magento2, Create Simple Product Create Virtual Product\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Product, Add Product Programatically in Magento2\" \/>\n<meta property=\"og:description\" content=\"Magento2 \u2013 Programmatically Create Product, Create Product in Magento 2, Create product from frontend magento2, Create Simple Product Create Virtual Product\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rahul0989\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-24T10:29:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-11-21T07:32:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magneto-Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rahul Mahto\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rahul Mahto\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/\"},\"author\":{\"name\":\"Rahul Mahto\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f\"},\"headline\":\"Magento2 \u2013 Programmatically Create Product\",\"datePublished\":\"2016-02-24T10:29:54+00:00\",\"dateModified\":\"2016-11-21T07:32:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/\"},\"wordCount\":111,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magneto-Code-Snippet.png\",\"keywords\":[\"Magento2\",\"Programmatically Create Product\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/\",\"url\":\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/\",\"name\":\"Create Product, Add Product Programatically in Magento2\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magneto-Code-Snippet.png\",\"datePublished\":\"2016-02-24T10:29:54+00:00\",\"dateModified\":\"2016-11-21T07:32:05+00:00\",\"description\":\"Magento2 \u2013 Programmatically Create Product, Create Product in Magento 2, Create product from frontend magento2, Create Simple Product Create Virtual Product\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magneto-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magneto-Code-Snippet.png\",\"width\":825,\"height\":260,\"caption\":\"Create Product\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Magento2 \u2013 Programmatically Create Product\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f\",\"name\":\"Rahul Mahto\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Rahul Mahto\"},\"sameAs\":[\"http:\/\/webkul.com\",\"https:\/\/www.facebook.com\/rahul0989\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/rahul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Product, Add Product Programatically in Magento2","description":"Magento2 \u2013 Programmatically Create Product, Create Product in Magento 2, Create product from frontend magento2, Create Simple Product Create Virtual Product","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/","og_locale":"en_US","og_type":"article","og_title":"Create Product, Add Product Programatically in Magento2","og_description":"Magento2 \u2013 Programmatically Create Product, Create Product in Magento 2, Create product from frontend magento2, Create Simple Product Create Virtual Product","og_url":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_author":"https:\/\/www.facebook.com\/rahul0989","article_published_time":"2016-02-24T10:29:54+00:00","article_modified_time":"2016-11-21T07:32:05+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magneto-Code-Snippet.png","type":"image\/png"}],"author":"Rahul Mahto","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Rahul Mahto","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/"},"author":{"name":"Rahul Mahto","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f"},"headline":"Magento2 \u2013 Programmatically Create Product","datePublished":"2016-02-24T10:29:54+00:00","dateModified":"2016-11-21T07:32:05+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/"},"wordCount":111,"commentCount":3,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magneto-Code-Snippet.png","keywords":["Magento2","Programmatically Create Product"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/","url":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/","name":"Create Product, Add Product Programatically in Magento2","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magneto-Code-Snippet.png","datePublished":"2016-02-24T10:29:54+00:00","dateModified":"2016-11-21T07:32:05+00:00","description":"Magento2 \u2013 Programmatically Create Product, Create Product in Magento 2, Create product from frontend magento2, Create Simple Product Create Virtual Product","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magneto-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magneto-Code-Snippet.png","width":825,"height":260,"caption":"Create Product"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/magento2-programmatically-create-product\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Magento2 \u2013 Programmatically Create Product"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f","name":"Rahul Mahto","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Rahul Mahto"},"sameAs":["http:\/\/webkul.com","https:\/\/www.facebook.com\/rahul0989"],"url":"https:\/\/webkul.com\/blog\/author\/rahul\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/41833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=41833"}],"version-history":[{"count":23,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/41833\/revisions"}],"predecessor-version":[{"id":65096,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/41833\/revisions\/65096"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/65095"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=41833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=41833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=41833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}