Developer Portal
API & AI Access
Integrate brand profiles, product catalogs, and brand-approved visual assets directly into your POS systems, digital menus, or AI agents.
Getting Started
The BrandrAI Brand Directory provides fully public, read-only access to published brand data. No API key or authentication header is required to read from these endpoints.
https://directory.brandrai.comAccess-Control-Allow-Origin: * allowing direct browser integration.per_page accepts up to 100 (default 24) — page through the results to retrieve the full directory.REST API Reference
Search through all published products in the directory with support for taxonomy attributes, vertical filters, and facets.
q(string) - Text query to search product names, brand names, SKUs and UPCs (defaults to*)group(string) - Filter by vertical product group slug (e.g.cannabis,coffee,cpg)category(string) - Filter by exact product categorystate(string) - Filter by state location code (e.g.CA,CO)brand(string) - Filter by exact brand slug.brand_slugis accepted as an alias.attr.<taxonomy>(string) - Dynamic taxonomy attribute filter (e.g.attr.strain-type=sativa,attr.effects=relaxed,uplifted). Comma-separated values are OR’d; separate taxonomies are AND’d.thc_min/thc_max(float) - Percentage range filter for THCcbd_min/cbd_max(float) - Percentage range filter for CBDterpenes_total_min/terpenes_total_max(float) - Percentage range filter for total terpenesfacet(string) - Comma-separated taxonomy attribute slugs to compute facets for (e.g.facet=strain-type,effects)page(integer) - Page offset (default:1)per_page(integer) - Results per page, up to 100 (default:24)
A filter that cannot be applied fails with 400 and is listed in parameters: an unknown name, a single-valued filter given two different values, or more than 12 attr.* taxonomies, 25 values per taxonomy or 12 facets. A misspelled filter fails loudly instead of returning the whole catalog. An empty value (state=) means not filtered, and _, utm_*, fbclid and gclid are ignored.
curl "https://directory.brandrai.com/api/v1/search?q=gummies&state=CA&group=cannabis&attr.strain-type=hybrid&thc_min=10"
{
"query": "gummies",
"page": 1,
"per_page": 24,
"found": 1,
"hits": [
{
"id": "1:15",
"product_name": "Sour Gummies 100mg",
"brand": "Acme Co",
"brand_slug": "acme-co",
"category": "Edibles",
"state": "CA",
"price": 20.0,
"image_url": "https://cdn.brandrai.com/acme/sour-gummies.jpg",
"rights_flag": "authorized",
"image_status": "verified",
"upc": "850000000000",
"sku_key": "acme-gummy-100",
"taxonomy_group_slug": "cannabis",
"attributes": {
"strain-type": {
"name": "Strain Type",
"group": "cannabis",
"type": "single_select",
"terms": [
{ "slug": "hybrid", "name": "Hybrid" }
]
},
"effects": {
"name": "Effects",
"group": "cannabis",
"type": "multi_select",
"terms": [
{ "slug": "relaxed", "name": "Relaxed" },
{ "slug": "uplifted", "name": "Uplifted" }
]
},
"cannabinoids": {
"name": "Cannabinoids",
"group": "cannabis",
"type": "lab_test",
"values": [
{ "slug": "thc", "name": "THC", "value": 10.0, "unit": "%", "display": "10%" }
],
"coa": {
"batch": "B-2291", "tested_at": "07/14/2026", "lab": "Verity Analytics",
"tested_on": "2026-07-14", "tested_through": null, "tested_at_parsed": true,
"coa_url": "https://app.brandrai.com/certificates/…"
}
}
},
"attributes_filter": {
"strain-type": ["hybrid"],
"effects": ["relaxed", "uplifted"],
"thc": 10.0
},
"coa_history": [
{
"lab": "Verity Analytics", "tested_at": "04/02/2026", "batch": "B-2107",
"tested_on": "2026-04-02", "tested_through": null, "tested_at_parsed": true,
"coa_url": null
}
],
"updated_at": 1792440000
}
],
"facets": [
{ "field": "category", "values": [ { "value": "Edibles", "count": 1 } ] },
{ "field": "attributes_filter.strain-type", "values": [ { "value": "hybrid", "count": 1 } ] }
]
}Attributes & Facets: attributes is keyed by taxonomy slug and carries the taxonomy’s name, group and type alongside either terms (selected values, with a path breadcrumb for hierarchies) or values (measurements, with unit and a preformatted display) plus any coa metadata. In coa, tested_at is the test date as the certificate prints it; sort on tested_on and tested_through (ISO dates read from it) only when tested_at_parsed is true. coa_url links the certificate document, and is set only when the panel is entirely the reading of that document; it is null otherwise, for any of several reasons. attributes_filter provides normalized slugs and percentages for fast client filtering; only ratio units (%, mg/g, ppm) normalize, so an absolute reading like mg/serving appears under attributes only. coa_history, when present, lists the product’s earlier certificates, newest first, with their lab, tested_at, batch and coa_url (null unless the brand publishes that document). It never carries values: quote only what values holds.
List all active brand profiles in the directory, sorted alphabetically.
q(string) - Filter brands matching a name or slugstate(string) - Filter brands active in a statecategory(string) - Filter brands by product categorypage(integer) - Page offset (default:1)per_page(integer) - Results per page, up to 100 (default:24)
curl "https://directory.brandrai.com/api/v1/brands?per_page=1"
{
"page": 1,
"per_page": 1,
"total": 9,
"hits": [
{
"slug": "backpack-boyz",
"name": "Backpack Boyz",
"sampleImageUrl": "https://cdn.brandrai.com/transform/files/.../main.jpg",
"states": [],
"categories": ["Bud/Flower", "Vape Carts", "Raw Pre-Rolls"],
"productCount": 15,
"verificationState": "unclaimed",
"updatedAt": 1784906913
}
]
}Retrieve details for a single brand profile by its unique URL slug. Returns a 404 error if not found.
include=products- Include the top 100 products belonging to this brand in the response.
curl "https://directory.brandrai.com/api/v1/brands/backpack-boyz?include=products"
The brand’s own authored content, in its own words — about, what they do, values, team, locations, retailers, prices, press, events and announcements. Published by the brand through the BrandrAI app; drafts and anything held back from the public page never appear here.
keys(string) - Comma-separated module keys to return, e.g.keys=team,locationsview=summary- Keys, titles and item counts only, without the content bodiesaudience=ai- Exclude modules the brand withheld from AI answers
curl "https://directory.brandrai.com/api/v1/brands/backpack-boyz/content-modules?view=summary"
{
"brand": { "slug": "backpack-boyz", "name": "Backpack Boyz" },
"updated_at": 1774483200,
"content_modules": [
{ "key": "about", "title": "About", "description": "", "item_count": 0 },
{ "key": "locations", "title": "Where to find us", "description": "", "item_count": 4 }
]
}The brand’s schema.org graph, built from its published record, for its own website: the Organization (with the brand’s website as its URL), the published FAQ, and up to 48 products, each with its certificate where one is published. Served as application/ld+json and already escaped for a script tag, so the body can be pasted into <script type="application/ld+json"> as it is. Also at /v1/[slug]/jsonld. Returns a 404 error if the brand is not on the directory.
One graph per page. If the site already emits schema (an SEO plugin usually emits an Organization), turn that schema off on these pages or merge the two graphs by @id. Two unmerged Organizations give search engines conflicting answers.
curl "https://directory.brandrai.com/api/v1/brands/backpack-boyz/jsonld"
Retrieve an enumerable, paginated list of product listings belonging to a specific brand with full taxonomy attribute filters.
q(string) - Search query filtering product names for this brandgroup(string) - Filter by vertical product group slugcategory(string) - Filter products by categorystate(string) - Filter products by state location code (e.g.CA)attr.<taxonomy>(string) - Dynamic taxonomy attribute filter (e.g.attr.strain-type=hybrid)thc_min/thc_max(float) - Percentage range filter for THCcbd_min/cbd_max(float) - Percentage range filter for CBDterpenes_total_min/terpenes_total_max(float) - Percentage range filter for total terpenesfacet(string) - Extra attribute facets to compute (e.g.facet=strain-type,effects)page(integer) - Page offset (default:1)per_page(integer) - Results per page, up to 100 (default:24)
curl "https://directory.brandrai.com/api/v1/brands/backpack-boyz/products?per_page=2&attr.strain-type=hybrid"
{
"query": "",
"page": 1,
"per_page": 2,
"found": 15,
"hits": [
{
"id": "71:6176",
"product_name": "Backpack Boyz 3.5g Flower",
"brand": "Backpack Boyz",
"brand_slug": "backpack-boyz",
"category": "Bud/Flower",
"image_url": "https://cdn.brandrai.com/transform/files/.../main.webp",
"rights_flag": "authorized",
"image_status": "verified",
"taxonomy_group_slug": "cannabis",
"attributes": {
"strain-type": {
"name": "Strain Type",
"group": "cannabis",
"type": "single_select",
"terms": [ { "slug": "hybrid", "name": "Hybrid" } ]
}
},
"attributes_filter": {
"strain-type": ["hybrid"]
}
}
],
"facets": []
}Look up a single product’s published image using identifiers like UPC, brand+SKU, or name fuzzy matching. Returns { match: {...} } on success, or { match: null } with a 404 when no match is found.
upc(string) - UPC barcode digitsbrand(string) - Brand name or slug. A value that names no brand, or more than one, returns a 404 with anerrorthat says why.sku(string) - SKU codename(string) - Product name (used for fuzzy matching)size(string) - Product size (e.g.3.5g)strain(string) - Strain classification (sativa, indica, hybrid)
curl "https://directory.brandrai.com/api/v1/lookup?brand=BrandrAI%20Inc&name=storage%20jar"
{
"match": {
"product_id": "71:6176",
"brand": "BrandrAI Inc",
"image_url": "https://cdn.brandrai.com/transform/files/.../brandrai-storage-jar-main.webp",
"match_method": "fuzzy",
"confidence": 0.667
}
}Prefer an exact upc or brand+sku match when you have one. For name matches, check confidence (0–1) before displaying the result. A name match never reports more than 0.9.
Model Context Protocol (MCP)
For AI agents, custom GPTs, and Claude desktop environments, the directory hosts a public Model Context Protocol (MCP) server. This allows LLMs to interactively discover brands, lookup product images, and search listings directly.
https://directory.brandrai.com/mcpsearch_products(query, category, state, brand_slug, page, per_page)get_brand(slug, include_products)get_brand_products(slug, query, category, state, page, per_page)list_brands(query, state, category, page, per_page)get_brand_content(slug, keys, view)lookup_product_image(upc, brand, sku, name, size, strain), wherebrandtakes the brand name or slug
The server tells an agent to answer a question about a product’s lab values (a terpene profile, a cannabinoid) from attributes.<taxonomy>.values only, and to cite the same panel’s coa with the answer: the laboratory, the test date, the batch, and coa_url, the certificate document, when it is set. Only a panel whose coa_url is set is entirely the reading of that document. When coa_url is null or missing, the record links no document for the panel and does not confirm that every value in it was read from the named certificate; the agent is told to say both, without giving a reason, and to link nothing in its place.
{
"mcpServers": {
"brandrai-directory": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://directory.brandrai.com/mcp"
]
}
}
}Download a whole catalogue
Every product a brand has published, in one file, with no account. The same listings as /api/v1/brands/{slug}/products, walked to the end rather than paged. Both are linked from each brand page's Downloads panel.
GET /api/v1/brands/{slug}/products.csv: one row per product, one column per attribute and lab value. Opens in a spreadsheet.GET /api/v1/brands/{slug}/products.json:{ brand_slug, count, total, truncated, products }.truncatedis true only past 5,000 products.
Integration Recipes
If you just need a brand's images and specs on your menu, use Start here below: it needs no code. The numbered recipes work anywhere you can make an HTTP request — an online menu, a POS screen, a marketplace feed, or an AI agent.
Start here · Get a brand's images and specs without writing any code
- Find the brand: search for the brand or product at the top of any page, or browse all brands.
- On a product whose image is marked Verified, press Download to save the brand-approved image, or Copy link to paste its address into your menu or POS. If a Verified image shows no buttons yet, they appear after the brand's next update; until then, save the image from the page.
- Where the brand has published lab results, they are listed with the product. Copy the values into your listing.
1 · Replace a wrong or missing image on your menu
The fastest win. You already know the product (UPC, or brand + name) — fetch the brand-approved image and drop it in.
// Given a UPC on your menu, swap in the verified image
const res = await fetch(
"https://directory.brandrai.com/api/v1/lookup?upc=" + encodeURIComponent(upc)
);
if (res.ok) {
const { match } = await res.json();
if (match) imgEl.src = match.image_url; // brand-approved image
}2 · Mirror a full catalog
The directory is paginated (100 max per page). Page through /brands, then pull each brand’s products.
async function allBrands() {
const out = [];
for (let page = 1; ; page++) {
const url = "https://directory.brandrai.com/api/v1/brands?per_page=100&page=" + page;
const { hits } = await (await fetch(url)).json();
if (!hits.length) break;
out.push(...hits);
}
return out;
}
// then, per brand:
// GET /api/v1/brands/{slug}?include=products3 · Embed a product search widget
CORS is open, so you can call the API straight from the browser — no proxy, no key.
const url = "https://directory.brandrai.com/api/v1/search?q=" + encodeURIComponent(term);
const { hits } = await (await fetch(url)).json();
// render hits[].product_name + hits[].image_url
// optional: only show hits where hits[].rights_flag === "authorized"4 · Give an AI agent live access
Add the MCP config above to Claude Desktop, Cursor, or Windsurf. The agent can then search brands and fetch verified images conversationally — always reading the current, brand-approved data.