{"id":257606,"date":"2020-07-06T05:07:05","date_gmt":"2020-07-06T05:07:05","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=257606"},"modified":"2023-04-04T10:29:13","modified_gmt":"2023-04-04T10:29:13","slug":"how-to-upload-media-through-url-in-shopware6","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/","title":{"rendered":"How to upload media through URL in Shopware 6"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>In this article we learn about how to upload media through URL in Shopware 6. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Media Upload Method<\/h2>\n\n\n\n<p>Collect the Media URL in an array and create a media repository. We need to add to services FileFetcher and FileSaver , if you are in custom service then also register &nbsp;&nbsp;ContinerInterface.<\/p>\n\n\n\n<p>We recommended the following &nbsp;<a href=\"https:\/\/docs.shopware.com\/en\/shopware-platform-dev-en\/how-to\/custom-storefront-controller\">p<\/a>rocessor  <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nnamespace Webkul\\BulkUpload\\Services;\n\nuse Psr\\Container\\ContainerInterface;\nuse Shopware\\Core\\Content\\Media\\File\\FileFetcher;\nuse Shopware\\Core\\Content\\Media\\File\\FileSaver;\nuse Shopware\\Core\\Framework\\Context;\nuse Shopware\\Core\\Framework\\DataAbstractionLayer\\Search\\Criteria;\nuse Shopware\\Core\\Framework\\DataAbstractionLayer\\Search\\Filter\\EqualsFilter;\nuse Shopware\\Core\\Framework\\Uuid\\Uuid;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nclass BulkUploadHelper \n{\n    private $container;\n    protected $fileFetcher;\n    protected $fileSaver;\n\n    public function __construct(\n        ContainerInterface $container,\n        FileFetcher $fileFetcher,\n        FileSaver $fileSaver\n    )\n    {\n        $this-&gt;container = $container;\n        $this-&gt;fileFetcher = $fileFetcher;\n        $this-&gt;fileSaver = $fileSaver;\n    }\n\n    public function uploadBulkImages($urlCollection, $salesChannelContext){\n        $context = Context::createDefaultContext();\n        $mediaRepository = $this-&gt;container-&gt;get(&#039;media.repository&#039;);\n        $mediaIds = &#091;];\n        foreach($urlCollection as $url) {\n            $ext = pathinfo($url, PATHINFO_EXTENSION);\n            $fileName = basename($url, $ext);\n            \n            $request = new Request(&#091;&#039;extension&#039; =&gt; $ext], &#091;&#039;url&#039; =&gt; $url]);\n            $tempFile = tempnam(sys_get_temp_dir(), &#039;&#039;);\n            $file = $this-&gt;fileFetcher-&gt;fetchFileFromURL($request, $tempFile);\n            $explodedFileName = explode(&#039;.&#039;, $fileName);\n            unset($explodedFileName&#091;count($explodedFileName) - 1]);\n            $fileName = $salesChannelContext-&gt;getCustomer()-&gt;getId() . &#039;_&#039; . implode(&#039;.&#039;, $explodedFileName);\n            $searchMedia = $mediaRepository-&gt;search((new Criteria())-&gt;addFilter(new EqualsFilter(&#039;fileName&#039;, $fileName)),$context)-&gt;first();\n            if(!$searchMedia){\n           \n                $mediaId = Uuid::randomHex();\n                $media = &#091;\n                    &#091;\n                        &#039;id&#039; =&gt; $mediaId,\n                        &#039;fileSize&#039; =&gt; $file-&gt;getFileSize(),\n                        &#039;fileName&#039; =&gt; $fileName,\n                        &#039;mimeType&#039; =&gt; $file-&gt;getMimeType(),\n                        &#039;fileExtension&#039; =&gt; $ext,\n                    ]\n                ];\n\n                $mediaId = $mediaRepository-&gt;create($media, Context::createDefaultContext())\n                    -&gt;getEvents()\n                    -&gt;getElements()&#091;1]\n                    -&gt;getIds()&#091;0];\n                if (is_array($mediaId)) {\n                    $mediaId = $mediaId&#091;&#039;mediaId&#039;];\n                }\n            \n                try {\n                    $this-&gt;upload($file, $fileName, $mediaId);\n                } catch (\\Exception $exception) {\n                    $fileName = $fileName . $mediaId;\n                    $this-&gt;upload($file, $fileName, $mediaId);\n                }\n                array_push($mediaIds, &#091;\n                    &#039;id&#039; =&gt; $mediaId,\n                    &#039;title&#039; =&gt; $fileName\n                ]);\n            }\n\n        }\n        return $mediaIds;\n    }\n    public function upload($file, $fileName, $mediaId)\n    {   \n        $this-&gt;fileSaver-&gt;persistFileToMedia(\n            $file, \n            $fileName,\n            $mediaId,\n            Context::createDefaultContext()\n        );\n    }\n\n}<\/pre>\n\n\n\n<p>In the above code we create a service for image upload, first of all we need to register our service into seervice.xml file for access globally. then pass argument into service, find below service.xml code..<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;service id=&quot;bulkUpload.helper&quot; class=&quot;Webkul\\BulkUpload\\Services\\BulkUploadHelper&quot; public=&quot;true&quot;&gt;\n   &lt;argument type=&quot;service&quot; id=&quot;service_container&quot; \/&gt;\n   &lt;argument type=&quot;service&quot; id=&quot;Shopware\\Core\\Content\\Media\\File\\FileFetcher&quot;\/&gt;\n    &lt;argument type=&quot;service&quot; id=&quot;Shopware\\Core\\Content\\Media\\File\\FileSaver&quot;\/&gt;\n &lt;\/service&gt;<\/pre>\n\n\n\n<p>passing service container, FileFetcher and FileSaver predefined services into our custom service. first of all define these service into class service constructor function for further use in our function.then create a function for upload media URL for Shopware6. Create default context object then create media repository from container. After this get extension of URL by this code <em>pathinfo($url, PATHINFO_EXTENSION)<\/em>, then get filename from this method <em>basename($url, $ext)<\/em>. Further create request object through URL and extension by this way <em>new Request([&#8216;extension&#8217; =&gt; $ext], [&#8216;url&#8217; =&gt; $url]);<\/em> and get tempFile of the image from this method<em> tempnam(sys_get_temp_dir(), &#8221;);<\/em><\/p>\n\n\n\n<p>Through FileFetcher we can get the file object of URL passing request and tempFile.<\/p>\n\n\n\n<p>I hope it will help you. Thanks for reading \ud83d\ude42<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview In this article we learn about how to upload media through URL in Shopware 6. Media Upload Method Collect the Media URL in an array and create a media repository. We need to add to services FileFetcher and FileSaver , if you are in custom service then also register &nbsp;&nbsp;ContinerInterface. We recommended the following <a href=\"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":325,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-257606","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>how to upload media url in Shopware6 | Shopware6 media upload<\/title>\n<meta name=\"description\" content=\"how to upload media thrugh url in Shopware6 | Upload media by URL in shopware6| Shopware6 Media upload by URL| Uploading Media in Shopware6\" \/>\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\/how-to-upload-media-through-url-in-shopware6\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"how to upload media url in Shopware6 | Shopware6 media upload\" \/>\n<meta property=\"og:description\" content=\"how to upload media thrugh url in Shopware6 | Upload media by URL in shopware6| Shopware6 Media upload by URL| Uploading Media in Shopware6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-06T05:07:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-04T10:29:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Prince Gupta\" \/>\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=\"Prince Gupta\" \/>\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\/how-to-upload-media-through-url-in-shopware6\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/\"},\"author\":{\"name\":\"Prince Gupta\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/669b7c5067f73a7ae2204ff4aca829fd\"},\"headline\":\"How to upload media through URL in Shopware 6\",\"datePublished\":\"2020-07-06T05:07:05+00:00\",\"dateModified\":\"2023-04-04T10:29:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/\"},\"wordCount\":230,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/\",\"name\":\"how to upload media url in Shopware6 | Shopware6 media upload\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2020-07-06T05:07:05+00:00\",\"dateModified\":\"2023-04-04T10:29:13+00:00\",\"description\":\"how to upload media thrugh url in Shopware6 | Upload media by URL in shopware6| Shopware6 Media upload by URL| Uploading Media in Shopware6\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to upload media through URL in Shopware 6\"}]},{\"@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\/669b7c5067f73a7ae2204ff4aca829fd\",\"name\":\"Prince Gupta\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dd55a986709c72a714a8135a38f3b2cba1009ea371caec823a8547b2e01df18d?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\/dd55a986709c72a714a8135a38f3b2cba1009ea371caec823a8547b2e01df18d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Prince Gupta\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/princegupta-wp031\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"how to upload media url in Shopware6 | Shopware6 media upload","description":"how to upload media thrugh url in Shopware6 | Upload media by URL in shopware6| Shopware6 Media upload by URL| Uploading Media in Shopware6","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\/how-to-upload-media-through-url-in-shopware6\/","og_locale":"en_US","og_type":"article","og_title":"how to upload media url in Shopware6 | Shopware6 media upload","og_description":"how to upload media thrugh url in Shopware6 | Upload media by URL in shopware6| Shopware6 Media upload by URL| Uploading Media in Shopware6","og_url":"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2020-07-06T05:07:05+00:00","article_modified_time":"2023-04-04T10:29:13+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Prince Gupta","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Prince Gupta","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/"},"author":{"name":"Prince Gupta","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/669b7c5067f73a7ae2204ff4aca829fd"},"headline":"How to upload media through URL in Shopware 6","datePublished":"2020-07-06T05:07:05+00:00","dateModified":"2023-04-04T10:29:13+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/"},"wordCount":230,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/","url":"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/","name":"how to upload media url in Shopware6 | Shopware6 media upload","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2020-07-06T05:07:05+00:00","dateModified":"2023-04-04T10:29:13+00:00","description":"how to upload media thrugh url in Shopware6 | Upload media by URL in shopware6| Shopware6 Media upload by URL| Uploading Media in Shopware6","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-upload-media-through-url-in-shopware6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to upload media through URL in Shopware 6"}]},{"@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\/669b7c5067f73a7ae2204ff4aca829fd","name":"Prince Gupta","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/dd55a986709c72a714a8135a38f3b2cba1009ea371caec823a8547b2e01df18d?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\/dd55a986709c72a714a8135a38f3b2cba1009ea371caec823a8547b2e01df18d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Prince Gupta"},"url":"https:\/\/webkul.com\/blog\/author\/princegupta-wp031\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/257606","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\/325"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=257606"}],"version-history":[{"count":9,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/257606\/revisions"}],"predecessor-version":[{"id":375459,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/257606\/revisions\/375459"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=257606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=257606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=257606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}