question

disruptek avatar image
0 Likes"
disruptek asked ·

Finding API returning few (or zero) results for findItemsAdvanced on eBay Motors site

For the last few days, I've been getting very, very few (or zero) results for queries to the eBay Motors site that should yield hundreds of results. An example search for Porsche 911 listings ending in the next 10 days yields only one result, as below. My code has been running successfully for years now, and works perfectly fine on several other eBay sites that I've tested. Running the same search without a endtime or listingtype filters produces only 4 results. There are 885 Porsche 911 listings on the eBay Motors web-site at the time of writing.
{
    "ack": [
        "Success"
    ],
    "version": [
        "1.13.0"
    ],
    "timestamp": [
        "2017-03-27T16:58:47.500Z"
    ],
    "searchResult": [
        {
            "@count": "1",
            "item": [
                {
                    "itemId": [
                        "182503355422"
                    ],
                    "title": [
                        "1996 Porsche 911  1996 porsche 911"
                    ],
                    "globalId": [
                        "EBAY-MOTOR"
                    ],
                    "primaryCategory": [
                        {
                            "categoryId": [
                                "10156"
                            ],
                            "categoryName": [
                                "911"
                            ]
                        }
                    ],
                    "galleryURL": [
                        "http://thumbs3.ebaystatic.com/m/mwmDfEv-gAW8XSr6TDHDFig/140.jpg"
                    ],
                    "viewItemURL": [
                        "http://cgi.ebay.com/ebaymotors/1996-Porsche-911-/182503355422"
                    ],
                    "paymentMethod": [
                        "MOCC",
                        "PayPal",
                        "CashInPerson"
                    ],
                    "autoPay": [
                        "false"
                    ],
                    "postalCode": [
                        "98332"
                    ],
                    "location": [
                        "Gig Harbor,WA,USA"
                    ],
                    "country": [
                        "US"
                    ],
                    "shippingInfo": [
                        {
                            "shippingServiceCost": [
                                {
                                    "@currencyId": "USD",
                                    "__value__": "0.0"
                                }
                            ],
                            "shippingType": [
                                "FreePickup"
                            ],
                            "shipToLocations": [
                                "US",
                                "CA",
                                "GB",
                                "AU"
                            ]
                        }
                    ],
                    "sellingStatus": [
                        {
                            "currentPrice": [
                                {
                                    "@currencyId": "USD",
                                    "__value__": "53500.0"
                                }
                            ],
                            "convertedCurrentPrice": [
                                {
                                    "@currencyId": "USD",
                                    "__value__": "53500.0"
                                }
                            ],
                            "bidCount": [
                                "0"
                            ],
                            "sellingState": [
                                "Active"
                            ],
                            "timeLeft": [
                                "P5DT11H11M50S"
                            ]
                        }
                    ],
                    "listingInfo": [
                        {
                            "bestOfferEnabled": [
                                "false"
                            ],
                            "buyItNowAvailable": [
                                "true"
                            ],
                            "buyItNowPrice": [
                                {
                                    "@currencyId": "USD",
                                    "__value__": "57500.0"
                                }
                            ],
                            "convertedBuyItNowPrice": [
                                {
                                    "@currencyId": "USD",
                                    "__value__": "57500.0"
                                }
                            ],
                            "startTime": [
                                "2017-03-26T04:10:37.000Z"
                            ],
                            "endTime": [
                                "2017-04-02T04:10:37.000Z"
                            ],
                            "listingType": [
                                "AuctionWithBIN"
                            ],
                            "gift": [
                                "false"
                            ]
                        }
                    ],
                    "condition": [
                        {
                            "conditionId": [
                                "3000"
                            ],
                            "conditionDisplayName": [
                                "Used"
                            ]
                        }
                    ],
                    "isMultiVariationListing": [
                        "false"
                    ],
                    "topRatedListing": [
                        "false"
                    ]
                }
            ]
        }
    ],
    "paginationOutput": [
        {
            "pageNumber": [
                "1"
            ],
            "entriesPerPage": [
                "100"
            ],
            "totalPages": [
                "1"
            ],
            "totalEntries": [
                "1"
            ]
        }
    ],
    "itemSearchURL": [
        "http://motors.shop.ebay.com/10156/i.html?endtimefrom=2017-03-27T16%3A58%3A52.000Z&endtimeto=2017-04-06T16%3A56%3A59.000Z&LH_BIN=1&_LH_Time=1&_ddo=1&_ett=239.9698913888889&_ftrt=902&_ftrv=0.0012802777777777778&_ipg=100&_li=100&_pgn=1"
    ]
}
finditemsadvancedfinding apimotors
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.

