{"id":6580,"date":"2021-06-29T04:46:58","date_gmt":"2021-06-29T04:46:58","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=6580"},"modified":"2022-04-13T16:34:46","modified_gmt":"2022-04-13T16:34:46","slug":"how-to-use-jquery-ajax-method-to-call-an-api","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/","title":{"rendered":"How to use JQuery AJAX Method to Call an API?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In&nbsp;this&nbsp;blog&nbsp;in&nbsp;am&nbsp;going&nbsp;to&nbsp;explain&nbsp;that&nbsp;How&nbsp;to&nbsp;use&nbsp;JQuery&nbsp;AJAX&nbsp;Method&nbsp;to&nbsp;Call&nbsp;an&nbsp;API&nbsp;for&nbsp;to&nbsp;load&nbsp;data&nbsp;from&nbsp;external&nbsp;website&nbsp;or&nbsp;external&nbsp;File&nbsp;of&nbsp;etc,&nbsp;by&nbsp;calling&nbsp;APIs,&nbsp;and&nbsp;get&nbsp;the&nbsp;response&nbsp;in&nbsp;JSON&nbsp;or&nbsp;XML&nbsp;formats. So&nbsp;first&nbsp;thing&nbsp;I&nbsp;am&nbsp;going&nbsp;to&nbsp;create&nbsp;a&nbsp;html&nbsp;file&nbsp;and&nbsp;import&nbsp;jquery&nbsp;cdn.&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;bootstrap&nbsp;css,&nbsp;&amp;&nbsp;js&nbsp;cdn&nbsp;the&nbsp;you&nbsp;can&nbsp;copy&nbsp;from&nbsp;this&nbsp;link <a rel=\"noreferrer noopener\" href=\"https:\/\/getbootstrap.com\/docs\/4.6\/getting-started\/introduction\/\" data-type=\"URL\" data-id=\"https:\/\/getbootstrap.com\/docs\/4.6\/getting-started\/introduction\/\" target=\"_blank\">Click Here<\/a> as&nbsp;below-<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/5c12c0abb50fa54ae9ba9b2ea64e16e8.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\">In&nbsp;this&nbsp;code&nbsp;I&nbsp;am&nbsp;using&nbsp;bootstrap&nbsp;cdn&nbsp;with&nbsp;jQuery&nbsp;cdn&nbsp;after&nbsp;that&nbsp;a&nbsp;Script&nbsp;tag&nbsp;in&nbsp;this&nbsp;script&nbsp;tag&nbsp;ajax&nbsp;function&nbsp;call&nbsp;with&nbsp;json&nbsp;data&nbsp;for&nbsp;getting&nbsp;data&nbsp;showing&nbsp;in&nbsp;cosole.log.&nbsp;If&nbsp;you&nbsp;using&nbsp;first&nbsp;time&nbsp;jQuery&nbsp;then&nbsp;you&nbsp;can&nbsp;right&nbsp;button&nbsp;of&nbsp;mouse&nbsp;and&nbsp;select&nbsp;inspect&nbsp;(Ctrl+shift+i)&nbsp;after&nbsp;that&nbsp;showing&nbsp;below&nbsp;tab&nbsp;then&nbsp;select&nbsp;console&nbsp;tab.&nbsp;When&nbsp;you&nbsp;click&nbsp;Here&nbsp;button&nbsp;from&nbsp;document&nbsp;then&nbsp;showing&nbsp;all&nbsp;data&nbsp;which&nbsp;retrieve.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"139\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/inspect-for-console-1024x139.png\" alt=\"\" class=\"wp-image-6584\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/inspect-for-console-1024x139.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/inspect-for-console-300x41.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/inspect-for-console-768x104.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/inspect-for-console-1536x209.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/inspect-for-console.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"527\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/console-data-in-ajax-1024x527.png\" alt=\"\" class=\"wp-image-6585\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/console-data-in-ajax-1024x527.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/console-data-in-ajax-300x154.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/console-data-in-ajax-768x395.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/console-data-in-ajax-1536x790.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/console-data-in-ajax.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In&nbsp;this&nbsp;blog&nbsp;in&nbsp;am&nbsp;going&nbsp;to&nbsp;explain&nbsp;that&nbsp;How&nbsp;to&nbsp;use&nbsp;JQuery&nbsp;AJAX&nbsp;Method&nbsp;to&nbsp;Call&nbsp;an&nbsp;API&nbsp;for&nbsp;to&nbsp;load&nbsp;data&nbsp;from&nbsp;external&nbsp;website&nbsp;or&nbsp;external&nbsp;File&nbsp;of&nbsp;etc,&nbsp;by&nbsp;calling&nbsp;APIs,&nbsp;and&nbsp;get&nbsp;the&nbsp;response&nbsp;in&nbsp;JSON&nbsp;or&nbsp;XML&nbsp;formats. So&nbsp;first&nbsp;thing&nbsp;I&nbsp;am&nbsp;going&nbsp;to&nbsp;create&nbsp;a&nbsp;html&nbsp;file&nbsp;and&nbsp;import&nbsp;jquery&nbsp;cdn.&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;bootstrap&nbsp;css,&nbsp;&amp;&nbsp;js&nbsp;cdn&nbsp;the&nbsp;you&nbsp;can&nbsp;copy&nbsp;from&nbsp;this&nbsp;link Click Here as&nbsp;below- In&nbsp;this&nbsp;code&nbsp;I&nbsp;am&nbsp;using&nbsp;bootstrap&nbsp;cdn&nbsp;with&nbsp;jQuery&nbsp;cdn&nbsp;after&nbsp;that&nbsp;a&nbsp;Script&nbsp;tag&nbsp;in&nbsp;this&nbsp;script&nbsp;tag&nbsp;ajax&nbsp;function&nbsp;call&nbsp;with&nbsp;json&nbsp;data&nbsp;for&nbsp;getting&nbsp;data&nbsp;showing&nbsp;in&nbsp;cosole.log.&nbsp;If&nbsp;you&nbsp;using&nbsp;first&nbsp;time&nbsp;jQuery&nbsp;then&nbsp;you&nbsp;can&nbsp;right&nbsp;button&nbsp;of&nbsp;mouse&nbsp;and&nbsp;select&nbsp;inspect&nbsp;(Ctrl+shift+i)&nbsp;after&nbsp;that&nbsp;showing&nbsp;below&nbsp;tab&nbsp;then&nbsp;select&nbsp;console&nbsp;tab.&nbsp;When&nbsp;you&nbsp;click&nbsp;Here&nbsp;button&nbsp;from&nbsp;document&nbsp;then&nbsp;showing&nbsp;all&nbsp;data&nbsp;which&nbsp;retrieve.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5432],"tags":[5105,1056,5275,5295,524],"class_list":["post-6580","post","type-post","status-publish","format-standard","hentry","category-jquery","tag-ajax","tag-api","tag-jquery","tag-json","tag-xml"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to use JQuery AJAX Method to Call an API? - scmGalaxy<\/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:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use JQuery AJAX Method to Call an API? - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"In&nbsp;this&nbsp;blog&nbsp;in&nbsp;am&nbsp;going&nbsp;to&nbsp;explain&nbsp;that&nbsp;How&nbsp;to&nbsp;use&nbsp;JQuery&nbsp;AJAX&nbsp;Method&nbsp;to&nbsp;Call&nbsp;an&nbsp;API&nbsp;for&nbsp;to&nbsp;load&nbsp;data&nbsp;from&nbsp;external&nbsp;website&nbsp;or&nbsp;external&nbsp;File&nbsp;of&nbsp;etc,&nbsp;by&nbsp;calling&nbsp;APIs,&nbsp;and&nbsp;get&nbsp;the&nbsp;response&nbsp;in&nbsp;JSON&nbsp;or&nbsp;XML&nbsp;formats. So&nbsp;first&nbsp;thing&nbsp;I&nbsp;am&nbsp;going&nbsp;to&nbsp;create&nbsp;a&nbsp;html&nbsp;file&nbsp;and&nbsp;import&nbsp;jquery&nbsp;cdn.&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;bootstrap&nbsp;css,&nbsp;&amp;&nbsp;js&nbsp;cdn&nbsp;the&nbsp;you&nbsp;can&nbsp;copy&nbsp;from&nbsp;this&nbsp;link Click Here as&nbsp;below- In&nbsp;this&nbsp;code&nbsp;I&nbsp;am&nbsp;using&nbsp;bootstrap&nbsp;cdn&nbsp;with&nbsp;jQuery&nbsp;cdn&nbsp;after&nbsp;that&nbsp;a&nbsp;Script&nbsp;tag&nbsp;in&nbsp;this&nbsp;script&nbsp;tag&nbsp;ajax&nbsp;function&nbsp;call&nbsp;with&nbsp;json&nbsp;data&nbsp;for&nbsp;getting&nbsp;data&nbsp;showing&nbsp;in&nbsp;cosole.log.&nbsp;If&nbsp;you&nbsp;using&nbsp;first&nbsp;time&nbsp;jQuery&nbsp;then&nbsp;you&nbsp;can&nbsp;right&nbsp;button&nbsp;of&nbsp;mouse&nbsp;and&nbsp;select&nbsp;inspect&nbsp;(Ctrl+shift+i)&nbsp;after&nbsp;that&nbsp;showing&nbsp;below&nbsp;tab&nbsp;then&nbsp;select&nbsp;console&nbsp;tab.&nbsp;When&nbsp;you&nbsp;click&nbsp;Here&nbsp;button&nbsp;from&nbsp;document&nbsp;then&nbsp;showing&nbsp;all&nbsp;data&nbsp;which&nbsp;retrieve.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-29T04:46:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-13T16:34:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/inspect-for-console-1024x139.png\" \/>\n<meta name=\"author\" content=\"rajeshkumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rajeshkumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/\"},\"author\":{\"name\":\"rajeshkumar\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"headline\":\"How to use JQuery AJAX Method to Call an API?\",\"datePublished\":\"2021-06-29T04:46:58+00:00\",\"dateModified\":\"2022-04-13T16:34:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/\"},\"wordCount\":305,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/inspect-for-console-1024x139.png\",\"keywords\":[\"ajax\",\"API\",\"jquery\",\"JSON\",\"xml\"],\"articleSection\":[\"jQuery\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/\",\"name\":\"How to use JQuery AJAX Method to Call an API? - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/inspect-for-console-1024x139.png\",\"datePublished\":\"2021-06-29T04:46:58+00:00\",\"dateModified\":\"2022-04-13T16:34:46+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/inspect-for-console.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/inspect-for-console.png\",\"width\":1920,\"height\":261},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-use-jquery-ajax-method-to-call-an-api\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use JQuery AJAX Method to Call an API?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\",\"name\":\"rajeshkumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"caption\":\"rajeshkumar\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/rajeshkumar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use JQuery AJAX Method to Call an API? - scmGalaxy","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.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/","og_locale":"en_US","og_type":"article","og_title":"How to use JQuery AJAX Method to Call an API? - scmGalaxy","og_description":"In&nbsp;this&nbsp;blog&nbsp;in&nbsp;am&nbsp;going&nbsp;to&nbsp;explain&nbsp;that&nbsp;How&nbsp;to&nbsp;use&nbsp;JQuery&nbsp;AJAX&nbsp;Method&nbsp;to&nbsp;Call&nbsp;an&nbsp;API&nbsp;for&nbsp;to&nbsp;load&nbsp;data&nbsp;from&nbsp;external&nbsp;website&nbsp;or&nbsp;external&nbsp;File&nbsp;of&nbsp;etc,&nbsp;by&nbsp;calling&nbsp;APIs,&nbsp;and&nbsp;get&nbsp;the&nbsp;response&nbsp;in&nbsp;JSON&nbsp;or&nbsp;XML&nbsp;formats. So&nbsp;first&nbsp;thing&nbsp;I&nbsp;am&nbsp;going&nbsp;to&nbsp;create&nbsp;a&nbsp;html&nbsp;file&nbsp;and&nbsp;import&nbsp;jquery&nbsp;cdn.&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;bootstrap&nbsp;css,&nbsp;&amp;&nbsp;js&nbsp;cdn&nbsp;the&nbsp;you&nbsp;can&nbsp;copy&nbsp;from&nbsp;this&nbsp;link Click Here as&nbsp;below- In&nbsp;this&nbsp;code&nbsp;I&nbsp;am&nbsp;using&nbsp;bootstrap&nbsp;cdn&nbsp;with&nbsp;jQuery&nbsp;cdn&nbsp;after&nbsp;that&nbsp;a&nbsp;Script&nbsp;tag&nbsp;in&nbsp;this&nbsp;script&nbsp;tag&nbsp;ajax&nbsp;function&nbsp;call&nbsp;with&nbsp;json&nbsp;data&nbsp;for&nbsp;getting&nbsp;data&nbsp;showing&nbsp;in&nbsp;cosole.log.&nbsp;If&nbsp;you&nbsp;using&nbsp;first&nbsp;time&nbsp;jQuery&nbsp;then&nbsp;you&nbsp;can&nbsp;right&nbsp;button&nbsp;of&nbsp;mouse&nbsp;and&nbsp;select&nbsp;inspect&nbsp;(Ctrl+shift+i)&nbsp;after&nbsp;that&nbsp;showing&nbsp;below&nbsp;tab&nbsp;then&nbsp;select&nbsp;console&nbsp;tab.&nbsp;When&nbsp;you&nbsp;click&nbsp;Here&nbsp;button&nbsp;from&nbsp;document&nbsp;then&nbsp;showing&nbsp;all&nbsp;data&nbsp;which&nbsp;retrieve.","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/","og_site_name":"scmGalaxy","article_published_time":"2021-06-29T04:46:58+00:00","article_modified_time":"2022-04-13T16:34:46+00:00","og_image":[{"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/inspect-for-console-1024x139.png","type":"","width":"","height":""}],"author":"rajeshkumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rajeshkumar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/"},"author":{"name":"rajeshkumar","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"headline":"How to use JQuery AJAX Method to Call an API?","datePublished":"2021-06-29T04:46:58+00:00","dateModified":"2022-04-13T16:34:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/"},"wordCount":305,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/inspect-for-console-1024x139.png","keywords":["ajax","API","jquery","JSON","xml"],"articleSection":["jQuery"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/","name":"How to use JQuery AJAX Method to Call an API? - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/inspect-for-console-1024x139.png","datePublished":"2021-06-29T04:46:58+00:00","dateModified":"2022-04-13T16:34:46+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/inspect-for-console.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/06\/inspect-for-console.png","width":1920,"height":261},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-use-jquery-ajax-method-to-call-an-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to use JQuery AJAX Method to Call an API?"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361","name":"rajeshkumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","caption":"rajeshkumar"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/rajeshkumar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=6580"}],"version-history":[{"count":2,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6580\/revisions"}],"predecessor-version":[{"id":6588,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6580\/revisions\/6588"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=6580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=6580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=6580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}