← Back to Labs
API Browser

API Browser

Building

Overview

The API Browser is an interactive, terminal-styled explorer for the UnGovr Open Data API. Rather than reading documentation and constructing API calls by hand, users navigate 320,000+ government entities through a web interface that looks and feels like a JSON-aware terminal.

Entity slugs become clickable links. Arrays expand inline. GeoJSON renders as mini-maps. Every response is syntax-highlighted and live-linkable — click any entity slug to navigate there instantly.

Build Status

Status: BUILDING

JSON syntax highlight
done
Clickable slugs
done
Array expansion
building
GeoJSON mini-maps
building
Search integration
planned

How It Works

# Navigate to a country
GET /api/entities/us
{
  "slug": "us",
  "name": "United States",
  "children_count": 56,
  "children": [click to expand]
}

# Click a child → drill down
GET /api/entities/us/ca/ventura
{
  "slug": "us/ca/ventura",
  "name": "Ventura County",
  "type": "county",
  "boundary": [view on map],
  "open_records_law": [CPRA details]
}

# GeoJSON renders as an inline map
Boundary loaded — Ventura County outline rendered

Tech Stack

REST API Terminal UI GeoJSON Leaflet.js Vanilla JS UnGovr Open Data API