What is an API ?
An API (Application Programming Interface) is a layer between one or more softwares. It allows communication between the softwares through standard protocols across applications.
What we should do is create a js file and edit this file in the preferred code editor. In my case I will use the Visual Studio Code editor.
Now we will write the following code inside the js file.
You should receive something like this:
As you can see, the GetUserGitHubAPI function returns a JSON data structure from the GitHub API.
Now you can access any property inside of our JSON data, for example, if I want to access the property avatar_url, all I heve to do is follow the code below:
Thanks for reading. This article has been duly corrected and revised.
Please follow me on my social media, for more contents like this.