T3 API Supercollections¶
With Metrc data, users frequently encounter these sorts of problems:
- "I want to load my packages, but also need test results for each"
- "I want to load my transfers, but also want all the packages"
- "I want to load my items, but I also want all the images and ingredients"
Enter supercollections
flowchart TB
subgraph c["Collection: /v2/packages/active"]
direction LR
C1["One request"] --> C3["Packages,<br/>no metadata"] --> C4["Fast, generous<br/>rate limit"]
end
subgraph s["Supercollection: /v2/packages/active/super?include=labResults"]
direction LR
S1["One request"] --> S3["Packages with labResults<br/>attached and metadata<br/>fields populated"] --> S4["Slower, lower<br/>rate limit"]
end What is a Supercollection?¶
The best way to understand supercollections is to compare them to T3 collections:
- T3 collection endpoints return one page of records and nothing else.
- Examples: Active Packages, Incoming Transfers, Active Items.
- This keeps them fast, with generous rate limits.
- To load related data for a collection, you request it per row.
- T3 supercollection endpoints are designed to eagerly load all metadata for each collection object.
- Examples: Active Superpackages, Incoming Supertransfers, Superitems.
- They extend existing collection endpoint behavior.
- This allows the endpoint to efficiently load, organize, and analyze the metadata for you.
- Endpoints have lower rate limits, and are slower to use.
- Pages hold at most 50 records.
pageSizedefaults to 50, and a larger value returns400. - Metadata is loaded declaratively. For example, you'd specify you want lab results and history for an active superpackages request.
Available Supercollection Endpoints¶
| Supercollection | Path | include options |
|---|---|---|
| Superitems | /v2/items/super | notes, history, ingredients, images |
| Active Superpackages | /v2/packages/active/super | labResults, labResultBatches, sourceHarvests, history, coaResults |
| Inactive Superpackages | /v2/packages/inactive/super | labResults, labResultBatches, sourceHarvests, history, coaResults |
| In Transit Superpackages | /v2/packages/intransit/super | labResults, labResultBatches, sourceHarvests, history, coaResults |
| On Hold Superpackages | /v2/packages/onhold/super | labResults, labResultBatches, sourceHarvests, history, coaResults |
| Product Label Superpackages | /v2/packages/product-labels/super | labResults, labResultBatches, sourceHarvests, history, coaResults |
| Super Lab Samples | /v2/packages/lab-samples/super | (none) |
| Incoming Active Supertransfers | /v2/transfers/incoming/active/super | packages, transporters |
| Incoming Inactive Supertransfers | /v2/transfers/incoming/inactive/super | packages, transporters |
| Outgoing Active Supertransfers | /v2/transfers/outgoing/active/super | packages, transporters, history |
| Outgoing Inactive Supertransfers | /v2/transfers/outgoing/inactive/super | packages, transporters, history |
| Rejected Supertransfers | /v2/transfers/rejected/super | packages, transporters, history |
| Hub Supertransfers | /v2/transfers/hub/super | packages, history |
| Active Superharvests | /v2/harvests/active/super | history, plants, packages |
| Inactive Superharvests | /v2/harvests/inactive/super | history, plants, packages |
| On Hold Superharvests | /v2/harvests/onhold/super | history, plants, packages |
| Vegetative Superplants | /v2/plants/vegetative/super | history |
| Flowering Superplants | /v2/plants/flowering/super | history |
| Inactive Superplants | /v2/plants/inactive/super | history |
| On Hold Superplants | /v2/plants/onhold/super | history |
| Active Mother Superplants | /v2/plants/mother/active/super | history |
| Inactive Mother Superplants | /v2/plants/mother/inactive/super | history |
| On Hold Mother Superplants | /v2/plants/mother/onhold/super | history |
| Active Superplantbatches | /v2/plantbatches/active/super | history |
| Inactive Superplantbatches | /v2/plantbatches/inactive/super | history |
| On Hold Superplantbatches | /v2/plantbatches/onhold/super | history |
| Super Plant Waste | /v2/plants/waste/super | plants, packages |
| Transferred Superpackages | /v2/packages/transferred/super | (none) |
| Super Plant Additives | /v2/plants/additives/super | plants, activeIngredients |
| Active Supersales | /v2/sales/active/super | transactions |
| Inactive Supersales | /v2/sales/inactive/super | transactions |
| Available Supertags | /v2/tags/available/super | (none) |
| Used Supertags | /v2/tags/used/super | (none) |
| Voided Supertags | /v2/tags/voided/super | (none) |
| Staged Product Label Supertags | /v2/packages/staged-product-labels/super | (none) |
| Current Supertagorders | /v2/tagorders/current/super | (none) |
| Historical Supertagorders | /v2/tagorders/history/super | (none) |
| Active Superprocessingjobs | /v2/processingjobs/active/super | createdPackages, sourcePackages, history |
| Inactive Superprocessingjobs | /v2/processingjobs/inactive/super | createdPackages, sourcePackages, history |
| Active Superlocations | /v2/locations/active/super | (none) |
| Superstrains | /v2/strains/super | (none) |
The tag, tag order, location and strain rows have no include options and return the same records as their plain collections; they exist so every path follows the same pattern. A tag order's details line items are part of the order itself, so they are present on the plain collection too.
{
"orderNumber": "SBX-MO-2026-035-0594",
"statusName": "Received",
"details": [
{ "tagType": "CannabisPackage", "quantity": 26, "unitPrice": 0.46 },
{ "tagType": "CannabisPlant", "quantity": 56, "unitPrice": 0.46 }
],
"metadata": {
"summary": "SBX-MO-2026-035-0594 · Received · 82 tags",
"description": "Tag order SBX-MO-2026-035-0594. Status: Received. Ordered: 82 tags."
}
}
Superpackages Example¶
This is the most commonly used supercollection. Below is an example that loads all active superpackages with lab results for packages in the "Buds" product category:
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.12"
# dependencies = ["t3api-utils[tui]>=2.1.0"]
# ///
import t3api_utils as t3
with t3.connect() as client:
license = client.license or client.pick_license()
packages = client.collect(
"METRC_ACTIVE_SUPERPACKAGES",
license=license,
filter=["item.productCategoryName__eq:Buds"],
include=["labResults"],
page_size=50,
)
t3.inspect(packages, title="Buds with lab results")
METRC_ACTIVE_SUPERPACKAGES is the T3 endpoint ID for /v2/packages/active/super. include takes a list, and the library sends each value as its own include parameter. Supercollections return at most 50 rows per page, so pass page_size=50.
Each object in the response will contain:
- All the standard package fields (label, item, quantity, etc.).
- A
labResultsarray with the raw Metrc lab result data. - A
metadataobject withextractedLabResults,testSamplePackageLabels,labResultPdfs,indexedLabResultsandhasTerpeneResults, plus the always-presentsummary,description,netWeightOrVolumeandnetWeightOrVolumeUnitOfMeasure.
Next Steps¶
-
Example scripts:
basics/super-collections.py(packages with lab results and source harvests),packages/export-lab-results.py(one row per lab test),packages/export-package-history.py(one row per history event). -
Every include, per collection: Supercollection Includes.
- Hydrate a single record instead of a page: Loading One Record by ID.
- Export a whole supercollection at once with Super Reports.
- Find records to load with Search.