Stats NZ geographic tables
Read public Koordinates metadata and the published sample for two Stats NZ Datafinder tables. Attribute Stats NZ under Creative Commons Attribution 4.0 International.
Use this when
- A task needs the licence, feature count, field names, or publication time for table 122777 or 123518
- A task needs the geography-version index in table 122777
- A task needs a bounded published sample of the 2026 geographic-areas concordance in table 123518
Use another skill when
- The task is CPI, GDP, population, migration, or the Stats NZ large-datasets CSV catalogue (
stats-nz) - The task needs the keyed Datafinder query API, a bulk export, or the full concordance
- The task needs census microdata or a Datafinder user profile
CLI
python3 skills/statsnz-geographic-tables/scripts/cli.py table 122777 --json
python3 skills/statsnz-geographic-tables/scripts/cli.py sample 122777 --json
python3 skills/statsnz-geographic-tables/scripts/cli.py table 123518 --json
python3 skills/statsnz-geographic-tables/scripts/cli.py sample 123518 --json
Commands:
table 122777|123518 [--json]shows the licence, feature count, publication time, version, and field namessample 122777|123518 [--json]reads the published version sample only
feature_count is the Koordinates count for the whole table. sample_row_count counts only the rows returned by the published sample. Table 122777 is a geography-version index. Table 123518 is a meshblock concordance whose sample is a short wide preview.
Each request times out after 15 seconds. A response over 256 KiB, or a sample over 200 rows, is rejected. Redirects must stay on datafinder.stats.govt.nz and on the table or sample path. The created_by user profile is not emitted.
--json prints a meta and results envelope. meta.latest_data is the table published_at timestamp, not a statistical reference period. A row field such as Date_Published keeps the geography version date, including its original spacing.
Resources
- CLI and tests:
scripts/ - Endpoint notes, licence, and bounds:
references/source-notes.md