number14gadgets avatar image
0 Likes"
number14gadgets answered ·
@username As of last Friday, I encountered a problem which may be related. My code has not changed in 5 years, and the failures were about 1 in 5 api calls last week, but now fail all the time as of yesterday. I'll be posting about it here in a moment, (moderated so delayed ) but basically, findItemsAdvanced has started to yield zero to maybe a dozen results where the same query should return about 5,000 items. In my case It seems to be down to my use of the itemFilter of 'LocalPickupOnly=TRUE.
· 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.

disruptek avatar image
0 Likes"
disruptek answered ·
Thanks for the reply. FWIW, I'm not using that itemfilter. The problem doesn't seem to be limited to particular categories, but I have not reproduced the issue on any site other than eBay Motors. How about you?
· 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.

number14gadgets avatar image
0 Likes"
number14gadgets answered ·
I'm seeing it on ebay.co.uk Have pared my query down to a minimal search for a chair within 100 miles of my postcode ( should return many hundreds of items but returns none. You can see the problem with this link... if I'm able to post links... http://www.ebay.co.uk/dsc/i.html?LH_LPickup=2&_sop=1&_sadis=100&LH_Distance=ST72UW..100&_fspt=1&LH_Auction=1&_fpos=ST72UW&_pos=ST72UW&_stpos=ST72UW&_ipg=100&_from=R40&_sacat=0&LH_TitleDesc=1&_nkw=chair&_trksid=m570.l1313&_odkw=chair&_osacat=0 If you do that search and get zero results, then uncheck the filter for collection in person, you'll suddenly see 4,000 items of which about half are clearly 'Collection in person only' Also, oddly, That search includes 'search in description. If I uncheck 'Search in Description', then I get more results. Have raised a premium support ticket. Also tried to post to this forum, but that post has yet to appear.
· 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.

catherine_developersupport avatar image
0 Likes"
catherine_developersupport answered ·
@number14gadgets, Our support engineer will work with you if you've already raise a ticket on this. @disruptek Can you give the complete request URL? What are you comparing against when you say it "should yield hundreds of results"?
· 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.

disruptek avatar image
0 Likes"
disruptek answered ·
I'm using a JSON POST that looks like this:
{
        "itemFilter": [
            {
                "name": "ListedIn",
                "value": [
                    "EBAY-MOTOR"
                ]
            },
            {
                "name": "ListingType",
                "value": [
                    "Auction"
                ]
            },
            {
                "name": "EndTimeFrom",
                "value": "2017-03-30T16:45:40.000Z"
            },
            {
                "name": "EndTimeTo",
                "value": "2017-04-09T16:43:47.000Z"
            }
        ],
        "categoryId": [
            "10156"
        ],
        "paginationInput": {
            "entriesPerPage": 100,
            "pageNumber": 1
        }
}
The reply I receive includes the `itemSearchURL` attribute which evaluates to the following: http://motors.shop.ebay.com/10156/i.html?endtimefrom=2017-03-30T16%3A45%3A40.000Z&LH_Auction=1&endtimeto=2017-04-09T16%3A43%3A47.000Z&_LH_Time=1&_ddo=1&_ett=239.96984527777778&_ftrt=902&_ftrv=0.0012341666666666666&_incaucbin=0&_ipg=100&_li=100&_pgn=1 That link shows search results which total about 180 listings. Yet the full reply I receive from eBay yielded a result count of zero:
{
    "ack": [
        "Success"
    ],
    "version": [
        "1.13.0"
    ],
    "timestamp": [
        "2017-03-30T16:45:35.745Z"
    ],
    "searchResult": [
        {
            "@count": "0"
        }
    ],
    "paginationOutput": [
        {
            "pageNumber": [
                "0"
            ],
            "entriesPerPage": [
                "100"
            ],
            "totalPages": [
                "0"
            ],
            "totalEntries": [
                "0"
            ]
        }
    ],
    "itemSearchURL": [
        "http://motors.shop.ebay.com/10156/i.html?endtimefrom=2017-03-30T16%3A45%3A40.000Z&LH_Auction=1&endtimeto=2017-04-09T16%3A43%3A47.000Z&_LH_Time=1&_ddo=1&_ett=239.96984527777778&_ftrt=902&_ftrv=0.0012341666666666666&_incaucbin=0&_ipg=100&_li=100&_pgn=1"
    ]
}
· 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.

