API Get basic info using js and the api and html

ok thanks for the help but i will do the

.then(data => data.data[0].id;)
  • Make sure to remove the semi-colon, I added that by mistake.
1 Like

More readable. Just a preference in the end. Both works the same.

2 Likes

This is also the solution but i cant give 2 the solution

How do i make the js do so it displays things in the html code like this where you have a search bar at the top if the bar changes it checks if its a username and it displays the items Username: ID: Profile Link: Account Created: Friends: Followers:

image