Fetch API and store it in a collection

I did successfuly fetched de API into a grid. Since im not a developer, im getting a hard work trying to figure out how to implement the code above, can you give me some clues ?

For instance:

I run the code on the backend?
Where do i put the parameters im working with from the API?
In the insert part, “Commandes” is the BS im putting the info right?

Here is the API from the frontend that is connected to the grid:

$w.onReady(function  () {
	getUsatech()
		.then(newsData => {
			//ADD ID DYNAMIC
			for (var i = 0; i < newsData.articles.length; i++) {
				newsData.articles[i]["_id"] = "news" + i;
			}
                        //all the parameters into the grid from the API
			$w("#repUsatech").onItemReady(($w, itemData, index) => {
				$w('#imgUsatech').link = itemData.url;
				$w('#imgUsatech').src = itemData.urlToImage;
				$w("#newsBody").text = itemData.description;
				$w('#titUsatech').text = itemData.title;
				$w('#authorUsatech').text = itemData.author;

			});

			$w("#repUsatech").data = newsData.articles;
		});
	});

Thanks in advance!!