← All guides

What Do @context and @type Mean in JSON-LD?

Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team

The short answer: @context is the block's declaration of vocabulary — "@context": "https://schema.org" tells every parser that the words Product, Offer, and price carry schema.org meanings. @type is the entity's classification — "@type": "Product" states what the block describes. AXO's structured-data dimension scores them separately: 20 points when a valid block carries @context, 20 when blocks declare @type values. A block missing @context speaks an unanchored dialect; a block missing @type gives agents data they cannot classify. Both belong in every block you ship — verify yours in the free audit.

Audit my store — free

What are @context and @type?

@context is a JSON-LD keyword that maps the document's terms to a shared vocabulary — on the web, almost always https://schema.org. @type is a keyword that assigns the described entity its class from that vocabulary: Product, Offer, Organization, WebSite, ItemList. Together they turn a JSON object from anonymous data into a statement in a language parsers worldwide implement.

@context: the act of joining the vocabulary

Without @context, a JSON object containing 'price' is just an object containing a string key — its meaning exists only in your head. With @context set to schema.org, 'price' resolves to a defined property with a defined type and defined relationships to Offer and Product. Parsers do not fetch the context to be polite; it is the key that tells them which rulebook interprets every term in the block.

Practically: the value is https://schema.org (http works in legacy blocks; https is the modern canonical form), placed at the top of every block. AXO checks that at least one valid block carries @context — a low bar reflecting that anchored markup is the minimum for interoperability — but the professional standard is every block, every time, because blocks are consumed independently and out of order.

@type: classification is what makes data actionable

Agents do not merely extract values; they classify situations. @type Product tells the agent 'this is something buyable, expect offers'; @type ItemList says 'this is an enumeration'; @type Organization identifies the store itself. The type determines which properties the agent looks for and which workflows it can start. A block with rich properties but no @type is a bag of facts about an unknown kind of thing — unusable for any workflow keyed on kinds.

AXO's parser collects every @type across your valid blocks, including types nested in @graph arrays, and reports the list among its passed checks. The type list is a fingerprint of your data layer's ambitions: a store showing Product, ItemList, Organization, and WebSite has described its world; a store showing only WebSite has described its homepage and stopped.

The two failures, separately

Missing @context with present @type: the block claims a class from a vocabulary it never declares. Strict consumers may still guess the intended vocabulary (the types are distinctive), but guessing is what structured data exists to abolish; AXO withholds the anchoring points and agents are entitled to discount the block. The fix is one line, which makes its absence a pure process signal: nobody validated the template against the standard's first requirement.

Missing @type with present @context: the block speaks the language but never says what it is describing. Properties float unattached — a price belonging to nothing classifiable. This failure usually comes from hand-rolled blocks that copied a properties list from an example of a different type. The audit's finding is blunt: blocks carry no @type. Both failures are one-line fixes whose persistence indicates a missing validation step, the theme of the validation guide.

Types beyond Product that earn their place

Product and Offer carry transactions, but the supporting cast matters. Organization (your store: name, url, logo, sameAs) identifies the seller across the web. WebSite, optionally with a SearchAction, describes the storefront itself. ItemList enumerates listings. BreadcrumbList, used in many templates, orients agents in your category tree. Each additional correct type widens the set of questions an agent can answer about your store without scraping.

Restraint applies as ever: emit types for entities the page genuinely presents. A Product block on the homepage for a product not sold there is not ambition; it is false testimony, and it devalues the true blocks beside it. The homepage markup guide covers the Organization/WebSite pair in full.

@graph: many entities, one block

A block may carry @graph: an array of typed entities described together — the Product, its Offer relationships, the Organization selling it — with cross-references by @id. AXO's parser descends into @graph when collecting types, crediting graphs properly. Graphs suit platforms that generate one consolidated block per page: the @graph guide covers when to consolidate and how @id references keep entities distinct.

Whether you choose one block per entity or a graph, the @context/@type requirements are unchanged: context at the block root, a type on every entity. The graph changes packaging, not obligations.

Checking your own blocks

Open a product page's source, find the ld+json block, and read its first lines: @context present and correct? @type Product? Then the audit's structured-data findings give the systematic version across the page: blocks found, validity, @context presence, and the type list. If the type list surprises you — types you never wrote (an app's contribution) or expected types missing — you have learned something about your own stack that no rendered page would ever show.

Make the check part of template acceptance: any new template or app that touches the head must show its @context and @type fingerprint in an audit before it ships. Two keywords, checked once per change, are the cheapest interoperability insurance in the stack.

The 5-action context-and-type check

  1. Open every template's ld+json block and confirm "@context": "https://schema.org" at its root.
  2. Confirm a concrete @type on every entity: Product on product pages, ItemList on listings, Organization/WebSite on the homepage.
  3. Read the audit's type list for your pages and investigate any surprise — unknown types are app contributions you did not approve.
  4. Never emit typeless blocks: a properties bag without @type is unclassifiable data; classify or remove it.
  5. Gate template changes on the fingerprint: new templates show their @context/@type in an audit before shipping.

Worked example: the block that described everything and classified nothing

Example — fictional, for illustration. A craft marketplace hand-rolls its JSON-LD from a tutorial, copying a property list — name, image, offers, price — but omitting both keywords: no @context, no @type. The block is valid JSON and visually convincing. Its first audit reports structured data at 50: presence and validity points earned, anchoring and typing points withheld, with findings naming both absences. Agents, meanwhile, treat the block as unclassifiable data and extract nothing from it.

Two lines fix what months of property-tuning could not: @context added, @type Product declared. Structured data jumps to 100 on the re-audit, and the products begin appearing in agent comparisons. The store's data was never wrong — it was unpublished in the only sense that matters: it never stated, in the shared language, what it was. Vocabulary first, eloquence second.

Related guides and the standing invitation

Companion reading for this topic: Why Does JSON-LD Matter for Shopping Agents? · When Should JSON-LD Use @graph for Multiple Entities? · What Organization and WebSite Markup Belongs on Your Homepage? · How Many JSON-LD Blocks Should a Page Have?.

Whatever this guide led you to change, prove it the way every guide in this series ends: re-run the free audit on the same page and compare the dimension it names, read how the audit works if a finding is unclear, and see plans if you want the full guidance report and re-audit history while you work. A change you have not re-measured is a hope, not a fix.

Run the free audit · All guides

Sources

Frequently asked questions

What does @context do in JSON-LD?

It anchors the block's terms to a shared vocabulary — https://schema.org — so every parser interprets Product, Offer, and price identically. Without it, the block's keys are unanchored strings whose meaning exists only in the author's head.

What does @type do?

It classifies the entity the block describes: Product, ItemList, Organization, WebSite. Classification tells agents which workflow applies and which properties to expect. Blocks without @type are unclassifiable and earn no typing points in AXO's structured-data dimension.

How many points do @context and @type carry?

Twenty each within AXO's structured-data dimension: 20 when a valid block carries @context, 20 when blocks declare @type values. Together with presence (30) and validity (30) they make up the dimension's 100.

Does @context need to be on every block?

The audit's bar is at least one valid block carrying it, but blocks are consumed independently, so the professional standard is every block, every time. The cost is one line per block.

What types should a store publish beyond Product?

ItemList on category pages, Organization and WebSite on the homepage, Offer nested in Products. Each describes an entity the page genuinely presents; never emit types for entities the page does not contain.

← Back