EBay Finding API - findCompletedItems - How to return a specific aspect in results

I use findCompletedItemsto search for all elements that match a specific set of keywords in a certain category (Men's shoes), and it’s easy for me to indicate that I want everyone to be only a certain size of shoes, using aspectFilter:

<aspectFilter>
   <aspectName>US Shoe Size (Men's)</aspectName>
   <aspectValueName>11</aspectValueName>
</aspectFilter>

But if I need all the results for the keywords, and I want the output to include a certain aspect value (shoe size) for each result, even if they are not all the same, how would I do?

I spent 3 hours hacking using the API testing tool and google search for code examples, but I can’t figure out how to request all the default data. PLUS there are some additional aspects that I also want to include in the output, without multiple requests with aspectFilterfor all different sizes, which is incredibly inefficient.

+5
source share
1 answer

You can not.

, outputSelector AspectHistogram. , . , , , ( ) - , "( = ).

, , , .

SearchResult.item.attribute: " . . ".

, : , . , . <SearchResult> <item>, <attribute>.

XML - :

<?xml version="1.0" encoding="utf-8"?>
<findItemsAdvancedResponse xmlns="http://www.ebay.com/marketplace/search/v1/services">
  <!-- various things here... -->
  <searchResult count="1">
  <item>
    <attribute>
      <name>Size</name>
      <value>XXL</value>
    </attribute>
    <!-- ... more attribute nodes allowed here ... -->
    <!-- ... more item info here ... -->
  </item>
  <!-- ... more items ... -->
  </searchResult>
</findItemsAdvancedResponse>

, XML, .

2
, , , :

, ItemAttribute:

findCompletedItems, findItemsAdvanced, findItemsByCategory, findItemsByKeywords, findItemsByProduct, findItemsIneBayStores

, , GetSingleItem IncludeSelector = ItemSpecifics , findCompletedItems. api findItemsAdvanced, "ItemSpecifics" IncludeSelector OutputSelects. - . !

+7

All Articles