Nzpost

From thecolab-ai/.skills · View interactive version

Nzpost is an AI agent skill from the GitHub repository thecolab-ai/.skills. Query NZ Post public APIs for parcel tracking, PostShop/parcel-collect/postbox location search, and address/postcode lookup. No authentication required. Use when the task involves tracking an NZ Post parcel, finding a nearby PostShop or parcel-collect point, looking up a New Zealand delivery address

How to use this skill

Skill file

NZ Post

Goal

Query NZ Post public APIs for parcel tracking, location search (PostShops, parcel-collect points, postboxes), and address/postcode lookup. No authentication required.

Use this when

Do not use this for

Preferred workflow

  1. Run track <number> for a human-readable status summary and event timeline
  2. Run locations --near "SUBURB" to find nearby NZ Post facilities
  3. Run address "QUERY" to look up NZ delivery addresses and postcodes
  4. Add --json to any command for machine-readable output suitable for piping

CLI

Run with:

python3 skills/nzpost/scripts/cli.py <command> [flags]

`track`

Track one or more parcels by tracking number.

# Human-readable output
python3 skills/nzpost/scripts/cli.py track 00794210392715622565

# Machine-readable JSON
python3 skills/nzpost/scripts/cli.py track 00794210392715622565 --json

# Multiple parcels
python3 skills/nzpost/scripts/cli.py track 00794210392715622565 00000000000000000000 --json

# International UPU format
python3 skills/nzpost/scripts/cli.py track EA123456789NZ --json

`locations`

Find PostShops, parcel-collect points, and postboxes near a location.

# By place name
python3 skills/nzpost/scripts/cli.py locations --near "Clevedon, Auckland" --limit 5

# By coordinates
python3 skills/nzpost/scripts/cli.py locations --lat -36.8485 --lon 174.7633 --limit 10

# By keyword
python3 skills/nzpost/scripts/cli.py locations --keyword "Auckland CBD" --limit 10

# Filter by type
python3 skills/nzpost/scripts/cli.py locations --near "Auckland CBD" --type postshop

# JSON output
python3 skills/nzpost/scripts/cli.py locations --near "Clevedon" --json

`address`

Look up NZ delivery addresses and postcodes.

# Human-readable list
python3 skills/nzpost/scripts/cli.py address "Papakura" --limit 10

# JSON output
python3 skills/nzpost/scripts/cli.py address "Papakura" --json

Tracking number formats

NZ Post accepts a wide range of tracking number formats:

Output fields (JSON, track)

| Field | Description |

|-------|-------------|

| tracking_reference | The normalised tracking number |

| status | Current delivery status label |

| last_updated | ISO 8601 UTC timestamp of the latest event |

| last_depot | Last known depot name, if available |

| event_count | Total number of tracking events |

| events[] | Full event timeline, oldest first |

| events[].date_time | UTC timestamp |

| events[].status | Short status label |

| events[].description | Longer description (HTML stripped) |

| events[].depot_name | Depot name, if applicable |

| events[].run_name | Courier run or area name, if applicable |

| events[].edifact_code | Internal EDIFACT event code |

Resources

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.