COSTA.
For licensed producers

Publish your catalog once. Be readable everywhere.

Adopting COSTA means publishing your product, lot and lab data from your own domain and checking it with the free reference validator. There is no API to sign up for and no fees. Here is the path from zero to a live, validated feed.

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

Data discipline matters
Structured data is a public statement. If your record says Total THC 220 mg/g and your certificate of analysis says 185, you have published 220, in a form every regulator and aggregator can read. The validator compares labels with lab results, but only if you wire your COSTA data to the same source your lab results come from, not to your marketing copy.

FAQ

Do we need to remove our existing data feeds?
No. COSTA is additive. Keep providing whatever formats your existing partners require. Add COSTA on top so any new partner can consume your catalog without a custom integration.
Do we need permission to use the standard?
No. The specification and reference code are published under the MIT license. Use it, fork it, extend it.
What if a field in the spec doesn't apply to our product?
Leave it out. Label statements that don't apply to your product type must be omitted, and the validator tells you which ones are required. Publisher-specific data goes in the extensions object, with keys in the form prefix:name, so it never collides with standard fields.
How often do we need to update?
Whenever the data changes: a new lot, a new certificate of analysis, a new GTIN. Increase the product's recordVersion when it changes, and the feed's sequence number every time the feed changes, so readers know to refresh.
Does this conflict with our provincial reporting?
No. COSTA 2.0 includes profiles that check your data against OCS, BC LDB and SQDC supplier requirements, but it does not replace their intake processes. For example, the OCS still requires suppliers to use GS1 Canada for GTINs, barcodes, product images and ECCnet listing.
What does it cost?
COSTA itself costs nothing: no fees, no API keys, no membership dues. You still need GS1 GTINs, which distributors require, and development time to publish your feed.
Who validates that our data is honest?
COSTA does not audit producers. The reference validator catches inconsistencies, such as a label outside the permitted tolerance of the lab result or a Total THC that doesn't add up, and each lab report carries a fingerprint of the signed PDF so anyone can check that the data and the document match.

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.

Get the producer guideRead the full spec