{"id":3876,"date":"2023-03-15T13:23:11","date_gmt":"2023-03-15T13:23:11","guid":{"rendered":"https:\/\/blog.osmosys.co\/?p=3876"},"modified":"2024-02-02T04:57:11","modified_gmt":"2024-02-02T04:57:11","slug":"capture-api-calls-from-a-website-in-postman","status":"publish","type":"post","link":"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/","title":{"rendered":"Capture API Calls from a website in Postman"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<div style=\"height:14px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_1 counter-hierarchy ez-toc-counter ez-toc-white ez-toc-container-direction\">\r\n<div class=\"ez-toc-title-container\">\r\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\r\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\r\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Introduction\" >Introduction<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Setup\" >Setup<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_1\" >Step 1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_2\" >Step 2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_3\" >Step 3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_4\" >Step 4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_5\" >Step 5<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Usage\" >Usage<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_1-2\" >Step 1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_2-2\" >Step 2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_3-2\" >Step 3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_4-2\" >Step 4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_5-2\" >Step 5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_6\" >Step 6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_7\" >Step 7<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_8\" >Step 8<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Step_9\" >Step 9<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/staging.osmosys.co\/uk\/capture-api-calls-from-a-website-in-postman\/#References\" >References<\/a><\/li><\/ul><\/nav><\/div>\r\n<h2 class=\"wp-block-heading has-text-color\" style=\"color:#c20404\"><span class=\"ez-toc-section\" id=\"Introduction\"><\/span>Introduction<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/www.postman.com\/\" target=\"_blank\">Postman <\/a>is a powerful tool for testing and debugging APIs. One of its key features is the ability to capture API calls made by a website, allowing developers to better understand how the website interacts with APIs. In this page, we will walk through the process of setting up <a rel=\"noreferrer noopener\" href=\"https:\/\/www.postman.com\/product\/postman-interceptor\/\" target=\"_blank\">Postman Interceptor<\/a> and capturing API calls from a website.<\/p>\n\n\n\n<p>This guide assumes that Postman is already installed on your system. If not, please download and install it from&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.postman.com\/downloads\/\" target=\"_blank\">this link<\/a>. Please note that Postman Web App cannot be used for this purpose.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" style=\"color:#c20404\"><span class=\"ez-toc-section\" id=\"Setup\"><\/span>Setup<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1\"><\/span>Step 1<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The first step is to install the Postman Interceptor extension in Chrome from&nbsp;<a href=\"https:\/\/go.pstmn.io\/interceptor-download\" target=\"_blank\" rel=\"noopener\">this link<\/a>. This extension allows Postman to intercept API calls made by a website and display them in the Postman app.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2\"><\/span>Step 2<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Next, open the Postman app and click on&nbsp;<strong>Capture request<\/strong>&nbsp;in the bottom right of the footer. This will open a new&nbsp;<strong>Capture requests&nbsp;<\/strong>tab. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/soochna.osmosys.co\/uploads\/images\/gallery\/2023-02\/rJPimage.png\" alt=\"\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3\"><\/span>Step 3<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>On the&nbsp;<strong>Capture requests<\/strong>&nbsp;window, select the&nbsp;<strong>Via Interceptor<\/strong>&nbsp;tab.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/soochna.osmosys.co\/uploads\/images\/gallery\/2023-02\/fQ2image.png\" alt=\"\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4\"><\/span>Step 4<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Next, select&nbsp;<strong>Install Interceptor Bridge<\/strong>&nbsp;to download the Bridge.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_5\"><\/span>Step 5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>After the Bridge is successfully installed, confirm that Interceptor is ready to use by checking that the&nbsp;<strong>Connected<\/strong>&nbsp;status in the upper right is green.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/soochna.osmosys.co\/uploads\/images\/gallery\/2023-02\/0tcimage.png\" alt=\"\" \/><\/figure>\n\n\n\n<div style=\"height:14px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" style=\"color:#c20404\"><span class=\"ez-toc-section\" id=\"Usage\"><\/span>Usage<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1-2\"><\/span>Step 1<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>First, in the Postman app, create a new collection.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2-2\"><\/span>Step 2<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Next, go to the&nbsp;<strong>Via Interceptor<\/strong>&nbsp;tab of the&nbsp;<strong>Capture requests<\/strong>&nbsp;window.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3-2\"><\/span>Step 3<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Select the newly created collection from the list under&nbsp;<strong>Save requests to a collection<\/strong>.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/soochna.osmosys.co\/uploads\/images\/gallery\/2023-02\/fbIimage.png\" alt=\"\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4-2\"><\/span>Step 4<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Open the target website in Chrome.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_5-2\"><\/span>Step 5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Click on&nbsp;<strong>Start Capture&nbsp;<\/strong>in Postman.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_6\"><\/span>Step 6<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Refresh the website or&nbsp;perform the actions that trigger API calls&nbsp;and check if the calls are being listed in Postman.&nbsp;You can click on each API call to see more details about the request and response, including the headers, body, and status code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_7\"><\/span>Step 7<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>After new calls have stopped occurring, click on&nbsp;<strong>Stop&nbsp;<\/strong>to stop the Interceptor session.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/soochna.osmosys.co\/uploads\/images\/gallery\/2023-02\/rOoimage.png\" alt=\"\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_8\"><\/span>Step 8<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>A debug session summary will be shown along with all the captured requests.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/soochna.osmosys.co\/uploads\/images\/gallery\/2023-02\/0IGimage.png\" alt=\"\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_9\"><\/span>Step 9<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Finally, check if all the calls are saved successfully in the selected collection.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" style=\"color:#c20404\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Capturing API calls from a website using Postman Interceptor is a powerful way to gain insight into how the website interacts with APIs. By following the steps outlined in this page, we can easily capture API calls and use them in Postman to test and debug our APIs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" style=\"color:#c20404\"><span class=\"ez-toc-section\" id=\"References\"><\/span>References<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/learning.postman.com\/docs\/sending-requests\/capturing-request-data\/interceptor\/\" target=\"_blank\">Using Postman Interceptor | Postman Learning Center<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"has-secondary-color has-text-color\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Postman is a powerful tool for testing and debugging APIs. One of its key features is the ability to capture API calls made by a website, allowing developers to better understand how the website interacts with APIs. In this page, we will walk through the process of setting up Postman Interceptor and capturing API [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":4016,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_lmt_disableupdate":"","_lmt_disable":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[39],"tags":[55,85],"class_list":["post-3876","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","tag-api","tag-postman"],"modified_by":null,"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/staging.osmosys.co\/uk\/wp-json\/wp\/v2\/posts\/3876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.osmosys.co\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.osmosys.co\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.osmosys.co\/uk\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.osmosys.co\/uk\/wp-json\/wp\/v2\/comments?post=3876"}],"version-history":[{"count":0,"href":"https:\/\/staging.osmosys.co\/uk\/wp-json\/wp\/v2\/posts\/3876\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.osmosys.co\/uk\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/staging.osmosys.co\/uk\/wp-json\/wp\/v2\/media?parent=3876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.osmosys.co\/uk\/wp-json\/wp\/v2\/categories?post=3876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.osmosys.co\/uk\/wp-json\/wp\/v2\/tags?post=3876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}