How do I make an API request using javascript?


#1

Hi, I want to make an API request using javascript but I have no idea what I’m supposed to do in order to make it work?


#2

You could use

Fetch - https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
jQuery ajax - http://api.jquery.com/jquery.ajax/

Or any number of methods in JS to perform a HTTP request