Learning Center · Answers · Readability

Can AI agents see prices that load with JavaScript?

Short answer

Many can't. Agents that read only the HTML your server sends never see a price that loads from an API after the page appears, so your product can drop out of a comparison. Put the price in the server's HTML as visible text and in structured data, and make sure the two agree.

Answer · Last checked November 12, 2026 · Based on Prices AI agents can read, Why AI agents can't see your JavaScript-only content, Product data that AI shopping agents can read

In more detail

Agents find prices in two places. One is the page text, such as the "$18.00" beside the add-to-cart button. The other is structured data, a block of schema.org JSON-LD that states price, currency and stock as plain values. Both have to be in the HTML your server sends, because many agents, and most AI search crawlers, read that HTML without running JavaScript.

Products with options have the same problem. A single price that changes with JavaScript when a shopper picks a size is invisible to an agent that doesn't click. List variant prices in the HTML, for example in the option labels, and describe each variant in structured data with its own price and availability. JavaScript can still update the price afterwards when a shopper changes options.

Structured data follows the same rule. Markup added by JavaScript after the page loads is invisible to agents that don't run JavaScript, and AgentScore flags this as a warning. Generate the visible price, the structured data, your product feeds and the cart from the same data, because an agent that finds two different prices can't tell which one is right.

What to do

  1. Open View Page Source on a product page and search for the price.
  2. If it's missing, ask your developer or platform to render the price on the server.
  3. List each variant's price in the HTML, such as "340 g, $18.00".
  4. Move JSON-LD out of your tag manager and into the page template.
  5. Generate page prices, structured data and feeds from one source of truth.

Read more

All answers

How does your own site do?

AgentScore checks your site in about a minute and ranks what to fix first.