Convert API response to string