Updated API requests to respond in JSON format