question

shakas_83 avatar image
0 Likes"
shakas_83 asked ·

I'm facing an issue with getting search results for item_search API

Hello,


I'm facing an issue with getting search results for following API call:

https://api.ebay.com/buy/browse/v1/item_summary/search?q=watch&limit=10&aspect_filter=categoryId:260324,Brand:{Omega|Rolex}&category_ids=260324

When I remove "Brand" from this call, it returns results but not otherwise. But we need to get results for specific brands.

This particular query is as per eBay's api docs' sample

search?q=camera&categoryId:20863&aspect_filter=categoryId:20863,Brand:{canon} 

which is given on https://developer.ebay.com/api-docs/buy/static/api-browse.html#getitem

This sample api call is also not returning anything, but if I try without "Brand", it returns the results.

Can someone please help with this issue? Am I doing something wrong here?

Thanks

rest apibrowse apiitem_search
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.

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered ·
· 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.

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered ·

Hi @shakas_83,

Braces are considered unsafe and can break some transport paths. Please retry the call with encoded braces.

Here are the URLs with encoded braces:

https://api.ebay.com/buy/browse/v1/item_summary/search?q=camera&categoryId:20863&aspect_filter=categoryId:20863,Brand:%7Bcanon%7D

https://api.ebay.com/buy/browse/v1/item_summary/search?q=watch&limit=10&aspect_filter=categoryId:260324,Brand:%7BOmega%7D&category_ids=260324

Best Regards ,
eBay Developer Support

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

Thanks @sagar_developersupport for response. Your examples worked for single brand. Can you also let me know how can we use multiple brands in that Brand:{} ?

Thanks

0 Likes 0 ·

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.