Skip to main content
100%

Requesting data from the Github API

✓ Published1🌍 Public
LLaurens
Last edited Feb 4, 2020
Created on Feb 3, 2020

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 description

Requesting data from the Github API

Concept

An example showing how to go from an API request to html element.

MIT Licensed

Similar vizzes