question

justwangbing avatar image
2 Likes"
justwangbing asked ·

Finding API: get seller's sold item

I want use Finding API findItemsAdvanced to retrieve an seller's sold item. But I don't know how to set include "Completed listings" ,I don't find any field in initemFilter has mean of include Completed listings,in ebay there is acheckbox can set include "Completed listings",

this is my code:

        ClientConfig config = new ClientConfig();
        config.ApplicationId = appid;
        config.EndPointAddress = endpoint;
        client = FindingServiceClientFactory.getServiceClient(config);

        FindItemsAdvancedRequest request = new FindItemsAdvancedRequest();
        request.keywords = "";
        request.itemFilter = new ItemFilter[] {
            new ItemFilter
            {
                name = ItemFilterType.Seller,
                value = new string[] { "seller id " }
            }
        };
        FindItemsAdvancedResponse response = client.findItemsAdvanced(request);

 

I also try to use findCompletedItems api ,  but this api only can't return all sold item :

            FindCompletedItemsRequest request = new FindCompletedItemsRequest();
            request.keywords = "GLASS DOORS";
            request.itemFilter = new ItemFilter[]
            {
                 new ItemFilter
                {
                    name=ItemFilterType.Seller,
                    value=new string[]{"seller id"}
                }
            };
            response = client.findCompletedItems(request);

 

Can someone please help me?

finding-api
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

tomerpeled avatar image
0 Likes"
tomerpeled answered ·

Any other working solution?

· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ answered ·

Use the Trading API.

See the docs for examples.

 

 

· 2 · Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi,

 

The trading API doesn't help in this case. I tried it, I also tried the shopping API and nothing works as expected.

The finding api indeed works with the findCompletedItems but only if you specify the product it, otherwise (if you use the "keywords" property for example) it won't work - it will only return the sold items.

 

Any other solution?

 

Thanks,

Tomer

0 Likes 0 · ·

@Tomer -

The OP asked for " retrieve an seller's sold item."

You said  "[findCompletedItems] won't work - it will only return the sold items."

That's the purpose of the call. Sound's like you're looking for something different than the OP.

 

 

findItemsAdvanced doesn't return sold items.

findCompletedItems returns a subset of ended listings.

 

Shopping API find calls don't return sold items.

 

The Trading API requires a seller token and allows full access to a seller's history.

 

If you try to compile data over time to get historical data on a seller, you're probably violating the API terms by archiving data.

 

If you want the calls to work a different way, try to locate a feedback/wishlist forum. There's supposed to be one somewhere, but it's buried pretty well.

 

 

 

 

 

 

 

 

0 Likes 0 · ·
InactiveAutoUser avatar image
0 Likes"
InactiveAutoUser answered ·

I met the same issues how to retrieve sold items via findcompletedItems ,anyone could help me ?

Thanks a lot.

· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.