question

mohabu-81 avatar image
0 Likes"
mohabu-81 asked

Endpoint for GetItem BrowseAPI - What end point do we use for getItem?

What end point do we use for getItem?

On ebay's website, https://developer.ebay.com/api-docs/buy/browse/resources/item/methods/getItem, enpoint is:

https://api.ebay.com/buy/browse/v1/item/{item_id}?

But this does not work and gives an error:

{'errors': [{'errorId': 11001, 'domain': 'API_BROWSE', 'category': 'REQUEST', 'message': 'The specified item Id was not found.'}]}



Then came across this post, https://forums.developer.ebay.com/questions/21896/get-item-404-the-specified-item-id-was-not-found.html, where a person mentioned below endpoint:

https://api.ebay.com/buy/browse/v1/item/v1|{item_id}|0

This works, but what is 0 at the end of the endpoint?

browse apigetitembrowsebuy browse api
10 |600

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

wemakeitallwork avatar image
0 Likes"
wemakeitallwork answered

Look at legacyItemId

· 1
10 |600

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

mohabu-81 avatar image mohabu-81 commented ·

Sorry for the late follow up.

Are you referring to this getItemByLegacyId?:
https://developer.ebay.com/api-docs/buy/browse/resources/item/methods/getItemByLegacyId


0 Likes 0 ·
foulfoot avatar image
0 Likes"
foulfoot answered

eBay has decided to change the term "itemID", which they've used for a quarter century now, to "listingID". The "itemID" is now the "0" in your request, and can be obtained by calling getItemByLegacyID. But you really don't need to bother. As of now, you don't need the itemID at all, so therefore just use the "0" as a placeholder in your getItem call.

At some point, probably with 30 days' notice, eBay will eliminate the legacy itemIDs altogether which will break everything. :/

https://developer.ebay.com/api-docs/buy/static/api-browse.html#Legacy

10 |600

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.