{"id":1442,"date":"2017-11-09T16:48:48","date_gmt":"2017-11-09T09:48:48","guid":{"rendered":"https:\/\/oracletutorial.com\/?page_id=1442"},"modified":"2025-05-24T06:20:00","modified_gmt":"2025-05-24T13:20:00","slug":"plsql-while-loop","status":"publish","type":"page","link":"https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-while-loop\/","title":{"rendered":"PL\/SQL WHILE Loop"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: In this tutorial, you will learn about PL\/SQL <code>WHILE<\/code> loop statement to execute a sequence of statements as long as a specified condition is <code>TRUE<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='introduction-to-plsql-while-loop-statement'>Introduction to PL\/SQL WHILE loop statement <a href=\"#introduction-to-plsql-while-loop-statement\" class=\"anchor\" id=\"introduction-to-plsql-while-loop-statement\" title=\"Anchor for Introduction to PL\/SQL WHILE loop statement\">#<\/a><\/h2>\n\n\n\n<p>PL\/SQL <code>WHILE<\/code> loop is a control structure that repeatedly executes a <a href=\"https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-anonymous-block\/\">code block<\/a> if a specific condition remains true.<\/p>\n\n\n\n<p>Here&#8217;s the syntax for the <code>WHILE<\/code> loop statement:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">WHILE<\/span> condition\n<span class=\"hljs-keyword\">LOOP<\/span>\n    statements;\n<span class=\"hljs-keyword\">END<\/span> <span class=\"hljs-keyword\">LOOP<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In this syntax, the condition is a Boolean expression that evaluates to <code>TRUE<\/code>, <code>FALSE<\/code> or <code>NULL<\/code>.<\/p>\n\n\n\n<p>The <code>WHILE<\/code> loop statement continues to execute the <code>statements<\/code> between the <code>LOOP<\/code> and <code>END<\/code> <code>LOOP<\/code> as long as the <code>condition<\/code> evaluates to <code>TRUE<\/code>.<\/p>\n\n\n\n<p>PL\/SQL evaluates the condition in the <code>WHILE<\/code> clause before each loop iteration. If the condition is <code>TRUE<\/code>, then the loop body executes. If the condition is <code>FALSE<\/code> or <code>NULL<\/code>, the loop terminates.<\/p>\n\n\n\n<p>If the condition is <code>FALSE<\/code> before entering the loop, the <code>WHILE<\/code> loop does not execute at all. This behavior is different from the <code><a href=\"https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-loop\/\">LOOP<\/a><\/code> statement whose loop body always executes once.<\/p>\n\n\n\n<p>To terminate the loop prematurely, you use an <code>EXIT<\/code> or <code>EXIT WHEN<\/code> statement.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='plsql-while-loop-examples'>PL\/SQL WHILE loop examples <a href=\"#plsql-while-loop-examples\" class=\"anchor\" id=\"plsql-while-loop-examples\" title=\"Anchor for PL\/SQL WHILE loop examples\">#<\/a><\/h2>\n\n\n\n<p>Let&#8217;s take some examples of using the <code>WHILE<\/code> loop statement to see how it works.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='basic-plsql-while-loop-example'>Basic PL\/SQL WHILE loop example <a href=\"#basic-plsql-while-loop-example\" class=\"anchor\" id=\"basic-plsql-while-loop-example\" title=\"Anchor for Basic PL\/SQL WHILE loop example\">#<\/a><\/h3>\n\n\n\n<p>The following example uses a <code>WHILE<\/code> loop statement to display five numbers from 1 to 5:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">SET<\/span> SERVEROUTPUT <span class=\"hljs-keyword\">ON<\/span>;\n\n<span class=\"hljs-keyword\">DECLARE<\/span>\n  n_counter NUMBER := <span class=\"hljs-number\">1<\/span>;\n<span class=\"hljs-keyword\">BEGIN<\/span>\n  <span class=\"hljs-keyword\">WHILE<\/span> n_counter &lt;= <span class=\"hljs-number\">5<\/span>\n  <span class=\"hljs-keyword\">LOOP<\/span>\n    DBMS_OUTPUT.PUT_LINE( <span class=\"hljs-string\">'Counter : '<\/span> || n_counter );\n    n_counter := n_counter + <span class=\"hljs-number\">1<\/span>;\n  <span class=\"hljs-keyword\">END<\/span> <span class=\"hljs-keyword\">LOOP<\/span>;\n<span class=\"hljs-keyword\">END<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\">Counter : <span class=\"hljs-number\">1<\/span>\nCounter : <span class=\"hljs-number\">2<\/span>\nCounter : <span class=\"hljs-number\">3<\/span>\nCounter : <span class=\"hljs-number\">4<\/span>\nCounter : <span class=\"hljs-number\">5<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In this example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, initialize the <code>n_counter<\/code> to one.<\/li>\n\n\n\n<li>Second, check if <code>n_counter<\/code> is less than 5 before entering the loop.<\/li>\n\n\n\n<li>Third, increment the <code>n_counter <\/code>in each iteration inside the loop body. After five iterations, the <code>n_counter<\/code> is 5. Hence, the condition <code>n_counter &lt; 5<\/code> become false, which terminates the loop.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id='using-a-while-loop-with-an-exit-when-statement'>Using a WHILE loop with an EXIT WHEN statement <a href=\"#using-a-while-loop-with-an-exit-when-statement\" class=\"anchor\" id=\"using-a-while-loop-with-an-exit-when-statement\" title=\"Anchor for Using a WHILE loop with an EXIT WHEN statement\">#<\/a><\/h2>\n\n\n\n<p>The following example uses the <code>EXIT WHEN<\/code> statement to terminate a <code>WHILE<\/code> loop:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">DECLARE<\/span>\n   n_counter NUMBER := <span class=\"hljs-number\">1<\/span>;\n<span class=\"hljs-keyword\">BEGIN<\/span>\n   <span class=\"hljs-keyword\">WHILE<\/span> n_counter &lt;= <span class=\"hljs-number\">5<\/span>\n      <span class=\"hljs-keyword\">LOOP<\/span>\n        DBMS_OUTPUT.PUT_LINE( <span class=\"hljs-string\">'Counter : '<\/span> || n_counter );\n        n_counter := n_counter + <span class=\"hljs-number\">1<\/span>;\n        <span class=\"hljs-keyword\">EXIT<\/span> <span class=\"hljs-keyword\">WHEN<\/span> n_counter = <span class=\"hljs-number\">3<\/span>;\n      <span class=\"hljs-keyword\">END<\/span> <span class=\"hljs-keyword\">LOOP<\/span>;\n   <span class=\"hljs-keyword\">END<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>The following is the output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\">Counter : <span class=\"hljs-number\">1<\/span>\nCounter : <span class=\"hljs-number\">2<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>The condition of the <code>EXIT WHEN<\/code> clause evaluated to true when the counter is three. Therefore, the loop body was only executed two times before termination.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='summary'>Summary <a href=\"#summary\" class=\"anchor\" id=\"summary\" title=\"Anchor for Summary\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the <code>WHILE<\/code> loop statement to execute a sequence of statements as long as a specified condition is <code>TRUE<\/code>.<\/li>\n\n\n\n<li>Use the <code>EXIT WHEN<\/code> statement to prematurely terminate the loop.<\/li>\n<\/ul>\n\n\n\n<p>&nbsp;<\/p>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"1442\"\n\t\t\t\tdata-post-url=\"https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-while-loop\/\"\n\t\t\t\tdata-post-title=\"PL\/SQL WHILE Loop\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"1442\"\n\t\t\t\tdata-post-url=\"https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-while-loop\/\"\n\t\t\t\tdata-post-title=\"PL\/SQL WHILE Loop\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn about PL\/SQL\u00a0WHILE loop statement to execute a sequence of statements as long as a specified condition is TRUE.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1418,"menu_order":12,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1442","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PL\/SQL WHILE Loop<\/title>\n<meta name=\"description\" content=\"You will learn about PL\/SQL\u00a0WHILE loop to execute a sequence of statements as long as a specified condition is TRUE.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-while-loop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PL\/SQL WHILE Loop\" \/>\n<meta property=\"og:description\" content=\"You will learn about PL\/SQL\u00a0WHILE loop to execute a sequence of statements as long as a specified condition is TRUE.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-while-loop\/\" \/>\n<meta property=\"og:site_name\" content=\"Oracle Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-24T13:20:00+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/plsql-tutorial\\\/plsql-while-loop\\\/\",\"url\":\"https:\\\/\\\/www.oracletutorial.com\\\/plsql-tutorial\\\/plsql-while-loop\\\/\",\"name\":\"PL\\\/SQL WHILE Loop\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/#website\"},\"datePublished\":\"2017-11-09T09:48:48+00:00\",\"dateModified\":\"2025-05-24T13:20:00+00:00\",\"description\":\"You will learn about PL\\\/SQL\u00a0WHILE loop to execute a sequence of statements as long as a specified condition is TRUE.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/plsql-tutorial\\\/plsql-while-loop\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.oracletutorial.com\\\/plsql-tutorial\\\/plsql-while-loop\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/plsql-tutorial\\\/plsql-while-loop\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.oracletutorial.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PL\\\/SQL Tutorial\",\"item\":\"https:\\\/\\\/www.oracletutorial.com\\\/plsql-tutorial\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PL\\\/SQL WHILE Loop\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/#website\",\"url\":\"https:\\\/\\\/www.oracletutorial.com\\\/\",\"name\":\"Oracle Tutorial\",\"description\":\"Oracle Tutorial\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.oracletutorial.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PL\/SQL WHILE Loop","description":"You will learn about PL\/SQL\u00a0WHILE loop to execute a sequence of statements as long as a specified condition is TRUE.","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:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-while-loop\/","og_locale":"en_US","og_type":"article","og_title":"PL\/SQL WHILE Loop","og_description":"You will learn about PL\/SQL\u00a0WHILE loop to execute a sequence of statements as long as a specified condition is TRUE.","og_url":"https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-while-loop\/","og_site_name":"Oracle Tutorial","article_modified_time":"2025-05-24T13:20:00+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-while-loop\/","url":"https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-while-loop\/","name":"PL\/SQL WHILE Loop","isPartOf":{"@id":"https:\/\/www.oracletutorial.com\/#website"},"datePublished":"2017-11-09T09:48:48+00:00","dateModified":"2025-05-24T13:20:00+00:00","description":"You will learn about PL\/SQL\u00a0WHILE loop to execute a sequence of statements as long as a specified condition is TRUE.","breadcrumb":{"@id":"https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-while-loop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-while-loop\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.oracletutorial.com\/plsql-tutorial\/plsql-while-loop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.oracletutorial.com\/"},{"@type":"ListItem","position":2,"name":"PL\/SQL Tutorial","item":"https:\/\/www.oracletutorial.com\/plsql-tutorial\/"},{"@type":"ListItem","position":3,"name":"PL\/SQL WHILE Loop"}]},{"@type":"WebSite","@id":"https:\/\/www.oracletutorial.com\/#website","url":"https:\/\/www.oracletutorial.com\/","name":"Oracle Tutorial","description":"Oracle Tutorial","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.oracletutorial.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages\/1442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/comments?post=1442"}],"version-history":[{"count":0,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages\/1442\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages\/1418"}],"wp:attachment":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/media?parent=1442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}