question

wrigjuda avatar image
0 Likes"
wrigjuda asked

Item ID not found for any id

Hello!


I am attempting to use the `/buy/browse/v1/item/{itemId}`endpoint, but it is returning an error saying the item was not found.


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

Here is an example item: https://www.ebay.com/itm/394169469066

I can find this item with the `services/search/FindingService/v1` endpoint, I can copy the "itemId" into the eBay URL, but the "browse item" endpoint always returns an error.


Any pointers? Things I missed?

ebayhelpbuyapi
· 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.

jitendra_developersupport avatar image
1 Like"
jitendra_developersupport answered

Hi @wrigjuda,


Please use the getItemByLegacyId call of Browse API to get the details of a specific item, such as description, price, and other information. This call also returns the RESTful item ID, which you can use with all the Buy API methods.


Currently, you are using the getItem call which supports the RESTful Item ID Format. If you want to use the legacy item id format, you need to use the getItemByLegacyId call.

Ref: https://developer.ebay.com/api-docs/buy/browse/resources/item/methods/getItemByLegacyId

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


Best regards,

eBay Developer Support

10 |600

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

klaus09061969 avatar image
0 Likes"
klaus09061969 answered

Hi!

Maybe the endpoint isn't working anymore.
I have testet with the API Explorer. My answer for your ItemID is:

