question

smart_home_wizards avatar image
0 Likes"
smart_home_wizards asked

Checking original picture sources

I am using the eBay trading API to compare my eBay listings against a master database, sending any additions or revisions via the API. When it comes to checking which pictures are listed I am comparing the URLs in the PictureDetails section from GetItem with my original list of self-hosted picture URLs. I have to look in the ExternalPictureURL field to see the originally submitted picture URLs. This is working in general, but I have noticed that in some cases where I have multiple pictures the ExternalPictureURL fields contain just one image URL. The PictureURL fields contain a longer list of images, but of course these are the eBay hosted images and the URLs are different, so cannot be compared with the original source in my database. I have noticed that when this happens PhotoDisplay is set to 'PicturePack'. It may be the case that this is happening for every listing which has more than one picture--I'm not sure. So my question: what is the correct way to check the pictures that eBay knows about for a listing against a list of more than one self hosted picture URL?
picturedetails
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.

jourbandts avatar image
0 Likes"
jourbandts answered
What you are doing is correct. Before very recently you could not upload more than 1 self hosted picture. So I would need to see an exact ItemID where you should be getting back multiple pictures but only see one ExternalPictureURL. But from what you explained everything seems correct and seems to be working as expected. It might be when you only get back 1 ExternalPictureURL but see multiple pictures on the listings they pictures were added at the variation level. But again I am just guessing without examples.
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.

smart_home_wizards avatar image
0 Likes"
smart_home_wizards answered
@jourbandts Well here are 2 interesting examples: The first is Item ID 251768466542, which strangely/inconsistently returns my original image URLs in the PictureURL section. Here is the data from the PictureDetails section of the response in python dict format, which is fairly similar to JSON: (Pdb) listed_item['PictureDetails'] {'PhotoDisplay': 'PicturePack', 'PictureSource': 'Vendor', 'ExternalPictureURL': ' http://smart-home-wizards.com/img/resources/products/aeon_labs/aeo_dsd31.png', 'GalleryURL': ' http://i.ebayimg.com/00/s/MTAwNVg1OTQ=/z/KH0AAOSw7ThUm07r/$_1.JPG?set_id=880000500F', 'GalleryType': 'Plus', 'PictureURL': [' http://smart-home-wizards.com/img/resources/products/aeon_labs/aeo_dsd31.png', ' http://smart-home-wizards.com/img/resources/products/aeon_labs/z-wave-siren.png', ' http://smart-home-wizards.com/img/resources/products/aeon_labs/aeotec-siren-packaging.png']} But returning the original links in the PictureURL section is not the common case, and this is what I see for Item ID 251756965945: (Pdb) listed_item['PictureDetails'] {'PhotoDisplay': 'PicturePack', 'PictureSource': 'Vendor', 'ExternalPictureURL': ' http://smart-home-wizards.com/img/resources/products/aeon_labs/aeo_multisens.png', 'GalleryURL': ' http://i.ebayimg.com/00/s/NTAwWDUwMA==/z/6rYAAOSwiCRUjfKU/$_1.JPG?set_id=8800005007', 'GalleryType': 'Plus', 'PictureURL': [' http://i.ebayimg.com/00/s/NTAwWDUwMA==/z/6rYAAOSwiCRUjfKU/$_1.JPG?set_id=8800005007', ' http://i.ebayimg.com/00/s/NDYwWDQ2MA==/z/6pYAAOSwiCRUjfKT/$_1.JPG?set_id=8800005007', ' http://i.ebayimg.com/00/s/NTAxWDU4MA==/z/yZUAAOSw7ThUjfKT/$_1.JPG?set_id=880000500F', ' http://i.ebayimg.com/00/s/NjU0WDY0MA==/z/BiwAAOSwuMFUjfKT/$_1.JPG?set_id=880000500F']} The links in the PictureURL section are eBay hosted links which cannot be compared. And there is only a single ExternalPictureURL, when 4 images were supplied. Both these examples are single item listings rather than variations with > 1 self-hosted picture supplied. Any further help you can provide is appreciated.
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.

jourbandts avatar image
0 Likes"
jourbandts answered
For a listing with multiple seller hosted images, our gallery consumer process will first download the first/gallery image (up to 4 retries), when this is successful the consumer will then download images 2 – 12 (no retry). If the download of any of these images (2-12) failed, all of the downloads (2-12) will be abandoned. So for the first item 251768466542, there was a failure with one or more downloads of images 2 – 12. As for the second item 251773770161, all the downloads were successful. Only when all the downloads are successful the PICTURE_URL field will contain converted Zoom image Urls (all Zoom Urls or none; cannot have a mix). Hope that answers your question.
· 3
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.

OK, but for the second item, is there any way I can verify that the list of images that eBay has for this listing corresponds to the list of images in my current master database. i.e. how can I detect additions, deletions or changes, and send revisions if appropriate? For the rest of the listing data one can check the info that eBay has and compare it to what you think it should be to identify areas for revisions.
0 Likes 0 ·
What is it that you are trying to do? That way I can tell you if you can/can't do this process or come up with a work around.
0 Likes 0 ·
I have a list of > 1 self-hosted picture URLs for the listing, held in a database. I want to check the pictures associated with the listing against my list in the database, and modify the pictures in the listing if there are any changes. At the moment I'm thinking I have to upload all of the pictures to the eBay picture service and check the EPS URLs against the the URLS held in PictureURL for the listing.
0 Likes 0 ·
jourbandts avatar image
0 Likes"
jourbandts answered
Yes we don't know of any changes made for self hosted images. Also if a change was made and you were to just re upload the exact same URL no change would be made from our end. That is because we assume no change was made and we just skip over the URL that had been used previously. So best practice is to always upload to EPS first, and use those images. And if any changes were made with your images you would want to re-upload them to EPS again and then revise the item with the new URL's. Another route would be if you send the exact same external URL again is to use some sort of cache busting technique to get us to look at the image again.https:// ebaydts.com/eBayKBDetails?KBid=2210
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.