Metrc API Guides
Practical guides for in-house developers and technical operators who work with Metrc data. Each one answers a specific question, with real requests you can run against the T3 API.
Updated
Start here
New to Metrc, or explaining it to someone who is? Begin with the basics of seed-to-sale tracking before diving into the API.
Developer guides
Authentication
Metrc API Keys: How Authentication Works
The vendor key and user key behind Metrc API requests, and how the T3 API authenticates with a single secret key instead.
Read the guide →Reference
Metrc API Documentation: A Map of the Endpoints
Packages, plants, harvests, transfers, tags, sales, lab results, labels, and reports, grouped by domain with the patterns they share.
Read the guide →Python
Using the Metrc API with Python
Fetch active packages with requests, paginate full collections, and move up to T3 Scripts and the T3 Python libraries.
Read the guide →Exports
How to Export Metrc Data to CSV, Excel, and Google Sheets
Pull complete datasets in one request, shape columns and filters, email large exports, and keep spreadsheets in sync.
Read the guide →Lab results
How to Pull Lab Results from the Metrc API
Attach lab results to packages and read normalized THC, CBD, and terpene values that are consistent in every state.
Read the guide →How the guides fit together
If you are starting a new integration, read the guides in this order:
- Authentication, so you can make an authenticated request.
- The documentation map, to find the endpoints that match your use case.
- Python, to turn those endpoints into working code.
- Exports and lab results, for the two datasets teams ask for most.
Every example uses the same base URL, the same authentication, and the same response shapes, because the T3 API works the same way in every Metrc state. What you learn in one guide carries straight into the next.
More T3 resources
- T3 Super Reports: export entire Metrc datasets and sync them to spreadsheets.
- T3 Scripts: ready-to-run Python automation built on the T3 Python libraries.
- T3 Label Studio: compliance labels with lab results pulled from Metrc.
- OpenTag: a free app for scanning Metrc tags with phones, browsers, and RFID scanners.
- T3 API wiki: step-by-step guides for transfers, plant batches, Spreadsheet Sync, and more.
The best way to talk to Metrc
The T3 API gives developers one consistent REST interface to Metrc data across every Metrc state, with interactive OpenAPI documentation, predictable JSON, and reports that export full datasets in a single request.
Track & Trace Tools is not affiliated with Metrc.