How to fetch a JSON file from an external API url and then update a database collection automatically using that JSON file.

Simply I want to get JSON using https://www.hpb.health.gov.lk/api/get-current-statistical and use it to update my database collection called Novid.