Fetch Button's API Response

Hi,
In my Appium Automation, I have scripted a happy path where I reach a final button to click. I want to fetch the response of this button and use one of the API Response Body’s variables in my automation. Is this possible?

Thank you