{"id":135818,"date":"2018-08-02T12:54:15","date_gmt":"2018-08-02T12:54:15","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=135818"},"modified":"2021-07-16T11:06:43","modified_gmt":"2021-07-16T11:06:43","slug":"finding-broken-links-in-a-website-using-selenium-webdriver","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/","title":{"rendered":"Finding Broken Links in a Website using Selenium Webdriver"},"content":{"rendered":"\n<p>Selenium Webdriver is the most widely used open source API&nbsp; to test the functionality of any website. For using selenium webdriver API we have to first install JDK(1.7 or later) , Eclipse and Selenium Java Client Driver . For installation and configuration of eclipse with webdriver, go through the blog&nbsp;<a href=\"https:\/\/webkul.com\/blog\/getting-started-selenium\/\">https:\/\/webkul.com\/blog\/getting-started-selenium\/.<\/a><\/p>\n\n\n\n<p>After configuration, we have to create a class in our Java project to find the broken links in a website. Here we are testing the broken links in the website&nbsp;<a href=\"https:\/\/webkul.com\/\">https:\/\/webkul.com\/<\/a>&nbsp;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Code :-<\/h3>\n\n\n\n<p>We have created a Links.java class on a project named Webkul under automationFramework package with following code snippet :-<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:java\">package automationFramework;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.MalformedURLException;\nimport java.net.URL;\nimport java.util.Iterator;\nimport java.util.List;\n\nimport org.openqa.selenium.By;\nimport org.openqa.selenium.WebDriver;\nimport org.openqa.selenium.WebElement;\nimport org.openqa.selenium.firefox.FirefoxDriver;\n\npublic class Links {\n    \n    private static WebDriver driver = null;\n\n    public static void main(String[] args) {\n    \tSystem.setProperty(\"webdriver.gecko.driver\", \"path of geckodriver\");\n        \n        String home = \"http:\/\/www.webkul.com\";\n        String url = \"\";\n        HttpURLConnection huc = null;\n        int respCode = 200;\n        \n        driver = new FirefoxDriver();\n        \n        driver.manage().window().maximize();\n        \n        driver.get(home);\n        \n        List&lt;WebElement&gt; link = driver.findElements(By.tagName(\"a\"));\n        System.out.println(\"Total no. of links are \"\n\t\t\t\t+ link.size());\n       \n        Iterator&lt;WebElement&gt; it = link.iterator();\n        \n        while(it.hasNext()){\n            \n            url = it.next().getAttribute(\"href\");\n            \n            System.out.println(url);\n        \n            if(url == null || url.isEmpty()){\n                System.out.println(\"URL is either not configured for anchor tag or it is empty\");\n                continue;\n            }\n            \n            if(!url.startsWith(home)){\n                System.out.println(\"URL belongs to another domain, skipping it.\");\n                continue;\n            }\n            \n            try {\n                huc = (HttpURLConnection)(new URL(url).openConnection());\n                \n                huc.setRequestMethod(\"HEAD\");\n                \n                huc.connect();\n                \n                respCode = huc.getResponseCode();\n                \n                if(respCode &gt;= 400){\n                    System.out.println(url+\" is a broken link\");\n                }\n                else{\n                    System.out.println(url+\" is a valid link\");\n                }\n                    \n            } catch (MalformedURLException e) {\n                e.printStackTrace();\n            } catch (IOException e) {\n   \n                e.printStackTrace();\n            }\n        }\n        \n        driver.quit();\n\n    }<\/pre>\n\n\n\n<p>Here we have used FirefoxDriver class for checking the links in firefox web browser . If we want to check it in chrome browser we have to just use chromedriver in place of geckodriver and use of ChromeDriver class in place of FirefosDriver class.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step by step execution of Code:-<\/h3>\n\n\n\n<p>We will now learn how the code is working in finding out the links.<\/p>\n\n\n\n<p>Firstly we will import all the required packages in the code. Here the required package is :-<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:java\">import java.net.HttpURLConnection;<\/pre>\n\n\n\n<p>The methods under this package are used to send Java HTTP Request programmatically.<\/p>\n\n\n\n<p>Now under the main function first of all we will set the path of geckodriver while using FirefoxDriver class. Below is the code for giving path of the driver :-<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:java\">System.setProperty(\"webdriver.gecko.driver\", \"path of geckodriver\");<\/pre>\n\n\n\n<p>Now we will instantiate the FirefoxDriver :-<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:java\">driver = new FirefoxDriver();<\/pre>\n\n\n\n<p class=\"brush:java\">For maximizing the firefox window we used following code :-<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:java\">driver.manage().window().maximize();<\/pre>\n\n\n\n<p>After that we will collect all the links of the website and we will store them in a list and then traverse all the items of the list by below code :-<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:java\">List&lt;WebElement&gt; link = driver.findElements(By.tagName(\"a\"));\n         \n        Iterator&lt;WebElement&gt; it = link.iterator();<\/pre>\n\n\n\n<p>Now from the list of Urls we will identify and validate each url by following code snippet :-<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:java\">url = it.next().getAttribute(\"href\");  \/\/get the href of anchor tag and store it in variable url\n            \n            System.out.println(url);\n           \n            \/\/Check if url is null or empty \n        \n            if(url == null || url.isEmpty()){\n                System.out.println(\"URL is either not configured for anchor tag or it is empty\");\n                continue;\n            }\n            \n           \/\/Check if url belongs to main domain or any third party domain\n\n            if(!url.startsWith(home)){\n                System.out.println(\"URL belongs to another domain, skipping it.\");\n                continue;\n            }\n<\/pre>\n\n\n\n<p>After that we are sending http request. HttpURLConnection is the class having methods to send http request and get http response in return. Here we have set request method as &#8220;HEAD&#8221; because we want only header not the full body of the document. And connect() method is establishing connection with url and sending requests.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:java\">huc = (HttpURLConnection)(new URL(url).openConnection());\n                \n                huc.setRequestMethod(\"HEAD\");\n                \n                huc.connect();<\/pre>\n\n\n\n<p>At the end we are using getResponseCode() method so that we can get response code for the request. And on the basis of the response code we are trying to check link status.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:java\">respCode = huc.getResponseCode();\n                \n                if(respCode &gt;= 400){\n                    System.out.println(url+\" is a broken link\");\n                }\n                else{\n                    System.out.println(url+\" is a valid link\");\n                }<\/pre>\n\n\n\n<p>Thus, we can find all links from website and print whether links are valid or broken.<\/p>\n\n\n\n<p>Thanks for reading this blog .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Selenium Webdriver is the most widely used open source API&nbsp; to test the functionality of any website. For using selenium webdriver API we have to first install JDK(1.7 or later) , Eclipse and Selenium Java Client Driver . For installation and configuration of eclipse with webdriver, go through the blog&nbsp;https:\/\/webkul.com\/blog\/getting-started-selenium\/. After configuration, we have to <a href=\"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":198,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5847],"tags":[],"class_list":["post-135818","post","type-post","status-publish","format-standard","hentry","category-selenium"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Finding Broken Links in a Website using Selenium Webdriver - Webkul Blog<\/title>\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\/finding-broken-links-in-a-website-using-selenium-webdriver\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Finding Broken Links in a Website using Selenium Webdriver - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Selenium Webdriver is the most widely used open source API&nbsp; to test the functionality of any website. For using selenium webdriver API we have to first install JDK(1.7 or later) , Eclipse and Selenium Java Client Driver . For installation and configuration of eclipse with webdriver, go through the blog&nbsp;https:\/\/webkul.com\/blog\/getting-started-selenium\/. After configuration, we have to [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/\" \/>\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-08-02T12:54:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-16T11:06:43+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=\"Garima Pathak\" \/>\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=\"Garima Pathak\" \/>\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\/finding-broken-links-in-a-website-using-selenium-webdriver\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/\"},\"author\":{\"name\":\"Garima Pathak\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/e4e1f4ece892a640bd9b41f32c9b53ca\"},\"headline\":\"Finding Broken Links in a Website using Selenium Webdriver\",\"datePublished\":\"2018-08-02T12:54:15+00:00\",\"dateModified\":\"2021-07-16T11:06:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/\"},\"wordCount\":420,\"commentCount\":8,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"articleSection\":[\"Selenium\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/\",\"url\":\"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/\",\"name\":\"Finding Broken Links in a Website using Selenium Webdriver - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2018-08-02T12:54:15+00:00\",\"dateModified\":\"2021-07-16T11:06:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Finding Broken Links in a Website using Selenium Webdriver\"}]},{\"@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\/e4e1f4ece892a640bd9b41f32c9b53ca\",\"name\":\"Garima Pathak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e00de499182e68e890e1ffef88e476c2b6f56649684c0871e79d867d43b84b68?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e00de499182e68e890e1ffef88e476c2b6f56649684c0871e79d867d43b84b68?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Garima Pathak\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/garimapathak-tester19\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Finding Broken Links in a Website using Selenium Webdriver - Webkul Blog","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\/finding-broken-links-in-a-website-using-selenium-webdriver\/","og_locale":"en_US","og_type":"article","og_title":"Finding Broken Links in a Website using Selenium Webdriver - Webkul Blog","og_description":"Selenium Webdriver is the most widely used open source API&nbsp; to test the functionality of any website. For using selenium webdriver API we have to first install JDK(1.7 or later) , Eclipse and Selenium Java Client Driver . For installation and configuration of eclipse with webdriver, go through the blog&nbsp;https:\/\/webkul.com\/blog\/getting-started-selenium\/. After configuration, we have to [...]","og_url":"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2018-08-02T12:54:15+00:00","article_modified_time":"2021-07-16T11:06:43+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":"Garima Pathak","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Garima Pathak","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/"},"author":{"name":"Garima Pathak","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/e4e1f4ece892a640bd9b41f32c9b53ca"},"headline":"Finding Broken Links in a Website using Selenium Webdriver","datePublished":"2018-08-02T12:54:15+00:00","dateModified":"2021-07-16T11:06:43+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/"},"wordCount":420,"commentCount":8,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"articleSection":["Selenium"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/","url":"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/","name":"Finding Broken Links in a Website using Selenium Webdriver - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2018-08-02T12:54:15+00:00","dateModified":"2021-07-16T11:06:43+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/finding-broken-links-in-a-website-using-selenium-webdriver\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Finding Broken Links in a Website using Selenium Webdriver"}]},{"@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\/e4e1f4ece892a640bd9b41f32c9b53ca","name":"Garima Pathak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e00de499182e68e890e1ffef88e476c2b6f56649684c0871e79d867d43b84b68?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e00de499182e68e890e1ffef88e476c2b6f56649684c0871e79d867d43b84b68?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Garima Pathak"},"url":"https:\/\/webkul.com\/blog\/author\/garimapathak-tester19\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/135818","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\/198"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=135818"}],"version-history":[{"count":33,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/135818\/revisions"}],"predecessor-version":[{"id":296423,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/135818\/revisions\/296423"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=135818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=135818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=135818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}