cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Reliably Identify Variant Aspects in Browse API Responses

Hello everyone,

I’m currently working with the eBay Browse API and have encountered a problem while processing variant listings, specifically identifying the variant-specific aspects.

The get_items_by_item_group endpoint provides the localizedAspects node for variant listings, which contains all the item aspects. However, this node includes:

  1. Aspects used for variant selection (e.g., Color, Size).
  2. General aspects that are identical across all variants (e.g., Brand, Material).

Initially, I thought it would be possible to identify the variant-specific aspects by looking at the differences in values. For variants, the values change, whereas for general aspects, the values remain the same across all variants.
Additionally, I know the number of variations in the listing (the number of items nodes) and that the localizedAspects node lists the variant-specific aspects first, followed by the general aspects.

However, there’s a special case where a variant-specific aspect has only a single value.

Example:

  • A screw listing with two aspects:
    • Width: 10/20/40 cm (different values).
    • Length: 10 cm (identical for all variants).

In this case, there’s no direct way to definitively determine that Length is also a variant-specific aspect. The analysis based on differences in values fails here.

Does anyone have a solution or workaround to reliably identify which aspects are the variant-specific ones in a listing?

Thank you!

Message 1 of 1
latest reply
0 REPLIES 0