timotheus / ebaysdk-python

eBay API SDK for Python
https://developer.ebay.com/tools/sdks
Other
809 stars 326 forks source link

No pictureURLLarge in findItemsAdvanced response #340

Open binseq opened 3 years ago

binseq commented 3 years ago

I need the PictureURLLarge but no matter what I do, only some of the responses contain the value. Most isMultiVariationListing=true listings do not contain it.

My request looks like this: https://svcs.ebay.com/services/search/FindingService/v1?SERVICE-VERSION=1.13.0&categoryId=9355&SECURITY-APPNAME=X&GLOBAL-ID=EBAY-US&OPERATION-NAME=findItemsAdvanced&RESPONSE-DATA-FORMAT=JSON&REST-PAYLOAD&paginationInput.entriesPerPage=3&keywords=iphone&outputSelector(0)=PictureURLLarge

With entriesPerPage=100 only 81/100 contain pictureURLLarge.

The response is below (notice how only 1 of the three results contains the pictureURLLarge field)... and apparently it's not a new issue, there are questions about exactly this same thing - from 10 years ago! (2013) https://stackoverflow.com/questions/18419865/some-products-in-ebay-api-do-not-return-pictureurllarge-for-product-listing-usin (2016) https://forums.developer.ebay.com/questions/18444/pictureurllarge-in-finditemsadvanced-has-empty-ite.html (2019) https://forums.developer.ebay.com/questions/29581/finditemsadvanced-not-getting-pictureurllarge-and.html So if it hasn't been fixed in 10 years maybe it must only affect some users? Please help!

