05-31-2023 08:12 PM
Is there a way to have a search for keywords with negative keywords set as well. I have many searches that contain a keyword I do not want to have, but cannot work out how to do this. (-) does not seem to work.
06-10-2023 02:53 PM
I don't see any discussion of negative keywords in the Browse API
On the other hand, the traditional Finding API allows negative keywords in either the Keyword call or the Advanced call:
https://developer.ebay.com/Devzone/finding/CallRef/findItemsByKeywords.html
https://developer.ebay.com/Devzone/finding/CallRef/findItemsAdvanced.html
To find an Acme brand widget or gadget that is not small and not blue, I would send a keyword string like this, after URL encoding the string:
acme (widget,gadget) -(small,blue)
Please be aware that "Best Match" through the API will vary from a site search because an API call doesn't have your browsing history. I'll often request a sort, like newly listed or highest price, to avoid the default best match.