<?xml version="1.0" encoding="UTF-8"?>
<GetItemResponse
xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2022-09-09T06:26:38.707Z</Timestamp>
<Ack>Success</Ack>
<Version>1193</Version>
<Build>E1193_CORE_API_19146280_R1</Build>
<Item>
<AutoPay>true</AutoPay>
<BuyerProtection>ItemIneligible</BuyerProtection>
<BuyItNowPrice currencyID="USD">0.0</BuyItNowPrice>
<Country>US</Country>
<Currency>USD</Currency>
<GiftIcon>0</GiftIcon>
<ItemID>394169469066</ItemID>
<ListingDetails>
<Adult>false</Adult>
<BindingAuction>false</BindingAuction>
<CheckoutEnabled>false</CheckoutEnabled>
<ConvertedBuyItNowPrice currencyID="USD">0.0</ConvertedBuyItNowPrice>
<ConvertedStartPrice currencyID="USD">29.99</ConvertedStartPrice>
<HasReservePrice>false</HasReservePrice>
<StartTime>2022-07-18T18:27:17.000Z</StartTime>
<EndTime>2022-09-18T18:27:17.000Z</EndTime>
<ViewItemURL>https://www.ebay.com/itm/JBL-Free-II-True-Wireless-Bluetooth-In-ear-Headphones-Black-/394169469066</ViewItemURL>;
<HasUnansweredQuestions>true</HasUnansweredQuestions>
<HasPublicMessages>false</HasPublicMessages>
<ViewItemURLForNaturalSearch>https://www.ebay.com/itm/JBL-Free-II-True-Wireless-Bluetooth-In-ear-Headphones-Black-/394169469066</ViewItemURLForNaturalSearch>;
</ListingDetails>
<ListingDuration>GTC</ListingDuration>
<ListingType>FixedPriceItem</ListingType>
<Location>Franklin, Kentucky</Location>
<PrimaryCategory>
<CategoryID>80077</CategoryID>
<CategoryName>Cell Phones &amp; Accessories:Cell Phone Accessories:Headsets</CategoryName>
</PrimaryCategory>
<PrivateListing>false</PrivateListing>
<Quantity>4469</Quantity>
<ReviseStatus>
<ItemRevised>true</ItemRevised>
</ReviseStatus>
<Seller>
<AboutMePage>true</AboutMePage>
<Email>Invalid Request</Email>
<FeedbackScore>214826</FeedbackScore>
<PositiveFeedbackPercent>98.6</PositiveFeedbackPercent>
<eBayGoodStanding>true</eBayGoodStanding>
<NewUser>false</NewUser>
<RegistrationDate>2001-01-24T17:44:41.000Z</RegistrationDate>
<Site>US</Site>
<UserID>harmanaudio</UserID>
<VATStatus>NoVATTax</VATStatus>
<SellerInfo>
<AllowPaymentEdit>false</AllowPaymentEdit>
<CheckoutEnabled>false</CheckoutEnabled>
<CIPBankAccountStored>false</CIPBankAccountStored>
<GoodStanding>true</GoodStanding>
<LiveAuctionAuthorized>false</LiveAuctionAuthorized>
<QualifiesForB2BVAT>false</QualifiesForB2BVAT>
<StoreOwner>true</StoreOwner>
<StoreURL>https://stores.ebay.com/harmanaudio</StoreURL>;
<TopRatedSeller>true</TopRatedSeller>
</SellerInfo>
<MotorsDealer>false</MotorsDealer>
</Seller>
<SellingStatus>
<BidCount>0</BidCount>
<BidIncrement currencyID="USD">0.0</BidIncrement>
<ConvertedCurrentPrice currencyID="USD">29.99</ConvertedCurrentPrice>
<CurrentPrice currencyID="USD">29.99</CurrentPrice>
<MinimumToBid currencyID="USD">29.99</MinimumToBid>
<QuantitySold>3800</QuantitySold>
<ReserveMet>true</ReserveMet>
<SecondChanceEligible>false</SecondChanceEligible>
<ListingStatus>Active</ListingStatus>
<QuantitySoldByPickupInStore>0</QuantitySoldByPickupInStore>
</SellingStatus>
<ShippingDetails>
<ApplyShippingDiscount>false</ApplyShippingDiscount>
<CalculatedShippingRate>
<WeightMajor measurementSystem="English" unit="lbs">0</WeightMajor>
<WeightMinor measurementSystem="English" unit="oz">0</WeightMinor>
</CalculatedShippingRate>
<SalesTax>
<SalesTaxPercent>0.0</SalesTaxPercent>
<ShippingIncludedInTax>false</ShippingIncludedInTax>
</SalesTax>
<ShippingServiceOptions>
<ShippingService>UPSGround</ShippingService>
<ShippingServiceCost currencyID="USD">0.0</ShippingServiceCost>
<ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
<ShippingServicePriority>1</ShippingServicePriority>
<ExpeditedService>false</ExpeditedService>
<ShippingTimeMin>1</ShippingTimeMin>
<ShippingTimeMax>5</ShippingTimeMax>
<FreeShipping>true</FreeShipping>
</ShippingServiceOptions>
<ShippingType>Flat</ShippingType>
<ThirdPartyCheckout>false</ThirdPartyCheckout>
<ShippingDiscountProfileID>0</ShippingDiscountProfileID>
<InternationalShippingDiscountProfileID>0</InternationalShippingDiscountProfileID>
<ExcludeShipToLocation>APO/FPO</ExcludeShipToLocation>
<ExcludeShipToLocation>US Protectorates</ExcludeShipToLocation>
<ExcludeShipToLocation>Africa</ExcludeShipToLocation>
<ExcludeShipToLocation>Asia</ExcludeShipToLocation>
<ExcludeShipToLocation>Central America and Caribbean</ExcludeShipToLocation>
<ExcludeShipToLocation>Europe</ExcludeShipToLocation>
<ExcludeShipToLocation>Middle East</ExcludeShipToLocation>
<ExcludeShipToLocation>North America</ExcludeShipToLocation>
<ExcludeShipToLocation>Oceania</ExcludeShipToLocation>
<ExcludeShipToLocation>Southeast Asia</ExcludeShipToLocation>
<ExcludeShipToLocation>South America</ExcludeShipToLocation>
<ExcludeShipToLocation>PO Box</ExcludeShipToLocation>
<SellerExcludeShipToLocationsPreference>false</SellerExcludeShipToLocationsPreference>
</ShippingDetails>
<ShipToLocations>US</ShipToLocations>
<Site>US</Site>
<StartPrice currencyID="USD">29.99</StartPrice>
<Storefront>
<StoreCategoryID>1</StoreCategoryID>
<StoreCategory2ID>14088794012</StoreCategory2ID>
<StoreURL>https://stores.ebay.com/harmanaudio</StoreURL>;
</Storefront>
<SubTitle>Limited Time Only, While Supplies Last</SubTitle>
<TimeLeft>P9DT12H39S</TimeLeft>
<Title>JBL Free II True Wireless Bluetooth In-ear Headphones, Black</Title>
<LocationDefaulted>true</LocationDefaulted>
<GetItFast>false</GetItFast>
<BuyerResponsibleForShipping>false</BuyerResponsibleForShipping>
<SKU>JBLFREEIITWSBLKAM</SKU>
<PostalCode>421**</PostalCode>
<PictureDetails>
<GalleryType>Gallery</GalleryType>
<PhotoDisplay>PicturePack</PhotoDisplay>
<PictureURL>https://i.ebayimg.com/00/s/MTYwMFgxNjAw/z/yykAAOSwR6hi1aJn/$_57.PNG?set_id=8800005007</PictureURL>;
<PictureURL>https://i.ebayimg.com/00/s/MTYwMFgxNjAw/z/a~wAAOSwDIZi1aJm/$_57.PNG?set_id=8800005007</PictureURL>;
<PictureURL>https://i.ebayimg.com/00/s/MTYwMFgxNjAw/z/RZIAAOSw7IBi1aJm/$_57.PNG?set_id=8800005007</PictureURL>;
<PictureURL>https://i.ebayimg.com/00/s/MTYwMFgxNjAw/z/DPEAAOSwI3Ni1aJm/$_57.PNG?set_id=8800005007</PictureURL>;
<PictureURL>https://i.ebayimg.com/00/s/MTYwMFgxNjAw/z/W5cAAOSwoP1i1aJm/$_57.PNG?set_id=8800005007</PictureURL>;
<PictureURL>https://i.ebayimg.com/00/s/MTYwMFgxNjAw/z/FgEAAOSwsRdi1aJp/$_57.PNG?set_id=8800005007</PictureURL>;
<PictureURL>https://i.ebayimg.com/00/s/MTYwMFgxNjAw/z/UJIAAOSwfoxi1aJo/$_57.PNG?set_id=8800005007</PictureURL>;
</PictureDetails>
<DispatchTimeMax>2</DispatchTimeMax>
<ProxyItem>false</ProxyItem>
<BuyerGuaranteePrice currencyID="USD">20000.0</BuyerGuaranteePrice>
<IntangibleItem>false</IntangibleItem>
<ReturnPolicy>
<RefundOption>MoneyBack</RefundOption>
<Refund>Money Back</Refund>
<ReturnsWithinOption>Days_30</ReturnsWithinOption>
<ReturnsWithin>30 Days</ReturnsWithin>
<ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption>
<ReturnsAccepted>Returns Accepted</ReturnsAccepted>
<ShippingCostPaidByOption>Seller</ShippingCostPaidByOption>
<ShippingCostPaidBy>Seller</ShippingCostPaidBy>
<InternationalReturnsAcceptedOption>ReturnsNotAccepted</InternationalReturnsAcceptedOption>
</ReturnPolicy>
<ConditionID>1000</ConditionID>
<ConditionDisplayName>New</ConditionDisplayName>
<QuantityAvailableHint>Limited</QuantityAvailableHint>
<PostCheckoutExperienceEnabled>false</PostCheckoutExperienceEnabled>
<DiscountPriceInfo>
<OriginalRetailPrice currencyID="USD">99.95</OriginalRetailPrice>
<PricingTreatment>STP</PricingTreatment>
<SoldOneBay>false</SoldOneBay>
<SoldOffeBay>false</SoldOffeBay>
</DiscountPriceInfo>
<ShippingPackageDetails>
<ShippingIrregular>false</ShippingIrregular>
<ShippingPackage>Letter</ShippingPackage>
<WeightMajor measurementSystem="English" unit="lbs">0</WeightMajor>
<WeightMinor measurementSystem="English" unit="oz">0</WeightMinor>
</ShippingPackageDetails>
<HideFromSearch>false</HideFromSearch>
<eBayPlus>false</eBayPlus>
<eBayPlusEligible>false</eBayPlusEligible>
<IsSecureDescription>true</IsSecureDescription>
</Item>
</GetItemResponse>


1) Have you choosen "Production" as Environment?

2) Check the User-Token.

3) I have tested with Site-ID 0 (US).

4) API ist "Trading API"

5) API-Call is "GetItem"

6) API Version is 967

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.