Using Postman Proxy to Capture and Inspect API Calls from iOS or Android Devices

In this tutorial, I will guide you on how you can use Postman's proxy feature to inspect HTTP communication going out from your phone. All you need to get started is your computer and mobile connected to the same local wireless network.

Step 1: Open Proxy Settings in Postman Mac App

postman-proxy-settings-button

postman-proxy-settings

Keep a note of the port mentioned in the Proxy Settings. In my case, I am keeping it to the default port 5555. As a start you should set the target in the proxy dialog box to "History." This will cause all your requests to be captured and stored in the History sidebar panel.

Step 2: Take a note of your computer's IP address

osx-network-settings

On OSX, it is inside System Preferences > Network. In my case, the IP address of my Macbook is 192.168.0.101.

Step 3: Configure HTTP Proxy on your mobile device

Open Wireless Settings of your mobile device and update the configuration of the wireless connection to use HTTP Proxy. Set the IP address to your computer's IP you found in second step and the port from what you set in Postman in first step.

ios-http-proxy-settings

I am using an iPhone and I set the proxy IP address to 192.168.0.101 and port 5555.

You are all set!

Now head over to your app or browser and you will notice the network calls listed in your Postman App's history sidebar. In the following screenshot, you will notice that I opened www.getpostman.com from Safari on my iPhone and I could see all the requests made by the browser in my Postman sidebar!

postman-proxy-history-sidebar

If you want to discuss more about Postman Proxy – how it works or what more you can do with it, join our slack channel.

15 thoughts on “Using Postman Proxy to Capture and Inspect API Calls from iOS or Android Devices”

    1. from your screenshot, that looks like a Chrome App, the Map App does not have Inspector icon at the top bar.

    1. I would usually use this to add the listed requests into useful collections, write tests in them and re use later for testing. Then I would access the collection via postman API and run it on command line using Newman in CI system for the project.

  1. I am able to capture requests just fine.

    Does anyone know a way to capture all the responses at the same time?

    I want use the API (from the App) and collect all the responses in a single collection but it seems you have to go back and fire off each request in order to view a response?

Leave a Reply

Your email address will not be published. Required fields are marked *