Skip to content

Schema markup for specialty food & coffee

Schema markup for specialty food and coffee

Use Product for each coffee, tea or pantry item, with its net weight, brand and price, and the origin, process and roast as named values. That gives search engines and assistants the details behind a search like “light roast washed Ethiopian, 250g”.

The type to use

Product

schema.org's menu types (Menu, MenuItem) describe what a café or restaurant serves; a bag of beans you post is a Product. If you also run a café or a roastery counter people can visit, that location gets its own CafeOrCoffeeShop markup.

Product on schema.org

What to include

The properties that matter for specialty food & coffee

Most important first. Fill in what's true for you and leave out the rest; every value must also be on the page.

weight
Net weight as a QuantitativeValue (250 with unitCode GRM), so a 250 g bag and a 1 kg bag aren't compared on price alone.
additionalProperty
Region, process, roast level, varietal and tasting notes, each as a named value. Most have no schema.org field of their own, and they're what coffee buyers compare.
name
Origin, process and roast in the name (“Ethiopia Guji Washed, Light Roast”), matching how specialty coffee is searched.
brand
Your roastery or label; if you resell another roaster's coffee, theirs.
description
Tasting notes and what it's roasted for, in a sentence or two. For food, keep allergen and dietary wording exactly as on your label.
sku
One per bag size and grind, matching your roasting and packing lists.
image
The bag front and the beans themselves; for a gift set, everything in the box laid out.
offers
The price for this bag size. When a seasonal lot sells through, set it to OutOfStock rather than leaving it buyable.

Example

Copy, then make it yours

This is the markup for a made-up business. Replace every value with your own before you use it.

  1. Change every name, address, number and link to your own, and delete lines that don't apply.
  2. Paste it into your site's header code (website builders call it “code injection” or “custom code”), or let ShopCited add it for you.
  3. Check it with Google's Rich Results Test or the Schema Markup Validator.

Product JSON-LD

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Ethiopia Guji Washed, Light Roast, 250 g",
  "description": "A washed coffee from the Guji zone, roasted light for filter. Jasmine, peach and black tea; bright as an espresso.",
  "image": [
    "https://www.example.com/images/guji-bag.jpg",
    "https://www.example.com/images/guji-beans.jpg"
  ],
  "sku": "ETH-GUJ-250-WB",
  "brand": {
    "@type": "Brand",
    "name": "Saltbush Roasters"
  },
  "weight": {
    "@type": "QuantitativeValue",
    "value": 250,
    "unitCode": "GRM"
  },
  "additionalProperty": [
    {
      "@type": "PropertyValue",
      "name": "Origin",
      "value": "Guji, Oromia, Ethiopia"
    },
    {
      "@type": "PropertyValue",
      "name": "Process",
      "value": "Washed"
    },
    {
      "@type": "PropertyValue",
      "name": "Varietal",
      "value": "Ethiopian heirloom"
    },
    {
      "@type": "PropertyValue",
      "name": "Roast",
      "value": "Light"
    },
    {
      "@type": "PropertyValue",
      "name": "Tasting notes",
      "value": "Jasmine, peach, black tea"
    }
  ],
  "offers": {
    "@type": "Offer",
    "url": "https://www.example.com/products/ethiopia-guji-washed",
    "price": "24.00",
    "priceCurrency": "AUD",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition"
  }
}
</script>

Watch out

Mistakes specialty food & coffee make with markup

  • MenuItem for beans you ship

    Using menu markup for coffee and tea you post describes them as drinks ordered at a counter. What you sell online is a Product, whatever your café's menu calls it.

  • Dietary words the label doesn't use

    Adding “organic” or “gluten-free” to the markup because the ingredients seem to qualify says more than your label does. Use those words only where your label and certification already do.

  • Roast dates written into the code

    A fixed roast date in the markup is wrong a week later. Say how fresh you ship on the page (“roasted within 7 days of dispatch”) and leave dates out of the code.

Also worth adding

  • CafeOrCoffeeShop: If you have a café or roastery counter, on that location's page with its address and opening hours.
  • ProductGroup: For a coffee sold in 250 g and 1 kg bags on one page, each size with its own price.

FAQ

Specialty food & coffee: markup questions

Type to search these questions, or ask anything about getting found on Google and AI.

Whole bean and ground: one product or two?

One, if they cost the same: list the grind options on the page and let customers choose at checkout. When bag sizes differ in price, describe each size as its own variant.

How should I mark up a coffee subscription?

On its own page, with an offer priced per delivery, and how often it ships and how to pause it in text next to the button. Single-bag pages keep their own markup.

My hampers change every season. Does the markup have to change too?

Yes, whenever the contents do, because the description should match the box. If your shop builds the markup from the product's own fields, updating the product updates both.

Someone is asking for your product right now.

Check your store free, then press Optimize. Back to the orders.