question

engrjd91-0 avatar image
0 Likes"
engrjd91-0 asked ·

eBay searchByImage API not giving accrate results

Hello


I am consuming searchByImage API and it shows me results which includes url of image, item url and details based on the image search.


When I browse that url, it is some other product which is a bit similar to the image searched but not that exact same product.


Can anyone explain why is this happening? Am I missing some filter?


Also can anyone guide me which filter shall I apply if I only want URL search of www.ebay.co.uk? currently its providing url ebay.com in results.


I have applied X-EBAY-SOA-GLOBAL-ID filter but still the same. Please help!

apisearchbyimage
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 @engrjd91-0,

Please use X-EBAY-C-MARKETPLACE-ID header in the request and set the value as EBAY_GB to get the itemWebUrl or itemAffiliateWebUrl for the eBay UK site.

Ref: https://developer.ebay.com/api-docs/static/rest-request-components.html#HTTP
https://developer.ebay.com/api-docs/static/rest-request-components.html#marketpl

Best regards ,
eBay Developer Support

·
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 @engrjd91-0,

You can use itemLocationCountry filter in your request to get the items that are located in the specified country.

Ref:
https://developer.ebay.com/api-docs/buy/browse/resources/search_by_image/methods/searchByImage#uri.filter
https://developer.ebay.com/api-docs/buy/static/ref-buy-browse-filters.html#itemLocationCountry

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.

I have already applied that filter. Its only giving the results of UK thats fine! but its providing the itemWebUrl = "www.ebay.com.../...". But i want www.ebay.co.uk


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.