← All guides

How Do You Add JSON-LD Product Markup to a Product Page?

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

The short answer: Add one application/ld+json script block per product page containing @context (https://schema.org), @type Product, the product's name, image, description, and brand, and an offers object with @type Offer, price, priceCurrency, and availability. Keep values generated from the same data that renders the visible page, then validate the block parses as JSON. AXO's product-feed dimension awards its largest share (40 points) for exactly this markup, and the free audit will confirm it is seen.

Audit my store — free

What is JSON-LD Product markup?

JSON-LD Product markup is a script block of type application/ld+json embedded in a product page, written in the schema.org vocabulary, that states the product's identity and offer in machine-readable form: @type Product, name, image, description, brand, and an offers block carrying price, priceCurrency, and availability. Agents and crawlers parse it directly instead of interpreting rendered layout.

The skeleton: context, type, identity

Every block starts the same way: "@context": "https://schema.org" anchors the vocabulary, and "@type": "Product" classifies the entity. Then the identity fields: name (the product's real name, not the page title stuffed with keywords), image (a URL to the product image), description (a plain summary), and brand as an object with @type Brand and its name. These four plus offers are the core AXO's guidance names; sku and other identifiers strengthen the block where you have them.

Generate the block from your product data — the same record that renders the visible price — never by hand-typing values into a template. Hand-maintained markup drifts from the page within one sale cycle, and an agent that finds markup disagreeing with the visible page trusts neither. Templated generation is the difference between markup as documentation and markup as decoration.

The offers block: where transactions live

Inside offers, an object with @type Offer carries the fields an agent spends money on: price (a number or numeric string), priceCurrency (an ISO code like USD), and availability (a schema.org URL such as https://schema.org/InStock or OutOfStock). Add url for the canonical product page where your generator makes it easy. Of everything in the block, availability is the field stores most often omit — and the one agents most need, because recommending an out-of-stock product is the failure their users remember.

Sale pricing deserves one rule: the offers price is the price a buyer pays now, not the struck-through anchor price. Agents compare the stated price against the checkout total; a mismatch discovered at the till ends the relationship between that agent's operator and your store. The Offer markup guide treats each field in depth.

Placement and count: one block, in the document

Place the block in the head or early body of the product template; agents parse the document, and either location is read, but the head keeps it with the page's other machine-readable material. Emit exactly one canonical Product block per product page. Multiple apps injecting partial blocks is the standard failure: three fragments, none complete, one invalid — consolidated into one owned block, the problem class disappears.

Variant-heavy products (sizes, colours) still get one Product block for the page's canonical product; where your generator supports it, model variants through the mechanisms in the ProductGroup guide rather than emitting a competing block per variant. Consistency of shape across the catalogue is what lets agents parse at scale.

Validation: prove it parses before agents judge it

A block that fails JSON parsing is discarded whole — trailing commas and unescaped quotes are the usual killers, typically introduced when a product name containing quotes is interpolated carelessly. Validate mechanically: extract every ld+json block from a rendered page, run each through a JSON parser, and fail the build or the deployment if any errors. This check belongs in CI beside your other template tests.

Then validate semantically with the audit: paste the page into the free audit and confirm the structured-data dimension reports your blocks found, all parsing, @context present, and Product among the types. That is the same reading an agent performs, minus the agent. The validation guide covers the full routine.

What to do on listing and home pages

Product markup belongs on product pages; listing pages get ItemList markup naming the products they contain, and the homepage gets Organization and WebSite blocks identifying the store itself. Emitting Product blocks for products not on the page — a common growth-hack — teaches agents to distrust your markup catalogue-wide. Each page type states what it is: ItemList for category pages, Organization for the homepage.

The discipline generalises: markup is testimony. A store whose testimony is precise page by page earns the agent's confidence at exactly the moment confidence converts — when the agent states your price to its user and stakes its own credibility on your data being right.

A worked pattern you can copy

A minimal complete block, as a pattern (values from your product record): @context schema.org, @type Product, name, image, description, brand {@type Brand, name}, offers {@type Offer, price, priceCurrency, availability, url}. Eight fields, one block, generated per product. Stores agonise over advanced properties while missing availability; the audit's scoring shares the agents' priorities — completeness of the transactional core first, enrichment second.

Ship the pattern to one template, audit one page to green, then roll it across the catalogue. The re-audit history pattern in re-auditing after every fix keeps the rollout honest: template by template, score by score, no catalogue-wide claims until the last template's audit agrees.

The 5-action Product markup routine

  1. Generate, don't hand-write: emit the block from the same product record that renders the visible page.
  2. Include the transactional core: name, image, description, brand, and offers with price, priceCurrency, availability.
  3. One canonical block per product page; consolidate app-injected fragments into it.
  4. Validate mechanically: every ld+json block on the page parses as JSON, checked automatically.
  5. Audit one page to green, then roll the template across the catalogue, re-auditing per template.

Worked example: a shoe store's first Product block

Example — fictional, for illustration. Stride Supply sells 480 shoes. Its theme emits OpenGraph tags but no JSON-LD, so product feed scores 25 and structured data 30 on the first audit. A developer adds a generated Product block to the product template: name, image, description, brand, offers with price 129.00, priceCurrency USD, availability InStock. The first deployment fails validation — a shoe named with a quoted nickname breaks the JSON — and the parser check catches it before the audit does; the generator switches to a proper JSON encoder.

With encoding fixed, the re-audit reads product feed 25 → 75 and structured data 30 → 100, and the overall grade climbs from D to B once the feed ships. The block itself is eight fields. The work was not the markup — it was the generation discipline (data-driven, encoded, validated) that keeps 480 products' markup true through every price change and sale.

Related guides and the standing invitation

Companion reading for this topic: What Offer Markup Tells Agents Your Price and Availability? · How Do You Validate JSON-LD Before Agents Discard It? · How Many JSON-LD Blocks Should a Page Have? · Why Does JSON-LD Matter for Shopping Agents?.

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

Where does the JSON-LD block go on the page?

In the head or early body of the product template. Agents parse the whole document, but the head groups it with your other machine-readable material and keeps it clear of body-content tooling that might mangle it.

Which fields are essential in a Product block?

The transactional core: name, image, description, brand, and an offers block with price, priceCurrency, and availability. Availability is the most commonly omitted and one of the most consequential, because agents will not recommend what they cannot confirm is buyable.

Can I paste one static block into my template and change values by hand?

You can, and it will drift from your real prices within one sale cycle. Generate the block from the product record that renders the page, with a real JSON encoder, so markup and page can never disagree.

How many Product blocks should a page have?

One canonical block for the page's product. Multiple partial blocks from different apps are the standard failure mode; consolidate them. Variants belong inside the one block's structure, not in competing blocks.

How do I know agents can read my block?

Validate that it parses as JSON, then paste the page into the free AXO audit: the structured-data dimension reports blocks found, validity, @context, and types — the same reading an agent performs.

← Back