disruptek avatar image
0 Likes"
disruptek answered ·
It seems that `itemSearchURL` yields results not bounded by the `endtimefrom` and `endtimeto` arguments inside the URL. So the count of items that it produces may not match those of the results yielded by the call. But clearly, there should be more than zero Porsche 911 auction ending in the next ten days. Here's an example of a successful search, again just by category and endtime bounds, from the `EBAY-US` site, which works perfectly fine for me: First, the query...
{
        "itemFilter": [
            {
                "name": "ListedIn",
                "value": [
                    "EBAY-US"
                ]
            },
            {
                "name": "ListingType",
                "value": [
                    "Auction"
                ]
            },
            {
                "name": "EndTimeFrom",
                "value": "2017-03-30T16:57:56.000Z"
            },
            {
                "name": "EndTimeTo",
                "value": "2017-03-31T21:57:11.000Z"
            }
        ],
        "categoryId": [
            "4099"
        ],
        "paginationInput": {
            "entriesPerPage": 100,
            "pageNumber": 1
        }
    }
And the reply:
{
    "ack": [
        "Success"
    ],
    "version": [
        "1.13.0"
    ],
    "timestamp": [
        "2017-03-30T16:57:52.231Z"
    ],
    "searchResult": [
        {
            "@count": "31",
            "item": [--- I omitted the 31 item results... ---],
        },
    ],
    "paginationOutput": [
        {
            "pageNumber": [
                "1"
            ],
            "entriesPerPage": [
                "100"
            ],
            "totalPages": [
                "1"
            ],
            "totalEntries": [
                "31"
            ]
        }
    ],
    "itemSearchURL": [
        "http://www.ebay.com/sch/4099/i.html?endtimefrom=2017-03-30T16%3A57%3A56.000Z&LH_Auction=1&endtimeto=2017-03-31T21%3A57%3A11.000Z&_LH_Time=1&_ddo=1&_ett=28.988594444444445&_ftrt=902&_ftrv=0.0010944444444444445&_incaucbin=0&_ipg=100&_li=0&_pgn=1"
    ]
}
· 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.

disruptek avatar image
0 Likes"
disruptek answered ·
Any way I can help move this along, @catherine_developersupport ?
· 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.

disruptek avatar image
0 Likes"
disruptek answered ·
Still waiting for any news on this problem, which remains unresolved. What else can I do, @catherine_developersupport ?
· 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.

helios825 avatar image
0 Likes"
helios825 answered ·
There is definitely a bug with the Finding API here. The problem is easily reproducible as well. As a simple example, without any input modifiers/filters, let's have a look at CatID=10156 -- eBay Motors Porsche 911 category, as mentioned earlier. Here are a couple on-eBay URLs for this: http://www.ebay.com/sch/911/10156/i.html?_ipg=100 http://motors.shop.ebay.com/10156/i.html?_ddo=1&_ipg=100&_pgn=1 Here's a simple Finding API call for this category (Best Match): http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsAdvanced&SERVICE-NAME=FindingService&SERVICE-VERSION=1.12.0&SECURITY-APPNAME=_____&RESPONSE-DATA-FORMAT=XML&GLOBAL-ID=EBAY-MOTOR&REST-PAYLOAD&categoryId=10156 When I paste the API call in my browser and repeatedly reload, sometimes I get ZERO results, and sometimes I get 6 results. Clearly, something is broken here. The inconsistency between zero-vs-6 is annoying, but the real problem here is that eBay on-site returns 100's of results, and so the API should be doing so too.
· 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.

disruptek avatar image
1 Like"
disruptek answered ·
Well, what's next? Do I really have to pay $75 to get some attention to this issue? The Finding API has been broken for the eBay Motors site for weeks now. I really don't understand how a problem of this magnitude can remain unidentified, unreported, and unaddressed by eBay. We're not talking about a tiny side-project web-service run by a solo developer, here. We're talking about a large public API surfacing huge and sophisticated infrastructure and serving many millions of requests per day to many thousands of developers, each with a financial stake in the results.
· 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.