

{"id":120862,"date":"2024-02-03T14:20:20","date_gmt":"2024-02-03T08:50:20","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=120862"},"modified":"2024-02-03T14:19:30","modified_gmt":"2024-02-03T08:49:30","slug":"strcmp-vs-strcmpi-in-c","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/","title":{"rendered":"Difference Between strcmp() and strcmpi() Function in C"},"content":{"rendered":"<p>String manipulation is a fundamental aspect of C programming, and one common task is comparing strings. Whether you&#8217;re searching for a specific substring, sorting a list of names, or validating user inputs, string comparison is at the heart of many operations.<\/p>\n<p>In C, two primary functions, strcmp() and strcmpi(), come into play when it comes to comparing strings, but they serve distinct purposes.<\/p>\n<p>The strcmp() function is a stalwart for case-sensitive string comparisons. It meticulously examines every character within two strings, discerning even the slightest variations. On the other hand, the strcmpi() function offers a more relaxed approach, performing case-insensitive comparisons, where &#8216;A&#8217; is equivalent to &#8216;a,&#8217; and &#8216;B&#8217; is equal to &#8216;b.&#8217;<\/p>\n<p>In this article, we&#8217;ll delve into the intricacies of these two C library functions, comparing their strengths and weaknesses. We&#8217;ll explore their usage, behavior, and the scenarios in which one should be chosen over the other.<\/p>\n<p>By the end, you&#8217;ll have a clear understanding of when to employ strcmp() and when strcmpi() is the better option for your string comparison needs. Let&#8217;s embark on this journey of understanding case-sensitive and case-insensitive string comparisons in the world of C programming.<\/p>\n<h2>The strcmp() Function in C<\/h2>\n<p>When comparing two strings, the strcmp() function takes into account case. Based on the ASCII value of each character, it compares strings character by character.<\/p>\n<p><strong>The syntax of strcmp() is:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int strcmp(const char *str1, const char *str2);<\/pre>\n<p><strong>It returns:<\/strong><\/p>\n<ul>\n<li>0 if both strings are equal<\/li>\n<li>A negative number if str1 &lt; str2<\/li>\n<li>A positive number if str1 &gt; str2<\/li>\n<\/ul>\n<p><strong>Let&#8217;s look at an example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\r\n#include &lt;string.h&gt;\r\n\r\nint main() {\r\n  char str1[15] = \"String1\";\r\n  char str2[15] = \"String2\";\r\n\r\n  int result = strcmp(str1, str2);\r\n\r\n  if(result &lt; 0) {\r\n    printf(\"str1 is less than str2\\n\"); \r\n  }\r\n  else if(result &gt; 0) {\r\n    printf(\"str1 is greater than str2\\n\");\r\n  }\r\n  else {\r\n    printf(\"str1 is equal to str2\\n\");\r\n  }\r\n  \r\n  return 0;\r\n}<\/pre>\n<p><strong>Output:<\/strong><br \/>\nstr1 is less than str2<\/p>\n<p>This prints &#8220;str1 is less than str2&#8221; as string comparison is case-sensitive.<\/p>\n<p><strong>Some key properties of strcmp():<\/strong><\/p>\n<ul>\n<li>Comparison is case-sensitive<\/li>\n<li>ASCII values of characters are compared<\/li>\n<li>Useful for sorting, finding min\/max strings etc.<\/li>\n<\/ul>\n<h3>The strcmpi() Function in C<\/h3>\n<p>The &#8220;string.h&#8221; header file contains the definition of the strcmpi() function, a built-in function in the C language. The only distinction between the strcmpi() and strcmp() functions is that the former is case sensitive while the latter is not, making strcmpi() identical to strcmp().<\/p>\n<p><strong>The syntax is:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int strcmpi(const char *str1, const char *str2);<\/pre>\n<p><strong>This function accepts two string parameters to compare:<\/strong><\/p>\n<ul>\n<li><strong>str1 &#8211;<\/strong> The first string passed to the function. This will be compared against the second string.<\/li>\n<li><strong>str2 &#8211;<\/strong> The second string passed to the function. This will be compared against the first string.<\/li>\n<\/ul>\n<p><strong>The function returns an integer value indicating the result of the comparison:<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Return Value<\/b><\/td>\n<td><b>Meaning<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">0<\/span><\/td>\n<td><span style=\"font-weight: 400\">str1 and str2 are identical<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Negative number<\/span><\/td>\n<td><span style=\"font-weight: 400\">str1 length &lt; str2 length<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Positive number<\/span><\/td>\n<td><span style=\"font-weight: 400\">str1 length &gt; str2 length<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Examples<\/h3>\n<table>\n<tbody>\n<tr>\n<td><b>str1<\/b><\/td>\n<td><b>str2<\/b><\/td>\n<td><b>Return Value<\/b><\/td>\n<td><b>Reason<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8220;hello&#8221;<\/span><\/td>\n<td><span style=\"font-weight: 400\">&#8220;hello&#8221;<\/span><\/td>\n<td><span style=\"font-weight: 400\">0<\/span><\/td>\n<td><span style=\"font-weight: 400\">Strings are identical<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8220;cat&#8221;<\/span><\/td>\n<td><span style=\"font-weight: 400\">&#8220;tiger&#8221;<\/span><\/td>\n<td><span style=\"font-weight: 400\">-3<\/span><\/td>\n<td><span style=\"font-weight: 400\">&#8220;cat&#8221; length (3) &lt; &#8220;tiger&#8221; length (5)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8220;antelope&#8221;<\/span><\/td>\n<td><span style=\"font-weight: 400\">&#8220;deer&#8221;<\/span><\/td>\n<td><span style=\"font-weight: 400\">4<\/span><\/td>\n<td><span style=\"font-weight: 400\">&#8220;antelope&#8221; length (8) &gt; &#8220;deer&#8221; length (4)<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Note:<\/strong> The strcmpi() function is a non-standard one that might not be found in the C standard library.<\/p>\n<p><strong>Let&#8217;s look at an example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\r\n#include &lt;string.h&gt;\r\n\r\nint main() {\r\n\r\n  char str1[15] = \"String1\";\r\n  char str2[15] = \"string1\";\r\n\r\n  int result = strcmpi(str1, str2);\r\n\r\n  if(result == 0) {\r\n    printf(\"str1 is equal to str2\\n\");\r\n  }\r\n\r\n  return 0;\r\n}<\/pre>\n<p><strong>Output:<\/strong><br \/>\nstr1 is equal to str2<\/p>\n<p>This prints &#8220;str1 is equal to str2&#8221; as case is ignored by strcmpi().<\/p>\n<p><strong>Some key points about strcmpi():<\/strong><\/p>\n<ul>\n<li>Comparison ignores upper\/lower case differences<\/li>\n<li>Case is internally normalized before comparing<\/li>\n<li>Useful for comparing user input or configurations<\/li>\n<\/ul>\n<h3>Key Differences Between strcmp() and strcmpi() in C<\/h3>\n<table>\n<tbody>\n<tr>\n<td><b>Feature<\/b><\/td>\n<td><b>strcmp()<\/b><\/td>\n<td><b>strcmpi()<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Case sensitivity<\/span><\/td>\n<td><span style=\"font-weight: 400\">Case-sensitive comparison<\/span><\/td>\n<td><span style=\"font-weight: 400\">Case-insensitive comparison<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Normalization<\/span><\/td>\n<td><span style=\"font-weight: 400\">No normalization<\/span><\/td>\n<td><span style=\"font-weight: 400\">Normalizes to same case before comparing<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Comparison method<\/span><\/td>\n<td><span style=\"font-weight: 400\">Directly compares ASCII values<\/span><\/td>\n<td><span style=\"font-weight: 400\">Normalizes case, then compares ASCII values<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Performance<\/span><\/td>\n<td><span style=\"font-weight: 400\">Faster as direct comparison<\/span><\/td>\n<td><span style=\"font-weight: 400\">Slower due to normalization<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Return value<\/span><\/td>\n<td><span style=\"font-weight: 400\">Negative if str1 &lt; str2, Positive if str1 &gt; str2, 0 if equal<\/span><\/td>\n<td><span style=\"font-weight: 400\">0 if equal, non-zero if unequal<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Use cases<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sorting, finding min\/max strings<\/span><\/td>\n<td><span style=\"font-weight: 400\">User input validation, configuration value comparison<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>When to Use Each Function<\/h3>\n<p><strong>Based on their behavior, here are some guidelines on when to use each function:<\/strong><\/p>\n<ul>\n<li>Use strcmp() when case matters, like for sorting or finding min\/max<\/li>\n<li>Use strcmpi() when case must be ignored, like user input validation<\/li>\n<li>Use strcmp() for comparing identifiers, tokens, symbols etc.<\/li>\n<li>Use strcmpi() for comparing configuration values, file paths etc.<\/li>\n<\/ul>\n<h3>Conclusion<\/h3>\n<p>String comparison is fundamental to many C programs. Both strcmp() and strcmpi() allow for the comparison of two strings, with the main difference being that strcmpi() ignores case. Keeping their exact behavior in mind helps us choose the right function based on whether case-sensitivity matters for our specific use case.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>String manipulation is a fundamental aspect of C programming, and one common task is comparing strings. Whether you&#8217;re searching for a specific substring, sorting a list of names, or validating user inputs, string comparison&#46;&#46;&#46;<\/p>\n","protected":false},"author":86671,"featured_media":120864,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19488],"tags":[23914,29934,29133,2263,29933,29935,29932],"class_list":["post-120862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-programming","tag-c-programming","tag-c-strcmp-and-strcmpi-function","tag-c-tutorials","tag-c","tag-difference-between-strcmp-and-strcmpi-function-in-c","tag-strcmp-and-strcmpi-function","tag-strcmp-vs-strcmpi-function-in-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Difference Between strcmp() and strcmpi() Function in C - DataFlair<\/title>\n<meta name=\"description\" content=\"Both strcmp() and strcmpi() allow for the comparison of two strings, with the main difference being that strcmpi() ignores case.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Difference Between strcmp() and strcmpi() Function in C - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Both strcmp() and strcmpi() allow for the comparison of two strings, with the main difference being that strcmpi() ignores case.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-03T08:50:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/strcmp-vs-strcmpi-in-c.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Difference Between strcmp() and strcmpi() Function in C - DataFlair","description":"Both strcmp() and strcmpi() allow for the comparison of two strings, with the main difference being that strcmpi() ignores case.","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:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/","og_locale":"en_US","og_type":"article","og_title":"Difference Between strcmp() and strcmpi() Function in C - DataFlair","og_description":"Both strcmp() and strcmpi() allow for the comparison of two strings, with the main difference being that strcmpi() ignores case.","og_url":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2024-02-03T08:50:20+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/strcmp-vs-strcmpi-in-c.webp","type":"image\/webp"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/0e594f928e31fc96628ac40f6ae74f49"},"headline":"Difference Between strcmp() and strcmpi() Function in C","datePublished":"2024-02-03T08:50:20+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/"},"wordCount":718,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/strcmp-vs-strcmpi-in-c.webp","keywords":["c programming","c strcmp() and strcmpi function","c tutorials","C++","Difference Between strcmp() and strcmpi() Function in C","strcmp() and strcmpi function","strcmp() vs strcmpi() Function in C"],"articleSection":["C Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/","url":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/","name":"Difference Between strcmp() and strcmpi() Function in C - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/strcmp-vs-strcmpi-in-c.webp","datePublished":"2024-02-03T08:50:20+00:00","description":"Both strcmp() and strcmpi() allow for the comparison of two strings, with the main difference being that strcmpi() ignores case.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/strcmp-vs-strcmpi-in-c.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/09\/strcmp-vs-strcmpi-in-c.webp","width":1200,"height":628,"caption":"strcmp() vs strcmpi() in c"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/strcmp-vs-strcmpi-in-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"C Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/c-programming\/"},{"@type":"ListItem","position":3,"name":"Difference Between strcmp() and strcmpi() Function in C"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/0e594f928e31fc96628ac40f6ae74f49","name":"TechVidvan Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c89190da3d4010c71ba476b618ab10fdc2335c82cdfa0ad5002d98d0f2473444?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c89190da3d4010c71ba476b618ab10fdc2335c82cdfa0ad5002d98d0f2473444?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c89190da3d4010c71ba476b618ab10fdc2335c82cdfa0ad5002d98d0f2473444?s=96&d=mm&r=g","caption":"TechVidvan Team"},"description":"TechVidvan Team provides high-quality content &amp; courses on AI, ML, Data Science, Data Engineering, Data Analytics, programming, Python, DSA, Android, Flutter, full stack web dev, MERN, and many latest technology.","url":"https:\/\/data-flair.training\/blogs\/author\/test001\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/120862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/86671"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=120862"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/120862\/revisions"}],"predecessor-version":[{"id":131805,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/120862\/revisions\/131805"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/120864"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=120862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=120862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=120862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}