Skip to main content
100%

Some refactored API live coding

✓ Published2🌍 Public
LLaurens
Last edited Oct 27, 2020
Created on Oct 22, 2020
Forked from Js xhr test

This example demonstrates a live-coded workflow for inspecting and cleaning data from the Dutch government’s open-data API for road traffic information, accessed via the `fetch` API. It fetches JSON from the RDW endpoint, extracts values from a specified column (`areaid`), and then logs unique values and filters entries containing “WEST” using standard JavaScript array methods. The code shows a step-by-step refactoring process, with console output at each stage, but does not render a visualization. It uses no external libraries, relying solely on native JavaScript functions like `Set` for deduplication.

AI-generated description

A livecoded example on an API

  • Refactor code
  • Inspect data
  • Get unique values for a certain column
MIT Licensed

Similar vizzes