You can't.
You can just build a request that specifies an outputSelector of type AspectHistogram. The response, however, will only include aggregated informations about the aspects of the items that your request selected. You can include how many outputSelectors you need, in the request, but aspects will be always aggregated, since (by definition) "aspects are item characteristics shared by items in a given domain" (read domain = search results).
Probably, what you are looking for are item attributes instead, that should already be present in the results, since they are specific of each item.
edit
According to the Call-specific Output Fields table for
SearchResult.item.attribute: "The field is conditionally returned. See the field documentation for clarification of conditions."
This means that such attributes are specific of the item found: each attribute can be present in an item but not in an another. You don't have to do anything special to obtain them. You will find them in the <SearchResult>
element, inside each <item>
, each in an <attribute>
element.
In the response XML you should find something like this:
<?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>
You can find more examples here and you can also go deeper in the XML result contents using this documentation.
edit 2
This seems to contraddict the documentation, that states:
Calls that use one or more fields of ItemAttribute:
findCompletedItems, findItemsAdvanced, findItemsByCategory, findItemsByKeywords, findItemsByProduct, findItemsIneBayStores
BTW, looks like you have to use GetSingleItem with IncludeSelector=ItemSpecifics for the items you find via findCompletedItems. I would try to hack the findItemsAdvanced api by passing "ItemSpecifics" as either IncludeSelector or OutputSelects. My final suggestion is to ask to customer service. Good luck!
http://developer.ebay.com/devzone/finding/Concepts/FindingAPIGuide
so i thought you could use logical operatorAND
including all sizes in the same filter to have a more complete response, then use all returned data to display however you want in your programming language. – Appendage