Fetching from an API - the act of loading data from another place. Any word for obtaining data works. (There is also a basic web JS function called fetch that will literally do just that)
Then you need to learn the basics of Javascript
Code academy has some stuff here Learn JavaScript | Codecademy
But you are probably looking at NodeJS which is “server side” javascript.