{
    "findItemsAdvancedResponse": [{
        "ack": ["Success"],
        "version": ["1.13.0"],
        "timestamp": ["2021-02-06T13:28:32.480Z"],
        "searchResult": [{
            "@count": "3",
            "item": [{
                "itemId": ["224221973123"],
                "title": ["Apple iPhone 8 64GB Fully Unlocked Verizon Sprint AT&T T-Mobile"],
                "globalId": ["EBAY-US"],
                "subtitle": ["Free 2 Day Shipping | Apple Genuine | 1 Year Warranty"],
                "primaryCategory": [{
                    "categoryId": ["9355"],
                    "categoryName": ["Cell Phones & Smartphones"]
                }],
                "galleryURL": ["https:\/\/thumbs1.ebaystatic.com\/pict\/04040_0.jpg"],
                "viewItemURL": ["https:\/\/www.ebay.com\/itm\/Apple-iPhone-8-64GB-Fully-Unlocked-Verizon-Sprint-AT-T-T-Mobile-\/224221973123?var=0"],
                "autoPay": ["true"],
                "postalCode": ["474**"],
                "location": ["Bloomington,IN,USA"],
                "country": ["US"],
                "shippingInfo": [{
                    "shippingServiceCost": [{
                        "@currencyId": "USD",
                        "__value__": "0.0"
                    }],
                    "shippingType": ["Free"],
                    "shipToLocations": ["Worldwide"],
                    "expeditedShipping": ["true"],
                    "oneDayShippingAvailable": ["false"],
                    "handlingTime": ["0"]
                }],
                "sellingStatus": [{
                    "currentPrice": [{
                        "@currencyId": "USD",
                        "__value__": "194.99"
                    }],
                    "convertedCurrentPrice": [{
                        "@currencyId": "USD",
                        "__value__": "194.99"
                    }],
                    "sellingState": ["Active"],
                    "timeLeft": ["P26DT7H34M48S"]
                }],
                "listingInfo": [{
                    "bestOfferEnabled": ["false"],
                    "buyItNowAvailable": ["false"],
                    "startTime": ["2020-11-04T21:03:20.000Z"],
                    "endTime": ["2021-03-04T21:03:20.000Z"],
                    "listingType": ["FixedPrice"],
                    "gift": ["false"],
                    "watchCount": ["1813"]
                }],
                "returnsAccepted": ["true"],
                "condition": [{
                    "conditionId": ["2500"],
                    "conditionDisplayName": ["Seller refurbished"]
                }],
                "isMultiVariationListing": ["true"],
                "discountPriceInfo": [{
                    "pricingTreatment": ["STP"],
                    "soldOnEbay": ["false"],
                    "soldOffEbay": ["false"]
                }],
                "pictureURLLarge": ["https:\/\/i.ebayimg.com\/00\/s\/MTAwMFgxMDAw\/z\/wtoAAOSwsWBf4g2e\/$_1.JPG"],
                "topRatedListing": ["true"]
            }, {
                "itemId": ["224221973123"],
                "title": ["Apple iPhone 8 64GB Fully Unlocked Verizon Sprint AT&T T-Mobile"],
                "globalId": ["EBAY-US"],
                "subtitle": ["Free 2 Day Shipping | Apple Genuine | 1 Year Warranty"],
                "primaryCategory": [{
                    "categoryId": ["9355"],
                    "categoryName": ["Cell Phones & Smartphones"]
                }],
                "galleryURL": ["https:\/\/thumbs4.ebaystatic.com\/pict\/2242219731234040_2.jpg"],
                "viewItemURL": ["https:\/\/www.ebay.com\/itm\/Apple-iPhone-8-64GB-Fully-Unlocked-Verizon-Sprint-AT-T-T-Mobile-\/224221973123?var=523004472335"],
                "autoPay": ["true"],
                "postalCode": ["474**"],
                "location": ["Bloomington,IN,USA"],
                "country": ["US"],
                "shippingInfo": [{
                    "shippingServiceCost": [{
                        "@currencyId": "USD",
                        "__value__": "0.0"
                    }],
                    "shippingType": ["Free"],
                    "shipToLocations": ["Worldwide"],
                    "expeditedShipping": ["true"],
                    "oneDayShippingAvailable": ["false"],
                    "handlingTime": ["0"]
                }],
                "sellingStatus": [{
                    "currentPrice": [{
                        "@currencyId": "USD",
                        "__value__": "194.99"
                    }],
                    "convertedCurrentPrice": [{
                        "@currencyId": "USD",
                        "__value__": "194.99"
                    }],
                    "sellingState": ["Active"],
                    "timeLeft": ["P26DT7H34M48S"]
                }],
                "listingInfo": [{
                    "bestOfferEnabled": ["false"],
                    "buyItNowAvailable": ["false"],
                    "startTime": ["2020-11-04T21:03:20.000Z"],
                    "endTime": ["2021-03-04T21:03:20.000Z"],
                    "listingType": ["FixedPrice"],
                    "gift": ["false"],
                    "watchCount": ["1227"]
                }],
                "returnsAccepted": ["true"],
                "condition": [{
                    "conditionId": ["2500"],
                    "conditionDisplayName": ["Seller refurbished"]
                }],
                "isMultiVariationListing": ["true"],
                "discountPriceInfo": [{
                    "originalRetailPrice": [{
                        "@currencyId": "USD",
                        "__value__": "629.99"
                    }],
                    "pricingTreatment": ["STP"],
                    "soldOnEbay": ["false"],
                    "soldOffEbay": ["false"]
                }],
                "topRatedListing": ["true"]
            }, {
                "itemId": ["224221973123"],
                "title": ["Apple iPhone 8 64GB Fully Unlocked Verizon Sprint AT&T T-Mobile"],
                "globalId": ["EBAY-US"],
                "subtitle": ["Free 2 Day Shipping | Apple Genuine | 1 Year Warranty"],
                "primaryCategory": [{
                    "categoryId": ["9355"],
                    "categoryName": ["Cell Phones & Smartphones"]
                }],
                "galleryURL": ["https:\/\/thumbs4.ebaystatic.com\/pict\/2242219731234040_2.jpg"],
                "viewItemURL": ["https:\/\/www.ebay.com\/itm\/Apple-iPhone-8-64GB-Fully-Unlocked-Verizon-Sprint-AT-T-T-Mobile-\/224221973123?var=523004472334"],
                "autoPay": ["true"],
                "postalCode": ["474**"],
                "location": ["Bloomington,IN,USA"],
                "country": ["US"],
                "shippingInfo": [{
                    "shippingServiceCost": [{
                        "@currencyId": "USD",
                        "__value__": "0.0"
                    }],
                    "shippingType": ["Free"],
                    "shipToLocations": ["Worldwide"],
                    "expeditedShipping": ["true"],
                    "oneDayShippingAvailable": ["false"],
                    "handlingTime": ["0"]
                }],
                "sellingStatus": [{
                    "currentPrice": [{
                        "@currencyId": "USD",
                        "__value__": "194.99"
                    }],
                    "convertedCurrentPrice": [{
                        "@currencyId": "USD",
                        "__value__": "194.99"
                    }],
                    "sellingState": ["Active"],
                    "timeLeft": ["P26DT7H34M48S"]
                }],
                "listingInfo": [{
                    "bestOfferEnabled": ["false"],
                    "buyItNowAvailable": ["false"],
                    "startTime": ["2020-11-04T21:03:20.000Z"],
                    "endTime": ["2021-03-04T21:03:20.000Z"],
                    "listingType": ["FixedPrice"],
                    "gift": ["false"],
                    "watchCount": ["233"]
                }],
                "returnsAccepted": ["true"],
                "condition": [{
                    "conditionId": ["2500"],
                    "conditionDisplayName": ["Seller refurbished"]
                }],
                "isMultiVariationListing": ["true"],
                "discountPriceInfo": [{
                    "originalRetailPrice": [{
                        "@currencyId": "USD",
                        "__value__": "629.99"
                    }],
                    "pricingTreatment": ["STP"],
                    "soldOnEbay": ["false"],
                    "soldOffEbay": ["false"]
                }],
                "topRatedListing": ["true"]
            }]
        }],
        "paginationOutput": [{
            "pageNumber": ["1"],
            "entriesPerPage": ["3"],
            "totalPages": ["38233"],
            "totalEntries": ["114699"]
        }],
        "itemSearchURL": ["https:\/\/www.ebay.com\/sch\/9355\/i.html?_nkw=iphone&_ddo=1&_ipg=3&_os=PL%7CD&_pgn=1"]
    }]
}
matecsaj commented 3 years ago

I get what you want when I use this https://developer.ebay.com/api-docs/buy/browse/resources/item/methods/getItem.

binseq commented 3 years ago

I get what you want when I use this https://developer.ebay.com/api-docs/buy/browse/resources/item/methods/getItem.

well yes I know that but I that would require 1 extra api call per search result item (100 items = 100 API calls). Imagine if google images had to do one API call to show you each image, that's what it would be like, not practical.