{"id":130710,"date":"2018-06-29T15:18:38","date_gmt":"2018-06-29T15:18:38","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=130710"},"modified":"2023-01-11T12:04:59","modified_gmt":"2023-01-11T12:04:59","slug":"how-to-get-customer-data-from-session-when-cache-enabled","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/","title":{"rendered":"How to Get Customer Data from Session When Cache Enabled"},"content":{"rendered":"<p>In this post we will see how we can get the customer specific data when cache is enabled. Before directly jumping to the code lets just try to learn why we don&#8217;t get the customer id from session when the Cache is enabled.<\/p>\n<p>If you view the\u00a0vendor\/magento\/module-customer\/etc\/frontend\/di.xml file, you can find the following plugin declaration:<\/p>\n<pre class=\"brush:xml\">&lt;type name=\"Magento\\Framework\\View\\Layout\"&gt;\n     &lt;plugin name=\"customer-session-depersonalize\"\n                type=\"Magento\\Customer\\Model\\Layout\\DepersonalizePlugin\" sortOrder=\"10\"\/&gt;\n&lt;\/type&gt;<\/pre>\n<p>Check this plugin and you will find that in afterGenerateXml() function has been cleared.<\/p>\n<pre class=\"brush:php\">public function afterGenerateXml(\\Magento\\Framework\\View\\LayoutInterface $subject, $result)\n    {\n        if ($this-&gt;depersonalizeChecker-&gt;checkIfDepersonalize($subject)) {\n            $this-&gt;visitor-&gt;setSkipRequestLogging(true);\n            $this-&gt;visitor-&gt;unsetData();\n            $this-&gt;session-&gt;clearStorage();\n            $this-&gt;customerSession-&gt;clearStorage();\n            $this-&gt;session-&gt;setData(\\Magento\\Framework\\Data\\Form\\FormKey::FORM_KEY, $this-&gt;formKey);\n            $this-&gt;customerSession-&gt;setCustomerGroupId($this-&gt;customerGroupId);\n            $this-&gt;customerSession-&gt;setCustomer($this-&gt;customerFactory-&gt;create()-&gt;setGroupId($this-&gt;customerGroupId));\n        }\n        return $result;\n    }<\/pre>\n<p>Because of this you didn&#8217;t get the customerId from session when cache is enabled.<\/p>\n<p>Now, we will see How to get the customerId when cache is enabled.<\/p>\n<p>We will create context variable to save the customer Id.<\/p>\n<p>For this, we will create plugin on the AbstractAction and will set the customerId.<\/p>\n<pre class=\"brush:xml\">&lt;!-- File: Namespace\/Yourmodule\/etc\/frontend\/di.xml --&gt;\n&lt;?xml version=\"1.0\"?&gt;\n&lt;!--\n\/**\n * Webkul Software.\n *\n * @category  Webkul\n * @author    Webkul\n * @copyright Copyright (c) 2010-2018 Webkul Software Private Limited (https:\/\/webkul.com)\n * @license   https:\/\/store.webkul.com\/license.html\n *\/\n --&gt;\n&lt;config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:ObjectManager\/etc\/config.xsd\"&gt;\n    &lt;type name=\"Magento\\Framework\\App\\Action\\AbstractAction\"&gt;\n        &lt;plugin name=\"wk-abstractaction-context-plugin\" type=\"Namespace\\Yourmodule\\Plugin\\App\\Action\\Context\" sortOrder=\"15\"\/&gt;\n    &lt;\/type&gt;\n&lt;\/config&gt;\n<\/pre>\n<p>Now, create plugin file.<\/p>\n<pre class=\"brush:php\">&lt;?php\nnamespace NameSpace\\Yourmodule\\Plugin\\App\\Action;\n\n\nclass Context\n{\n    \/**\n     * @var \\Magento\\Customer\\Model\\Session\n     *\/\n    protected $customerSession;\n\n    \/**\n     * @var \\Magento\\Framework\\App\\Http\\Context\n     *\/\n    protected $httpContext;\n\n    \/**\n     * @param \\Magento\\Customer\\Model\\Session $customerSession\n     * @param \\Magento\\Framework\\App\\Http\\Context $httpContext\n     *\/\n    public function __construct(\n        \\Magento\\Customer\\Model\\Session $customerSession,\n        \\Magento\\Framework\\App\\Http\\Context $httpContext\n    ) {\n        $this-&gt;customerSession = $customerSession;\n        $this-&gt;httpContext = $httpContext;\n    }\n\n    \/**\n     * @param \\Magento\\Framework\\App\\ActionInterface $subject\n     * @param callable $proceed\n     * @param \\Magento\\Framework\\App\\RequestInterface $request\n     * @return mixed\n     *\/\n    public function aroundDispatch(\n        \\Magento\\Framework\\App\\ActionInterface $subject,\n        \\Closure $proceed,\n        \\Magento\\Framework\\App\\RequestInterface $request\n    ) {\n        $this-&gt;httpContext-&gt;setValue(\n            'customer_id',\n            $this-&gt;customerSession-&gt;getCustomerId(),\n            false\n        );\n\n        return $proceed($request);\n    }\n}<\/pre>\n<p>Now, you can get the customer Id in Helper like:<\/p>\n<pre class=\"brush:php\">&lt;?php\nnamespace NameSpace\\Yourmodule\\Helper;\n\nclass Data extends \\Magento\\Framework\\App\\Helper\\AbstractHelper\n{\n\n    protected $httpContext;\n\n    \/**\n     * @param \\Magento\\Framework\\App\\Helper\\Context $context\n     * @param \\Magento\\Framework\\App\\Http\\Context $httpContext\n     *\/\n    public function __construct(\n        \\Magento\\Framework\\App\\Helper\\Context $context,\n        \\Magento\\Framework\\App\\Http\\Context $httpContext\n    ) {\n        $this-&gt;httpContext = $httpContext;\n        parent::__construct($context);\n    }\n\n    \/**\n     * function to get customer id from context\n     *\n     * @return int customerId\n     *\/\n    public function getCustomerId() {\n        return $this-&gt;httpContext-&gt;getValue('customer_id');\n    }\n}\n<\/pre>\n<p>For further reading on the use of context variables check the Magento doc <a href=\"https:\/\/devdocs.magento.com\/guides\/v2.3\/extension-dev-guide\/cache\/page-caching\/public-content.html\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>. Hope this will help you in implementing your logics. For any query, do let me know in the comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post we will see how we can get the customer specific data when cache is enabled. Before directly jumping to the code lets just try to learn why we don&#8217;t get the customer id from session when the Cache is enabled. If you view the\u00a0vendor\/magento\/module-customer\/etc\/frontend\/di.xml file, you can find the following plugin declaration: <a href=\"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":451,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,302],"tags":[2460,2718,6977],"class_list":["post-130710","post","type-post","status-publish","format-standard","hentry","category-magento","category-magento2","tag-magento-2","tag-magento2-cache","tag-varnish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Get Customer Data from Session When Cache Enabled - Webkul Blog<\/title>\n<meta name=\"description\" content=\"get customer id from session when cache is enabled in magento 2 varnish cache\" \/>\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-get-customer-data-from-session-when-cache-enabled\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Get Customer Data from Session When Cache Enabled - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"get customer id from session when cache is enabled in magento 2 varnish cache\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/\" \/>\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=\"2018-06-29T15:18:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-11T12:04:59+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=\"Anupam Rastogi\" \/>\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=\"Anupam Rastogi\" \/>\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-get-customer-data-from-session-when-cache-enabled\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/\"},\"author\":{\"name\":\"Anupam Rastogi\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/4cad4a620cf2ba97641cde049b05b611\"},\"headline\":\"How to Get Customer Data from Session When Cache Enabled\",\"datePublished\":\"2018-06-29T15:18:38+00:00\",\"dateModified\":\"2023-01-11T12:04:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/\"},\"wordCount\":185,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\"Magento 2\",\"magento2 cache\",\"varnish\"],\"articleSection\":[\"magento\",\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/\",\"name\":\"How to Get Customer Data from Session When Cache Enabled - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2018-06-29T15:18:38+00:00\",\"dateModified\":\"2023-01-11T12:04:59+00:00\",\"description\":\"get customer id from session when cache is enabled in magento 2 varnish cache\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Get Customer Data from Session When Cache Enabled\"}]},{\"@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\/4cad4a620cf2ba97641cde049b05b611\",\"name\":\"Anupam Rastogi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9d600bc915429f53470a78d15d736cc2ec8b59c57b88a97fa55b0cd51124faa7?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\/9d600bc915429f53470a78d15d736cc2ec8b59c57b88a97fa55b0cd51124faa7?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Anupam Rastogi\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/anupam-rastogi694\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Get Customer Data from Session When Cache Enabled - Webkul Blog","description":"get customer id from session when cache is enabled in magento 2 varnish cache","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-get-customer-data-from-session-when-cache-enabled\/","og_locale":"en_US","og_type":"article","og_title":"How to Get Customer Data from Session When Cache Enabled - Webkul Blog","og_description":"get customer id from session when cache is enabled in magento 2 varnish cache","og_url":"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2018-06-29T15:18:38+00:00","article_modified_time":"2023-01-11T12:04:59+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":"Anupam Rastogi","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Anupam Rastogi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/"},"author":{"name":"Anupam Rastogi","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/4cad4a620cf2ba97641cde049b05b611"},"headline":"How to Get Customer Data from Session When Cache Enabled","datePublished":"2018-06-29T15:18:38+00:00","dateModified":"2023-01-11T12:04:59+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/"},"wordCount":185,"commentCount":3,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":["Magento 2","magento2 cache","varnish"],"articleSection":["magento","Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/","url":"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/","name":"How to Get Customer Data from Session When Cache Enabled - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2018-06-29T15:18:38+00:00","dateModified":"2023-01-11T12:04:59+00:00","description":"get customer id from session when cache is enabled in magento 2 varnish cache","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-get-customer-data-from-session-when-cache-enabled\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Get Customer Data from Session When Cache Enabled"}]},{"@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\/4cad4a620cf2ba97641cde049b05b611","name":"Anupam Rastogi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9d600bc915429f53470a78d15d736cc2ec8b59c57b88a97fa55b0cd51124faa7?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\/9d600bc915429f53470a78d15d736cc2ec8b59c57b88a97fa55b0cd51124faa7?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Anupam Rastogi"},"url":"https:\/\/webkul.com\/blog\/author\/anupam-rastogi694\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/130710","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\/451"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=130710"}],"version-history":[{"count":6,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/130710\/revisions"}],"predecessor-version":[{"id":364172,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/130710\/revisions\/364172"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=130710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=130710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=130710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}