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.

  • ashokcs

    Unable to see proxy settings button in postman mac app.. https://uploads.disquscdn.com/images/316afb977c82a8ea267c4661f5c59d7a560b3d75169886c2efe8aac4cca4bcb7.png

    Any help please?

  • ashokcs

    This is really cool.. It works for me.

  • Matt

    Sounds just like Fiddler. What are the advantages / use cases for this over using Fiddler?

    • 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.

  • Hardik Shah

    This is awesome stuff! Thanks for the simple blog on how-to on this topic.

  • TRANZIOR

    How about SSL / HTTPS ?

  • CV Team

    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?

  • saivenkatesh.A

    are the responses logged any where?

  • 3demax

    My interceptor icon looks more like ISS rather than radar and it only opens little popup with on and off toggle: http://i.imgur.com/7yK3N5n.png
    My version is 4.4.3: http://i.imgur.com/sB6pxOu.png
    Maybe that's the problem? But I can't find any update button.
    Do you know what's going on?

  • ankita panda

    good for testing the performance of APIs for android app

  • Hi shamasis ,

    Thanks for sharing this blog with screenshots. it's really helpful to me.