Query an extrenal api from within MongoDb

Please help me find the correct wording for the solution I am looking for:

I would like to make API queries from MongoDb to an external API, and then save the data to a collection.

More elaborate:
I would like a backend service that queries a price API and saves the price data to a MongoDb. Then within MongoDb, I can manipulate the data as needed, then provide the “new” data to be exposed to an API for my users.

This seems like a simple task, but after extensive research, I cannot find the correct solution. Can someone point me in the right direction?

Just write a program in Node or Python or Go or PHP or C/C++ that does the REST API and then updates the MongoDB.

It took me less than 5 minutes to do this on Acho.io (including sign-up for an account)

The MongoDb documentation and examples on this are horrific.

I figured it out.

  return EJSON.parse(response.body.text());

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.