Search code examples
c#ebay-api

How to use eBay API to get item variation images in GetSellerList?


I can't get variation specific images on an item

item.Variations.Pictures returns an empty Collection, not a PicturesType object that it says it returns in the docs.

foreach (ItemType item in sellerlist)
    {
    if (item.Variations != null)
    {
        // item.Variations.Pictures is meant to return PicturesType object not a collection
        PicturesTypeCollection b = item.Variations.Pictures;
        Console.WriteLine(b.Count); // = 0


        //if (f != null)

Solution

  • The GetSellerList call does not return item.Variations, according to this article from eBay dev support in 2014.

    Which is stupid because this call has an includeVariations property, Variations object etc.

    But using GetItem call instead works.