If you want to host your database on MongoLabs, they also provide a REST API. Beware, it is not secure, as the API key is passed with every request, but you can use it to retrieve public data through Javascript:
https://support.mongolab.com/entries/20433053-Is-there-a-REST-API-for-MongoDB-
Once you have mongolab db configured, you can access it through a REST request, for example
$.getJSON( "https://api.mongolab.com/api/1/databases/your-db/collections/your-collection/? apiKey=your-key", function( json ) {
Rima Oct. 25 '13 at 16:14 2013-10-25 16:14
source share