{"id":387597,"date":"2023-06-28T09:55:31","date_gmt":"2023-06-28T09:55:31","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=387597"},"modified":"2023-06-28T13:54:54","modified_gmt":"2023-06-28T13:54:54","slug":"how-to-use-redis-for-api-caching","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/","title":{"rendered":"How to use Redis for Api Caching"},"content":{"rendered":"\n<p>In this article, we&#8217;ll explore how to use Redis for Api Caching and what it really mean.<\/p>\n\n\n\n<p>Redis is an open-source, in-memory data store that provides high-performance caching capabilities. Its key-value store structure makes it an ideal choice for caching frequently accessed API responses. Let&#8217;s delve into the steps to implement Redis for API caching in your application.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installing Redis<\/h3>\n\n\n\n<p>Start by installing Redis on your server or using a managed Redis service. Follow the instructions below to install Redis:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>For Linux users, run the following commands:<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\">sudo apt update\nsudo apt install redis-server<\/pre>\n\n\n\n<p>    2. For macOS users, use Homebrew:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">brew install redis<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Configuring Redis<\/h3>\n\n\n\n<p>Once installed, configure and start the Redis server. Adjust the configuration according to your requirements, such as memory limits and persistence options. Refer to the <a href=\"https:\/\/redis.io\/docs\/\">Redis documentation<\/a> for detailed configuration instructions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Integrating Redis for Api Caching<\/h2>\n\n\n\n<p><strong>Connecting to Redis<\/strong><\/p>\n\n\n\n<p>Before you can start caching API responses with Redis, establish a connection to the Redis server. Here&#8217;s an example using the popular Redis client library for Node.js, <code>redis<\/code>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">const redis = require(&#039;redis&#039;);\nconst client = redis.createClient();\n\n\/\/ Test the Redis connection\nclient.ping((err, result) =&gt; {\n  if (err) {\n    console.error(&#039;Failed to connect to Redis:&#039;, err);\n  } else {\n    console.log(&#039;Connected to Redis&#039;);\n  }\n});<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p><strong>Caching Api Responses<\/strong><\/p>\n\n\n\n<p>To cache API responses, you need to check if the data exists in Redis before making expensive database or external API calls. Here&#8217;s an example of caching an API response in Node.js:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">function getCachedDataFromRedis(key) {\n  return new Promise((resolve, reject) =&gt; {\n    client.get(key, (err, cachedData) =&gt; {\n      if (err) {\n        reject(err);\n      } else {\n        resolve(cachedData ? JSON.parse(cachedData) : null);\n      }\n    });\n  });\n}\n\nfunction cacheApiResponse(key, data, expirationSeconds) {\n  client.setex(key, expirationSeconds, JSON.stringify(data));\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Cache Invalidation<\/h3>\n\n\n\n<p>Implement cache invalidation mechanisms to update or remove cached items when the underlying data changes. Here&#8217;s an example of cache invalidation in Node.js:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">function invalidateCache(key) {\n  client.del(key);\n}<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h3 class=\"wp-block-heading\">Setting Cache Control Headers<\/h3>\n\n\n\n<p>In addition to Redis caching, it&#8217;s important to set appropriate cache control headers in your API responses. Here&#8217;s an example of setting cache control headers in a PHP application:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">header(&#039;Cache-Control: public, max-age=3600&#039;); \/\/ Cache the response for 1 hour\nheader(&#039;Expires: &#039; . gmdate(&#039;D, d M Y H:i:s&#039;, time() + 3600) . &#039; GMT&#039;); \/\/ Set the expiration time<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Expiration Time for Cached Items<\/h3>\n\n\n\n<p>Set an appropriate expiration time for each cached item based on its volatility. Consider factors such as data freshness requirements and frequency of updates. Adjust the <code>expirationSeconds<\/code> parameter in the <code>cacheApiResponse<\/code> function from Step 2 accordingly.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h3 class=\"wp-block-heading\">Monitoring Redis Performance<\/h3>\n\n\n\n<p>Regularly monitor the performance and effectiveness of your Redis cache. Utilize Redis monitoring tools or integrate Redis with your existing monitoring and alerting systems. Here&#8217;s an example of monitoring Redis using the <code>redis-cli<\/code> command-line tool:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">redis-cli monitor<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Analyzing Cache Hit Rate and Memory Usage<\/h3>\n\n\n\n<p>Analyze cache hit rate, response times, and memory usage to identify potential optimization opportunities. Use Redis commands like <code>INFO<\/code> and <code>MEMORY STATS<\/code> to gather relevant statistics and monitor the performance of your cache.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>By utilizing Redis for API caching, you can significantly enhance the performance and scalability of your API.  Implementing Redis for API caching allows you to leverage the power of in-memory storage and optimize your API infrastructure.<\/p>\n\n\n\n<p>Remember to adapt the code snippets provided to your specific programming language and Redis client library. With Redis as your caching solution, you can unlock the benefits of efficient API responses and better user experiences.<\/p>\n<\/blockquote>\n\n\n\n<p>We hope this article has provided you with valuable insights into using Redis for API caching. Start implementing Redis caching in your applications and enjoy the benefits of enhanced performance and scalability. <\/p>\n\n\n\n<p>So, that was much about how to use Redis for Api caching. If you need custom&nbsp;<a href=\"https:\/\/webkul.com\/cs-cart-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">CS-Cart Development services<\/a>&nbsp;then feel free to&nbsp;<a href=\"https:\/\/webkul.com\/contacts\" target=\"_blank\" rel=\"noreferrer noopener\">reach us<\/a>&nbsp;and also explore our exclusive range of&nbsp;<a href=\"https:\/\/store.webkul.com\/CS-Cart.html\" target=\"_blank\" rel=\"noreferrer noopener\">CS-Cart Addons<\/a>.<br>!!Have a Great Day Ahead!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we&#8217;ll explore how to use Redis for Api Caching and what it really mean. Redis is an open-source, in-memory data store that provides high-performance caching capabilities. Its key-value store structure makes it an ideal choice for caching frequently accessed API responses. Let&#8217;s delve into the steps to implement Redis for API caching <a href=\"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":480,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1173],"tags":[292,1316,5282],"class_list":["post-387597","post","type-post","status-publish","format-standard","hentry","category-api-2","tag-api","tag-redis","tag-redis-cache"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to use Redis for Api Caching - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Discover how to use Redis for API caching to optimize response times, reduce server load, and improve overall API performance.\" \/>\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-use-redis-for-api-caching\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use Redis for Api Caching - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Discover how to use Redis for API caching to optimize response times, reduce server load, and improve overall API performance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/\" \/>\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=\"2023-06-28T09:55:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-28T13:54:54+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=\"Prashant Bisht\" \/>\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=\"Prashant Bisht\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 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-use-redis-for-api-caching\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/\"},\"author\":{\"name\":\"Prashant Bisht\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/97d715f8b3484277df4f66e20d11a5ed\"},\"headline\":\"How to use Redis for Api Caching\",\"datePublished\":\"2023-06-28T09:55:31+00:00\",\"dateModified\":\"2023-06-28T13:54:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/\"},\"wordCount\":522,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\"api\",\"redis\",\"redis cache\"],\"articleSection\":[\"API\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/\",\"name\":\"How to use Redis for Api Caching - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2023-06-28T09:55:31+00:00\",\"dateModified\":\"2023-06-28T13:54:54+00:00\",\"description\":\"Discover how to use Redis for API caching to optimize response times, reduce server load, and improve overall API performance.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use Redis for Api Caching\"}]},{\"@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\/97d715f8b3484277df4f66e20d11a5ed\",\"name\":\"Prashant Bisht\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/461cd2edae22243f943bf09cb376ba109a0cdaf72da0374135fa6cf2566976ed?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\/461cd2edae22243f943bf09cb376ba109a0cdaf72da0374135fa6cf2566976ed?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Prashant Bisht\"},\"description\":\"CS-Cart developer with expertise in SAAS and jQuery. He specializes in CS-Cart Payment and Shipping Integration Services, App Development, and React development. Prashant delivers innovative and efficient solutions that enhance e-commerce functionality and drive business growth.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/prashantbisht-cscart490\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use Redis for Api Caching - Webkul Blog","description":"Discover how to use Redis for API caching to optimize response times, reduce server load, and improve overall API performance.","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-use-redis-for-api-caching\/","og_locale":"en_US","og_type":"article","og_title":"How to use Redis for Api Caching - Webkul Blog","og_description":"Discover how to use Redis for API caching to optimize response times, reduce server load, and improve overall API performance.","og_url":"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-06-28T09:55:31+00:00","article_modified_time":"2023-06-28T13:54:54+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":"Prashant Bisht","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Prashant Bisht","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/"},"author":{"name":"Prashant Bisht","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/97d715f8b3484277df4f66e20d11a5ed"},"headline":"How to use Redis for Api Caching","datePublished":"2023-06-28T09:55:31+00:00","dateModified":"2023-06-28T13:54:54+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/"},"wordCount":522,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":["api","redis","redis cache"],"articleSection":["API"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/","url":"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/","name":"How to use Redis for Api Caching - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2023-06-28T09:55:31+00:00","dateModified":"2023-06-28T13:54:54+00:00","description":"Discover how to use Redis for API caching to optimize response times, reduce server load, and improve overall API performance.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-use-redis-for-api-caching\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to use Redis for Api Caching"}]},{"@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\/97d715f8b3484277df4f66e20d11a5ed","name":"Prashant Bisht","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/461cd2edae22243f943bf09cb376ba109a0cdaf72da0374135fa6cf2566976ed?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\/461cd2edae22243f943bf09cb376ba109a0cdaf72da0374135fa6cf2566976ed?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Prashant Bisht"},"description":"CS-Cart developer with expertise in SAAS and jQuery. He specializes in CS-Cart Payment and Shipping Integration Services, App Development, and React development. Prashant delivers innovative and efficient solutions that enhance e-commerce functionality and drive business growth.","url":"https:\/\/webkul.com\/blog\/author\/prashantbisht-cscart490\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/387597","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\/480"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=387597"}],"version-history":[{"count":9,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/387597\/revisions"}],"predecessor-version":[{"id":388843,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/387597\/revisions\/388843"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=387597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=387597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=387597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}