🌍 Public
Viewing a saved revision (read-only)
ea33cd9e86924a718addb169f7f5f3d7
Requesting data from the Github API
This example demonstrates the complete workflow of fetching repository data from the GitHub API and rendering it as an HTML list. It uses a raw XMLHttpRequest to request JSON from `https://api.github.com/users/razpudding/repos`, parses the response with `JSON.parse`, and then dynamically creates a `<ul>` element with `<li>` items for each repository name using the DOM methods `document.createElement` and `appendChild`. The visualization highlights the data pipeline from an asynchronous API call to interactive webpage content.
AI-generated descriptionRequesting data from the Github API
Concept
An example showing how to go from an API request to html element.