Skip to content
Back to skills

Statsnz Classifications Nz

ASecurity

Query Stats NZ DataInfo+ / Aria classifications, concepts, concordances, and quality standards with lookup IDs, code lists, version history, and category metadata.

  • 31 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 10, 2026
datapythongoapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 10, 2026

npx -y skills add thecolab-ai/.skills --skill statsnz-classifications-nz --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Statsnz Classifications Nz?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Statsnz Classifications Nz
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thecolab-ai-statsnz-classifications-nz/badge)](https://www.skillsdirectory.com/skills/thecolab-ai-statsnz-classifications-nz)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: statsnz-classifications-nz
description: "Query Stats NZ DataInfo+ / Aria classifications, concepts, concordances, and quality standards with lookup IDs, code lists, version history, and category metadata."
license: MIT
compatibility: "Requires Python 3.10+ and network access for live data"
metadata:
  thecolab.category: "public-data"
  thecolab.source_owner: "Stats NZ"
  thecolab.source_type: "official"
  thecolab.auth: "none"
  thecolab.access_mode: "public-api"
  thecolab.data_class: "public"
  thecolab.writes: "false"
  thecolab.browser: "false"
  thecolab.risk: "low"
  thecolab.cache_ttl: "24h"
  thecolab.schema_version: "1"
  thecolab.skill_type: "public-api"
  thecolab.pack: "nz-public-data"
  thecolab.source_url: "https://datainfoplus.stats.govt.nz"
  thecolab.allowed_domains: "datainfoplus.stats.govt.nz"
  thecolab.last_verified: "2026-07-19"
  thecolab.health: "healthy"
  thecolab.maintainer: "@adam91holt"
---

# Stats NZ DataInfo+ / Aria

## Goal

Read-only access to Stats NZ DataInfo+ / Aria metadata for NZ statistical classifications and their lineage.

This skill lives in `scripts/cli.py` and documents upstream behavior in `references/api-notes.md`.

## Use this when

- You need definitions, labels, and stable IDs for classifications, concept variables, and related metadata.
- You need to inspect code lists or resolve category labels used by official NZ classifications.
- You need concordance or version metadata where the source exposes it.
- You need a machine-readable source link for reproducible metadata workflows.

## Do not use this for

- Time series data or non-DataInfo+ statistics values.
- High-volume mirroring or full catalog scraping.
- Any source with explicit rate limits or restrictions.

## Commands

- `search TERM [--scope {all,codelists,concepts,qualitystandards,concept-sets}] [--limit N] [--json]` - search DataInfo+ items
- `classification get ID [--agency AGENCY] [--code-limit N] [--code-depth D] [--category-limit N] [--json]` - inspect one item, returning metadata and code/category references when present
- `classification versions ID [--agency AGENCY] [--json]` - fetch public version history
- `classification categories ID [--agency AGENCY] [--limit N] [--json]` - resolve category metadata referenced by a classification
- `concordance FROM TO [--query-queries Q1,Q2] [--limit N] [--json]` - return concept-set/registry entries that match a concordance/crosswalk pair when available
- `standards [QUERY] [--limit N] [--json]` - list currently discoverable quality standards metadata records

## Sources

- Search pages: `https://datainfoplus.stats.govt.nz/search/{scope}`
- Item JSON: `https://datainfoplus.stats.govt.nz/item/{agency}/{identifier}/json`
- Version history: `https://datainfoplus.stats.govt.nz/item/{agency}/{identifier}/_history`

## Notes

- Stdlib-only, read-only HTTP calls.
- Upstream outages and blocked responses are returned as `upstream_unavailable`/`upstream_blocked` status payloads in JSON mode.
- Never fabricate metadata: payloads are returned only from public upstream pages.
- `--json` is supported on all data commands.

Files in this skill

  • SKILL.md3.1 KB
  • references/api-notes.md2 KB
  • references/source-notes.md477 B
  • scripts/cli.py32.9 KB
  • scripts/smoke_test.py5.6 KB
  • scripts/test_contract.py376 B
  • tests/fixtures/contract.json186 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.