Skip to main content

Parameters

Query parameters of GET /v1/fragment.

ParameterValuesDefaultNotes
ean8–14 digits(required)EAN-8, EAN-13, EAN-14 or UPC-A
schemafull · rating-only · nonefullSee the decision
nametext, ≤200 charsShopadvizor catalogue nameOptional with schema=full, and preferred — yours wins over the catalogue's
productIdtext, ≤2,048 chars—Needed for a rich result with schema=rating-only. The service does not reject a call without it, but the rating it emits is then attached to nothing (why). A longer value is dropped rather than truncated: a cut @id would silently stop matching your page's node
langfr · esesWidget copy and accessibility labels only. The data is always the Spanish catalogue
stargold · blue · orange · white · blackgoldStar colour, from a closed palette
accentrrggbb or rgb (hex, without #)design defaultFocus ring

Unknown values never break the fragment: they fall back to the default. Unknown star values are also logged.

No # in accent

In a URL, # starts the fragment and everything after it never reaches the server: accent=#e31c39 arrives empty. Send accent=e31c39, or encode the sign as %23e31c39.

breakdown

breakdown is a compact-rating flag for the per-star breakdown. It is a Phase-2 preview, outside the current scope — do not enable it.

Star colours​

star takes one of these values:

ValueColourNotes
star=gold#f5b301Default
star=blue#003481Brand blue
star=orange#fd9e02
star=white#ffffffDark backgrounds only — see below
star=black#000000

Without star, the ratings widget uses gold.

GET https://saz-es.public.shopadvizor.com/saz-ssr-server/v1/fragment?ean=4001724038818&lang=es&star=blue
Authorization: Basic <your credential>
white needs a dark background

The widget's own background is white. On it, white stars are invisible. Use star=white only if your page is dark and you also darken the surfaces from your stylesheet (--sa-surface, see the styling link below).

Brand colours beyond the palette​

The star parameter offers a curated list. If you need a colour outside it, override the CSS custom properties from your own stylesheet on the shopadvizor-rating element: see Ratings widget styling.

The widget inherits your page's font automatically. It loads no webfont of its own.