You are here

How to Intercept API calls of Your iOS App

API documentation, as we all know, is rarely comprehensive and almost never up-to-date. An alternative way to get to know an API is by intercepting API calls from a mobile app and examining how they work. Here Jan Schwoebel over at his blog will show you how you can easily do that for iOS apps. 

Getting Started

First thing you’ll need to do is download the Charles Proxy, a web debugging proxy app perfect for the task. Install and start Charles. Then configure its proxy settings so you can use it with your iOS app.


Starting Charles Proxy on your iPhone

Next, you’ll need to configure the proxy on your iPhone. Go to Settings -> Wi-Fi -> Wi-Fi name -> Set HTTP Proxy and set it to manual like so. 

Record API calls

Then start recording calls in Charles and play with your iOS app. You should see then all the HTTP/HTTPS calls being recorded under Structure. You can then look at each call, examining the details of the request and the response.

Jan recommends filtering by specific URL in Charles Proxy recording settings to limit the number of calls being intercepted to only those that interest you. 

Be sure to read the next API Education article: What Are Six of the Most Common API Mistakes?

Original Article

Intercepting API calls of your iOS app




This is very good topic. This topic is very helpful to me. Really I have enjoyed it after reading. so write this type of topic as a web designer this topic helps me very much.


If you re running Windows, Fiddler is a far better proxy.