question

nicmare avatar image
1 Like"
nicmare asked

v1/item_summary/search by EAN

I managed to successfully setup a ebay api request workflow and getting some appropriate responses by using these parameters:

$args = array(
    "q"         => "{$ean}",
    "sort"   => "price",
    "limit"  => 3,
    "filter" => "itemLocationCountry:DE,deliveryCountry:DE,conditions:{NEW}
);
$search = "https://api.ebay.com/buy/browse/v1/item_summary/search?".http_build_query($args);


this returns me most of the time the correct results with the matching EAN. But for some reason i get sometimes a result where the EAN does not match. How can i force a search to look by EAN? i tried to replace the "q" parameter with "gtin" like described in the api docs but then i get zero results.

fyi, this is my api scope:

https://api.ebay.com/oauth/api_scope

as for the request headers i use

'X-EBAY-C-MARKETPLACE-ID' => 'EBAY_DE'


eansearching
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

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.