list_versions
List point-in-time versions of a New Zealand legislation work by work_id, newest first, to locate a version_id for a specific date.
Instructions
List all point-in-time versions of a work (identified by work_id), newest first by default, each with its website URL; the newest carries is_latest_version: true. Work-level metadata (title, type, status, agencies) is reported once at the top rather than repeated per version. Fetches every page automatically (the API serves at most 100 per page); pass page (and optionally per_page) to fetch a single page instead. Use this to find a version_id for a specific date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Fetch only this page of results. Omit to fetch every page and return all versions. | |
| sort | No | Order versions by date, ascending or descending (default desc = newest first). | |
| work_id | Yes | The work_id from a search result (e.g. "act_public_2020_31"). | |
| per_page | No | Page size (default 100, the API maximum). |