Data API
Source:data-api.md
Machine-readable metadata, checksums, download URLs, and schemas are available as static JSON files.
For campaign_booklet, the static API now exposes two public variants: original and enriched. The original variant keeps the historical artifact filenames. The enriched variant uses suffixed filenames and adds conservative NEC linkage fields such as huboid, sg_id, sg_typecode, and link_status.
Canonical GitHub Pages endpoints
| Endpoint | Description |
|---|---|
/data/index.json |
Resource index (files, versions, SHA-256, download URLs) |
/data/metadata.json |
Dataset descriptions and citation info |
/data/schema/campaign_booklet.json |
Column schema for the original campaign booklet artifact |
/data/schema/campaign_booklet_enriched.json |
Column schema for the enriched campaign booklet artifact |
/data/schema/party_statements.json |
Column schema for party statements |
Raw GitHub fallback
If GitHub Pages is temporarily returning 404 for one of the JSON files, the same published artifacts are mirrored on the gh-pages branch:
| Endpoint | Fallback URL |
|---|---|
/data/index.json |
https://raw.githubusercontent.com/taehyun-lim/krpoltext/gh-pages/data/index.json |
/data/metadata.json |
https://raw.githubusercontent.com/taehyun-lim/krpoltext/gh-pages/data/metadata.json |
/data/schema/campaign_booklet.json |
https://raw.githubusercontent.com/taehyun-lim/krpoltext/gh-pages/data/schema/campaign_booklet.json |
/data/schema/campaign_booklet_enriched.json |
https://raw.githubusercontent.com/taehyun-lim/krpoltext/gh-pages/data/schema/campaign_booklet_enriched.json |
/data/schema/party_statements.json |
https://raw.githubusercontent.com/taehyun-lim/krpoltext/gh-pages/data/schema/party_statements.json |
The GitHub Pages URLs remain the canonical public endpoints.