> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apostra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Read a storefront's catalogue with list_products

> The AdCP compact tasks an Apostra storefront serves to an agent that calls it directly: list_products with its feed and pricing versions, which storefronts serve it, and what each answer means

An agent that talks AdCP directly to an Apostra storefront reads its catalogue
with `list_products`. This page says what the storefront serves, how the
versions in the answer work, and what it refuses. It covers AdCP 3.2 and later;
`list_products` is the same task at both.

## Which storefronts serve it

A storefront serves `list_products` when it sells from its wholesale
catalogue. You can tell from its `get_adcp_capabilities` answer: `list_products`
is in `media_buy.lifecycle_tools`, and `wholesale` is in
`media_buy.buying_modes`. A storefront that is not there keeps `get_products`,
which every storefront serves. A storefront that sells through a platform
adapter, such as Meta or TikTok, keeps its own `get_products` and does not serve
`list_products`.

## What you get back

`list_products` reads the same catalogue a `get_products` call with
`buying_mode: "wholesale"` reads, as the same buyer and account. The answer is
the canonical AdCP shape: products with creative formats declared as
`format_options`, never legacy format ids. Only the fields AdCP's canonical
product defines for the release you call at are returned (the four that 3.3 adds,
`hold_policy`, `creative_policy`, `dooh_inventory_summary` and `installments`, come
with a call at 3.3). A field that only `get_products` carries, such as
the legacy signal targeting options, is not in a `list_products` answer, and
neither are the legacy-only flags on a pricing option.

| Field | What it tells you |
| - | - |
| `outcome` | `listed` when the answer carries products. `unchanged` when you already hold the current feed. |
| `products` | One page of products, in `product_id` order. |
| `feed_version` | An opaque token for the offers. It changes when a product is added, withdrawn or edited, or when the catalogue's sources announce a new feed. It does not change when only prices change. |
| `pricing_version` | An opaque token for the prices. It changes when a price a buyer would read changes, including a new foreign-exchange rate for a currency the storefront converts to. It does not change on a repeated read at the same prices. |
| `cache_scope` | `public` when every buyer reads the same catalogue, `account` when the answer depends on your account. |
| `next_cursor` | Present when there is another page. |
| `incomplete` | Present when a product could not be expressed in canonical creative formats and was left out. It stays available through `get_products`. |

Treat both versions as opaque. Compare them for equality only. A version is
scoped to the storefront and to the cache scope you got it from.

## Keep a copy current

Send the versions you hold back as `if_feed_version` and `if_pricing_version`.

* If both still match, the answer is `outcome: "unchanged"` with no products.
* If the feed matches and you sent no `if_pricing_version`, the answer is
  `unchanged`.
* If either one differs, you get a `listed` answer with the new versions.

`if_pricing_version` is valid only together with `if_feed_version`. A request
that sends it alone is refused with `INVALID_REQUEST`.

## Paging

Send `max_results` (1 to 100, default 25). A page that is not the last carries
`next_cursor`; send it back as `cursor` with the same request. A cursor belongs
to the feed version and the pricing version it was issued under. If the offers
or the prices change between pages, the next call is refused with
`INVALID_REQUEST` on `cursor`: start again without a cursor, so every page of one
list is from one snapshot.

## Choosing fields

`fields` limits the product fields you get. `product_id` and `name` are always
returned. `list_applications`, `targeting_resolution`, `expires_at` and
`collection_targeting_allowed` are returned whenever the storefront has them.

## What it refuses

`list_products` on a storefront reads the catalogue as it stands. It does not
apply buyer targeting to it, so it refuses these `criteria` fields with
`UNSUPPORTED_FEATURE`, naming the field, instead of returning prices that
ignore them:

* `targeting_overlay`
* `media_buy_frequency_cap`
* `required_overlay_support`
* `required_media_buy_support`
* `catalog`
* `policy_ids`

It also refuses `include_collections: true`, because the storefront serves no
collections.

To shape a request by targeting, use `request_proposals`.

## Turning it off

There is no separate switch for `list_products`. A storefront serves it
whenever it sells from its wholesale catalogue and is not a platform-adapter
storefront. It stops being served, and drops out of `media_buy.lifecycle_tools`,
when the storefront stops selling wholesale. It is a read, so serving it changes
nothing in the storefront.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.