Product Feed in XML, JSON, or CSV: Which Format Do Agents Read?
Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team
The short answer: Agents read XML, JSON, and CSV feeds equally well, and AXO credits any of them: the 15 feed points in the product-feed dimension turn on the feed being linked or declared, not on its format. Choose by generation reliability — XML for incumbent shopping tooling, JSON if your store already speaks APIs, CSV for the simplest possible pipeline. What actually matters is that a real serializer generates the file, ids stay stable, and availability is explicit. Confirm your choice in the free audit, where format is invisible and evidence is everything.
Does feed format matter to agents?
Barely. Agents parse XML, JSON, and CSV with equal ease; the formats differ for the producer, not the consumer. XML carries the most legacy shopping tooling, JSON the cleanest typing and nesting, CSV the simplest production and inspection. The decision that matters is which format your stack will regenerate correctly every night for a year.
XML: the incumbent
XML feeds descend from the comparison-shopping era, and most commerce platforms emit them natively. Strengths: mature validators, explicit structure, attributes and nesting handled naturally (a product with several variants is one element with children). Weaknesses: verbosity — an 860-product catalogue is a large file — and escaping discipline: product titles with ampersands or angle brackets corrupt hand-built XML exactly the way quotes corrupt hand-built JSON.
Choose XML when your platform already generates it or your other channels (shopping integrations) consume it; one feed serving several consumers beats three feeds drifting apart. The rule that protects you is the same in every format: generate with the platform's serializer, never with string templates in a spreadsheet macro.
JSON: the API-native choice
A JSON feed is an array of product objects with the core fields — id, title, price, currency, availability, url, image — typed naturally: price as a number, availability as a string. Strengths: your developers already have correct encoders everywhere, diffs between regenerations read cleanly, and the same generation code can later serve an /api/products endpoint. Weaknesses: no universally agreed product schema, so document your field names in your developer docs for human integrators.
Choose JSON when your store's team thinks in APIs. A JSON feed also ages best into the endpoints dimension: today's feed file is tomorrow's product API response shape, and AXO's endpoint guidance rewards exactly that continuity. See what a product API should return.
CSV: the honest minimum
A CSV feed is one row per product, columns for the core fields. Strengths: anyone can produce it from a product export, anyone can open it and check it by eye, and its failure modes are visible — a malformed row shows. Weaknesses: no nesting (variants become extra rows or extra columns, both workable, neither elegant), quoting traps around commas in titles, and no types — every consumer parses numbers and booleans from text.
Choose CSV when the alternative is no feed this quarter. A truthful CSV linked tonight outperforms a planned JSON feed indefinitely postponed; the audit and agents credit the enumeration capability, not the elegance. The migration path is painless later because the record shape (fields, ids) carries across formats unchanged.
The correctness rules that outrank format
Whichever format: stable ids across regenerations, so consumers can diff. Explicit availability per record. Price and currency as a pair, always. URLs canonical and absolute. Escaping by serializer, never by hand. And regeneration that is scheduled and monitored — a format-perfect feed from last season is worse than a rough feed from last night, because consumers trust it while it lies.
Validation differs slightly by format: XML against its parser plus a record count check, JSON through a JSON parser plus field presence checks, CSV by row/column counts and spot reads. All three validations are automatable in minutes and belong wherever your deployment checks live. The sync discipline is covered in keeping the feed in sync.
Size, compression, and update mechanics
Large catalogues raise practical questions format does not answer. Serve the feed compressed (any modern stack does this transparently), keep the URL stable across regenerations, and consider whether your churn justifies more-than-nightly regeneration for price/stock fields. Some stores publish a full nightly feed plus nothing else; that is fine. Partial or delta feeds are an optimisation for later, when a consumer actually asks.
Do not gate the feed behind authentication or robots exclusions meant for other paths. Its entire purpose is to be fetched by programs you do not know yet. If commercial sensitivity worries you, remember the feed contains exactly what your product pages display publicly — title, price, availability — arranged for machines.
Making the choice and moving on
Decide in one sitting: platform-native feed exists? Use it (probably XML). API-minded team building fresh? JSON. Nobody technical and a launch deadline? CSV from the product export. Then spend the saved deliberation on the things that actually differentiate feeds in the wild: the link tag, the regeneration alert, and the monthly truth-check against live pages.
Format debates are a classic optimisation stall — they feel like engineering while enumeration waits. The agents reading your feed cannot tell you which format they preferred; they can only tell you, by returning, whether the data was true. Verify discoverability in the free audit and move to the next dimension.
The 5-action format decision
- Inventory first: if your platform already generates a feed, adopt it whatever its format.
- Match the team: API-native → JSON; spreadsheet-operations → CSV; legacy integrations → XML.
- Generate by serializer in the chosen format; hand-assembly is forbidden for all three.
- Lock the record shape: stable ids, explicit availability, price+currency paired — identical across formats.
- Link, schedule, alert: rel=alternate on pages, nightly regeneration, failure alerts on — then stop deliberating.
Worked example: three formats, one garden centre
Example — fictional, for illustration. A garden centre with 1,250 seasonal products trials all three across a year. It starts with CSV from a spreadsheet export — live in a day, linked, declared — and the audit's feed points land immediately. In spring, a developer rebuilds it as JSON from the store database when variant rows in CSV (one row per pot size) start confusing a wholesale consumer. The XML the platform also emits is retired to avoid two truths.
The lesson the owner takes: the CSV was not a compromise, it was the launch. Enumeration existed from day one; the JSON migration improved one consumer's experience without changing a single field name or id. Format followed need, in the order the business actually met it — which is the only order that keeps a feed project from becoming a format project.
Related guides and the standing invitation
Companion reading for this topic: What Is a Machine-Readable Product Feed? · How Do You Link a Product Feed So Agents Find It? · How Do You Keep a Product Feed in Sync With Your Store? · What Should a Product API for Shopping Agents Return?.
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.
Sources
- RFC 8259 — JSON — IETF RFC 8259 (2017), the JSON data-interchange standard one of this guide's feed formats is written in.
- Schema.org — Product — the Schema.org vocabulary entry for Product — the type and properties this guide's markup names (current as of 2026).
- How the AXO audit works — AXO documentation — AXO's own documentation of the audit engine, its five dimensions and its scoring (current as of 2026).
Frequently asked questions
Which feed format do agents prefer?
None measurably. Agents parse XML, JSON, and CSV with equal ease. AXO's scoring credits the feed's existence and discoverability, not its format. Choose for your generation pipeline, not for the consumer.
Is CSV too primitive for a real catalogue?
No. CSV handles the core fields fine and launches fastest. Its limits are nesting (variants need extra rows or columns) and typing (everything is text). Many stores launch on CSV and migrate the same record shape to JSON later.
Should I publish the feed in multiple formats?
Only if different consumers genuinely require different formats, and then generate all of them from one source in one job. Multiple hand-maintained feeds drift into multiple truths, which is worse than any single format.
What breaks feeds most often?
Hand-assembly: string-built files corrupted by a title containing a comma, quote, or ampersand. Use a real serializer for your format. Second most often: silent regeneration failure leaving a stale feed trusted by everyone.
Does the feed need to be public?
Yes — reachable without authentication at a stable URL, linked from your pages. It contains only what your product pages already show publicly, arranged as data.