When AI shopping agents read your catalog: choosing among three API paths
Whether product data should be exposed as an API isn't a technology question first. It's a question about who reads it. If the reader is a buyer, a product page that spells out the specs is enough. If the reader is an AI shopping agent, no amount of page design helps, because it doesn't read pages. It calls endpoints.
Two industry write-ups from late November 2026 frame the shift bluntly. A trend roundup reports that 38% of consumers have already completed a purchase through an AI chat or virtual assistant. A 2027 forecast aimed at retailers and service providers says roughly one third of commerce service providers plan to launch agentic commerce platforms in 2027, and some retailers are already listing products on third-party AI platforms such as Gemini and ChatGPT with the intention of closing sales there (wpengine.com, 2026-11-26; aerocommerce.com, 2026-11-22). Read that as a direction, not a promise that wiring up an endpoint produces orders.
What the website is has changed. A store used to be a shop built for people to browse. The same catalog now also has to be read by a different kind of client: pull the product list, compare prices, check stock, work out whether an item ships to a given country, then place the order for the user. That client doesn't browse. It requests.
Three paths exist, and they are not a new-for-old replacement. Cost and coverage differ a lot.
| Path | What you actually build | Who it fits | What it costs |
|---|---|---|---|
| A. Structured markup on pages | Product and Offer schema.org output with price, priceCurrency, availability, gtin, priceValidUntil | Small catalogs; export-oriented B2B sites that live on RFQs | Can only express what the page shows; crawl frequency is out of your hands |
| B. Structured product feed | Scheduled XML or JSON feed, fields aligned to Google Merchant Center conventions | Catalogs with clean master data that want into shopping and recommendation pools | Snapshot by nature: price and stock lag, and you need validation plus dedup |
| C. Read/write API plus adapter | Products, price, stock and orders exposed under a contract, with a mapping layer for each platform | Large catalogs, deep variant trees, live stock, checkout inside the platform | Docs, auth, rate limits, idempotency and monitoring all need an owner long term |
My rule is four questions, and none of them is 'should we do AI'. The question is whether the data can be read correctly and consistently.
Variant depth. One product with color, size, voltage and pack-size variants turns into ten-plus SKUs per parent. Markup and static feeds start producing 'the price doesn't match variant three' errors at that point. Structures like this mostly force path C, because A and B both work at product granularity and can't express variant-level price differences cleanly.
Price change frequency. Promo prices, tiered pricing, member pricing, multi-currency — if any of those moves daily, a static feed is guaranteed to lag. The agent reads the old price, the user clicks through and sees a new one. That isn't a UX problem, it's a lost sale. Either collapse the external price to a single figure before exporting, or serve price from the live endpoint.
Stock semantics. Multiple warehouses, pre-orders, promised lead times, country-level selling restrictions. Almost none of that fits into page markup, and the binary in_stock / out_of_stock pair breaks the moment pre-orders exist.
Where checkout happens. If the AI platform only recommends and sends the user back to your site, the most expensive part of C — the checkout endpoints — can wait. If sales close inside the platform, you're suddenly negotiating payments, refunds, order write-back and reconciliation, and that work usually runs three times the product endpoints.
Hit two of those four and I'd go straight to C rather than spending six months on A. Flip it around: an industrial parts site that runs on RFQs, has fewer than two hundred SKUs and reprices quarterly is fine with A plus B. Get the fields right first; the API can wait.
Once C is the decision, the real engineering sits in the data model, not the framework. Three choices need settling early. Products and variants are separate entities, with price and stock hanging off the variant. Money is an integer in the smallest currency unit plus a currency field — not a float, and not a string like 'USD 12.5'. Sellable countries live in a whitelist table, not in the product description. Get those three wrong and a well-built API just ships bad data faster.
The minimum endpoint set looks roughly like this: incremental product list by updated_since, single product detail, stock by SKU, cart creation, order submission (optional), order status by order ID. Incremental sync is the one that matters. Full pulls are a burden on both sides; a catalog with tens of thousands of SKUs is tens of megabytes per call, and once the platform side times out it stops coming back. The list endpoint needs a time cursor, and deletion has to be returned as a state change, otherwise delisted products sit on the platform forever.
A few field-level mistakes recur, and they're cheap to avoid: priceCurrency written as 'dollars' instead of USD; availability written as a local-language phrase; image URLs pointing at signed, expiring links the platform can't fetch a week later; priceValidUntil set to a date in the past. None of this is theoretical — a validation script flags all of it in the first pass, but plenty of teams only find out after launch.
The three paths can coexist; it isn't either-or. A catalog with a few thousand SKUs often ends up like this: the fifty hero SKUs go through C with live price and stock; the long tail goes through B on a nightly feed; every product page outputs A, catching whatever the other two channels missed. The point of layering is that each layer's cost matches its traffic contribution, and you don't carry API maintenance for SKUs nobody asks about.
Self-hosted stores and SaaS platforms start from different places. Shopify-style platforms turn this into a product feature: the merchant flips a switch in admin and the platform owns the field conventions. A self-hosted store has no switch — endpoints, feed and mapping are all yours to write. The work concentrates in the first build and then turns into maintenance, which is why 'who edits this in two years' belongs in the selection conversation.
Launch is the start, not the end. Three things need fixing in the docs and the contract: field version numbers, a notice period for changes, and error code conventions. Rename a field without telling anyone and downstream parsing fails; the products vanish from the platform and nobody emails you about it. Rate limits and idempotency need agreeing up front too. Agent clients retry as a matter of course, and an order endpoint without an idempotency key turns one order into two, which then scrambles refunds and reconciliation.
Where the adapter layer sits deserves thought early. Shopify's Agentic Storefronts is still in early access and no public integration standard has settled; field names, checkout flows and eligibility rules differ per AI platform. A self-hosted store shouldn't weld its catalog to one platform's protocol. Keep a mapping layer in between: one internal model, adapters emitting whatever each platform wants. When the standard shifts, you change the mapping and leave the master data alone. Push platform field names directly into the product tables and the second integration forces a schema migration that spreads into admin, reporting and the storefront.
[TO VERIFY: eligibility rules for in-platform checkout — open regions, category restrictions, merchant requirements — are thinly documented and inconsistent across platforms. That single item decides whether checkout endpoints belong in this phase. Confirm with the platform before committing, not with a third-party tutorial.]
One precondition gets skipped: readable is not the same as understandable. An endpoint can return every field and still lose the match, because titles are model codes, descriptions carry no material or use case, and the spec table is a JPEG. Tolerances and voltages inside an image are invisible to a machine. For export-oriented catalogs the concrete move is converting spec tables from images into structured attributes with units and ranges, named with industry-standard terms rather than internal part numbers.
Monitoring needs defining from day one: P95 latency on the product endpoints, incremental sync success rate, feed validation pass rate, count of alerts where three sources disagree on price, stock rejection rate. The first two tell you the plumbing is healthy, the last three tell you the data is. Without them, a drop in channel traffic is guesswork.
Where I'd land: catalogs with few SKUs, checkout on your own site and a business that runs on RFQs should do structured data first and leave the API alone. Catalogs with many SKUs, deep variants and a plan to sell inside AI channels should build the API and keep the adapter layer separate. The dividing line isn't company size. It's whether anyone is actually maintaining your product data.
You may also like
Unsure what you need?
Talk 1:1 with a senior advisor. We will clarify your goals and return a plan with a ballpark quote—free of charge.
Book a free scoping callNo hard selling. Pure technical and business discussion.