question

lord_juju avatar image
0 Likes"
lord_juju asked ·

searching ebay motors UK

I have been updating all my old finding api scripts to the browse api. Everything (finally) seems to be working pretty well.

Until I got to a site about motors... I can access the US items by using the globalid EBAY_MOTORS (not EBAY_MOTORS_US as it seems to suggest in places).

My problem is accessing motors from other sites. As far as I can see I should use EBAY_GB as the globalid for the UK, but when I do I get the error 'category_ids' query parameter is invalid

The category number is fine as far as I can tell, and the error goes away if I use any other non-motors categories. Anybody got any suggestions? Thanks!
ebay motorsuk
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.

lord_juju avatar image
0 Likes"
lord_juju answered ·

Thanks for your answer. But this does not give results for actual vehicles. With cat 6024 (motorcycles) I get nothing. With cat 6028 (motorcycle parts) I get hundreds of results (parts, but I want actual vehicles, not parts)

for example:


This gives nothing

https://api.ebay.com/buy/browse/v1/item_summary/search?q=kawasaki&limit=200&category_ids=6024&filter=itemLocationCountry%3AGB&sort=newlyListed&offset=0

This gives numerous results

https://api.ebay.com/buy/browse/v1/item_summary/search?q=kawasaki&limit=200&category_ids=6028&filter=itemLocationCountry%3AGB&sort=newlyListed&offset=0


Am I doing something wrong? Or is this an ebay error? I have tried using the old UK category for motorbikes (422) and that gives many results, but most are sofas, paintings etc etc, depending on the keyword I used

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

vertika_developersupport avatar image
0 Likes"
vertika_developersupport answered ·

Hi @lord_juju,

To get motors from EBAY_GB please use EBAY_MOTORS as globalId and use filter in request url "filter=itemLocationCountry:GB'.
REF: https://developer.ebay.com/api-docs/buy/static/ref-buy-browse-filters.html#itemLocationCountry

X-EBAY-C-MARKETPLACE-ID:EBAY_MOTORS

Request URL: https://api.ebay.com/buy/browse/v1/item_summary/search?category_ids=6001&filter=itemLocationCountry:GB

Best Regards
eBay Developer Support


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