question

hadjgian avatar image
0 Likes"
hadjgian asked

Browse API fails when using "{" and "|" characters in URL

I am trying to call Browse Rest API and do some filtering such as item condition. I have noticed that the request fails on "{", "}" and "|" with a 503 error. Below is the request that currently fails:

https://api.ebay.com/buy/browse/v1/item_summary/search?limit=100&q=iphone&category_ids=9355&filter=conditionIds:{1000|1500}

If I remove the filter it works OK

errorrest apibrowse api503
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.

clickimusprime avatar image
1 Like"
clickimusprime answered
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.

hadjgian avatar image
0 Likes"
hadjgian answered

You were right. Encoding the input bypassed the error.

https://api.ebay.com/buy/browse/v1/item_summary/search?limit=100&q=iphone&category_ids=9355&filter=conditionIds%3A%7B1000%7C1500%7D

https://www.w3schools.com/tags/ref_urlencode.ASP

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.