cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

inconsistent results of API query

Hi All

I have created this API query in a js script for google sheets, and overall it works great, but occasionally produces inconsistent results, for example auctions in EU, whereas what I believe I am asking is UK:

https://www.ebay.co.uk/itm/Native-Instruments-Maschine-Studio-2023-OVP-mit-Software-/166036140068

Here are the parameters: 

const params = [
    `GLOBAL-ID=EBAY-GB`,
    `OPERATION-NAME=findItemsAdvanced`,
    `SERVICE-VERSION=1.0.0`,
    `SECURITY-APPNAME=${api_key}`,
    `RESPONSE-DATA-FORMAT=JSON`,
    `REST-PAYLOAD=`
  ];

Anything wrong with it? Thanks

Message 1 of 3
latest reply
2 REPLIES 2

inconsistent results of API query

That listing is probably enrolled in site visibility. It appears in a normal desktop search of eBay UK. You might take advantage of the 'LocationIn' filter and set to GB.

 

LocatedIn: Limits the result set to just those items located in the specified country (ISO_3166_country_codes).

https://developer.ebay.com/Devzone/finding/CallRef/extra/fnditmsadvncd.rqst.tmfltr.nm.html

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 2 of 3
latest reply

inconsistent results of API query

Great to know, thank you.

 

Due to script structure, I have added it here 

const params = [    `GLOBAL-ID=EBAY-GB`,    `OPERATION-NAME=findItemsAdvanced`,    `SERVICE-VERSION=1.0.0`,    `SECURITY-APPNAME=${api_key}`,    `RESPONSE-DATA-FORMAT=JSON`,    `REST-PAYLOAD=`,    `itemLocatedIn=GB`      ];
 
and it seems to work fine, whereas on some occasions without mods to the code, more results show up, even with German umlauts.
Message 3 of 3
latest reply