question

jomarc-82 avatar image
0 Likes"
jomarc-82 asked

eBay Search API with AND and OR

I'm trying to work out how to use the following search query format with the search API call:

funko ("hera","syndulla") 136

Is anyone able to advise how this would need to be formatted?

Thanks

searchsearch-apibrowse apiadvanced 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.

1 Answer

· Write an Answer
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @jomarc-82,

If the keywords are separated by a comma, it is treated as an AND. In the following example, the query returns items that have hera AND syndulla.

Sample Request URL:

https://api.ebay.com/buy/browse/v1/item_summary/search?q=hera,syndullaIf the keywords are separated by a space, it is treated as an OR. In the following example, the query returns items that have hera OR syndulla.

Sample Request URL: https://api.ebay.com/buy/browse/v1/item_summary/search?q=hera syndullaFor more information, please go through the link given below:

Ref: https://developer.ebay.com/api-docs/buy/browse/resources/item_summary/methods/search#uri.q

Best regards ,
eBay Developer Support

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

Hello,

I have same issue but after following your solution it's work properly, thanks for support. MyGiftCardSite


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.