# Mobile test: Capture http traffic on mobile application opened with Appium

**URL:** <https://forum.robotframework.org/t/mobile-test-capture-http-traffic-on-mobile-application-opened-with-appium/3177>\
**Category:** Appium\
**Created:** [31 January 2022 14:34 UTC](https://forum.robotframework.org/t/mobile-test-capture-http-traffic-on-mobile-application-opened-with-appium/3177 "2022-01-31T14:34:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedep](https://avatars.discourse-cdn.com/v4/letter/f/57b2e6/32.png) [@fedep](https://forum.robotframework.org/u/fedep)\
**Post date:** [31 January 2022 14:34 UTC](https://forum.robotframework.org/t/mobile-test-capture-http-traffic-on-mobile-application-opened-with-appium/3177/1 "2022-01-31T14:34:09Z")

</div>

I would like to capture the API requests and the response triggered by the click of buttons in my mobile app.  
I currently use robotframework with Appium Library to open my application and interact with it ([https://serhatbolsu.github.io/robotframework-appiumlibrary/AppiumLibrary.html#Open%20Application](https://serhatbolsu.github.io/robotframework-appiumlibrary/AppiumLibrary.html#Open%20Application) ), but I also would like to check the http traffic.  
I can see such keyword exists for browser ([https://marketsquare.github.io/robotframework-browser/Browser.html#Wait%20For%20Request](https://marketsquare.github.io/robotframework-browser/Browser.html#Wait%20For%20Request)), does anything similar exist for mobile applications?

---

<div class="post-metadata">

**Author:** ![zastress](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/zastress/32/1259_2.png) [@zastress](https://forum.robotframework.org/u/zastress)\
**Post date:** [1 February 2022 11:29 UTC](https://forum.robotframework.org/t/mobile-test-capture-http-traffic-on-mobile-application-opened-with-appium/3177/2 "2022-02-01T11:29:46Z")

</div>

I don’t know any method to capture API calls with Appium but I do know how to do it manually. Download, install and configure this tool called HTTP Toolkit: [https://httptoolkit.tech/](https://httptoolkit.tech/).  
You will need to do it on an emulator without Google Play services or a rooted Android device in order to make it work.

---

<div class="post-metadata">

**Author:** ![fedep](https://avatars.discourse-cdn.com/v4/letter/f/57b2e6/32.png) [@fedep](https://forum.robotframework.org/u/fedep)\
**Post date:** [25 February 2022 11:36 UTC](https://forum.robotframework.org/t/mobile-test-capture-http-traffic-on-mobile-application-opened-with-appium/3177/3 "2022-02-25T11:36:54Z")

</div>

Thank you @zastress for your reply, http toolkit is indeed useful to check API calls “manually”.  
In alternative, do you know any way to interface the toolkit itself with python scripts?  
Thanks
