On the E-Bay web site you can search for e. g. bracelets with main color being silver (see screenshot below).
Is it possible to run such query (find newest bracelets with main color silver) programmatically (via the eBay Search API)? If yes – how?
I looked at findItemsAdvanced, but didn’t find any reference to color search there.
3
Answers
you probably want to use AspectFilters. the input for that can be found in the previous query (as stated in the documentation. see aspectHistogrammContainer)
VariationType appears to be able to do that.
Refining searches with the Finding API is done through Aspect Filters which are defined in the documentation as:
Performing a search is a two step process.
The following examples use the Finding Kit that eBay provide as part of their Java SDK.
The first example shows how to obtain the aspects that are available. This is achieved via the getHistograms operation. For this example we will use the category Jewelry & Watches > Fashion Jewelry > Rings (67681) that is found on the US eBay site.
Each category can have multiple aspects that consist of a name, such as Color, and several values such as Red, White, Blue. An example of the output produced by this code is shown below.
The names and values returned from getHistograms can now be used as filters in the findItemsAdvanced operation. For the second example we will use the Brand and Main Color aspects. This example also uses the same category as the first.