How to call REST API from iOS/Android code

I have tried to call REST API from Mobile site. Using the following url

the response is “Not found”

I have refer the below link:

My question is, how can I get json response using REST api?

If you’re using the REST API with Sync Gateway, it won’t be on port 8091. That’s the port number for Couchbase Server which is behind Sync Gateway. If you hit the right host/port, you should get the document.

Thanks for your suggestion @ingenthr, I hit the right host/port, and I am getting the document :slight_smile: