What you'll need
- Your GS1 GTINs for each product and packaging level.
- The values printed on your labels: class of cannabis, net content, and Total THC and Total CBD in the label's units (mg/g for dried cannabis).
- Lot numbers, packaging dates and certificates of analysis for each lot.
- Your Health Canada licence number.
- A developer comfortable with JSON. Node.js is needed to run the reference validator.
Adoption in five steps
- Give each product a permanent COSTA ID. An https URL on your domain, such as https://yourdomain.ca/costa/products/{uuid}. Never reuse it, and don't put the GTIN in it.
- Describe the product. Start from the producer guide and the examples in the repository. Record every GTIN with the date it took effect, pick the class and form, and enter potency ranges in label units.
- Publish lots and lab reports. For each lot, publish the lot number, packaging date and the potency printed on its label, and link the final-form certificate of analysis.
- Validate. Run the reference validator:
cd tools && npm ci && node validate.mjs your-feed.json. Fix every error and review every warning. Declare the provinces you sell into in conformsTo, and the validator checks those requirements too. - Publish and register. Serve your feed at
/.well-known/costa/feed.json, link each product page to its COSTA record, add your feed to registry/publishers.json by pull request, and email hello@gocosta.org.
A worked example
A COSTA record has two parts. On the product page, keep ordinary schema.org markup for search engines and link to the COSTA record:
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "Northern Lights Dried Flower 3.5 g",
"brand": { "@type": "Brand", "name": "Northshore" },
"gtin14": "00628123000105",
"image": "https://producer.example/img/nl-35-front.jpg",
"url": "https://producer.example/products/northern-lights-3-5g"
}
</script>
<link rel="alternate" type="application/costa+json"
href="https://producer.example/costa/products/3f2a9c1e-7b1d-4c55-9a43-0d6b8f1e2a10">The COSTA record itself lives at that URL, or in your feed. Each lot gets its own record, linked to the product and to its lab report:
{
"@context": "https://gocosta.org/ns/costa-2.0.jsonld",
"@type": "CostaLot",
"costaVersion": "2.0",
"lotId": "https://producer.example/costa/lots/NSC-NL-2610A",
"product": "https://producer.example/costa/products/3f2a9c1e-7b1d-4c55-9a43-0d6b8f1e2a10",
"gtin": "00628123000105",
"lotNumber": "NSC-NL-2610A",
"packagingDate": "2026-10-14",
"labelledPotency": {
"totalThc": { "unit": "mg/g", "value": 231 },
"totalCbd": { "unit": "mg/g", "value": 0.8 }
},
"labReports": [
{ "reportId": "https://lab.example/reports/EAL-26-10412", "scope": "finalForm",
"sha256": "3f6c76bed796e031b0f1b80216aaf8e30d60aef4bd86f3300c6719004592d760" }
],
"qaRelease": { "releasedDate": "2026-10-20" }
}The product record looks like the example on the home page. See the full specification for every field, including lab reports, GTIN history and provincial profiles.
FAQ
Do we need to remove our existing data feeds?
Do we need permission to use the standard?
What if a field in the spec doesn't apply to our product?
How often do we need to update?
Does this conflict with our provincial reporting?
What does it cost?
Who validates that our data is honest?
Ready to publish?
Email hello@gocosta.org once your feed is live. We will add you to the adopter directory and notify the marketplaces and aggregators that read COSTA feeds.