Fetch and display Github profiles from api.github.com

I have always been fascinated with the world of API. I was intrigued as to how applications can query an endpoint and extract information and then display it the way they like. Thanks to the 50 Projects in 50 days by Brad Traversy, I am finally able to create a small application using API.

Today I learned multiple things :

  • Use Axios instead of Fetch API
  • Request data from mutliple endpoints in an API
  • Limit responses in a fetch url
  • Use the try...catch method and display custom error messages
  • Append query parameters to the fetch url
  • Using e.target to reference the element where the event occured

File Info

Category HTML / JS / CSS
Credits 50 Projects in 50 days
Date January 25th, 2025
Codepen Click here