question

tiagferreir96 avatar image
0 Likes"
tiagferreir96 asked ·

Strange condition ID's in url ('4','3','10')...

Good afternoon,

As ebay doesn't provide this feature, I am trying to map user's searches in ebay's websites to findItemAdvanced searches. As normally when you select a conditon in the website, the URL will have the query 'LH_ItemCondition' with values like '3000|2750', I was just splitting using the '|' to get the values for the filter. These values are valid condition IDs as listed in: https://developer.ebay.com/DevZone/finding/CallRef/Enums/conditionIdList.html

The problem is that in websites like ebay.ie and ebay.fr, in searches like this one the condition ID in the URL is '4'. Of course this is not accepted by the API, so what I want to know is how to map these <1000 IDs to value condition IDs.

Thank you

itemitemspecificsfindingapiurlfindingconditionfinding-api-ebayfinditemsadvanced-findingfinditemsfindproduct
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.

clickimusprime avatar image
1 Like"
clickimusprime answered ·

The same thing appears on US

3=New, 4=Used, 10=not specified

Looks like searches that contain numbers use the 3/4/10 codes in the results URLs. Other searches use the normal 3000/4000/etc codes.

https://www.ebay.com/sch/i.html?_nkw=toyota+supra&LH_ItemCondition=3000

https://www.ebay.com/sch/i.html?_nkw=2000+toyota+supra&LH_ItemCondition=4


And some searches force whatever the results category uses even if the number is present in the keywords. e.g. collectibles uses verygood=4000, but used=3000 is ignored.

https://www.ebay.com/sch/i.html?_nkw=1983+boggs&LH_ItemCondition=4000


The website is not the API, they are maintained separately. Inconsistencies like this happen pretty regularly as the web developers introduce new solutions without using the existing standards in the API.


This is also affecting breaking URLs returned by the Finding API:

http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsAdvanced&SERVICE-NAME=FindingService&SERVICE-VERSION=1.0.0&GLOBAL-ID=EBAY-US&SECURITY-APPNAME=APPID&RESPONSE-DATA-FORMAT=XML&itemFilter(0).name=Condition&itemFilter(0).value=3000&keywords=2000+sony

returns a searchURL:

https://www.ebay.com/sch/i.html?LH_ItemCondition=3000&_nkw=2000+sony&_ddo=1&_ipg=100&_pgn=1

The condition in the returned URL is ignored by the website, which is now expecting the conditon code 4.


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

This is nonsense. Once again I say ebay should really add this feature.

Having no documentation on this, I am afraid to assume the mapping on these. Say, the number '4', should I map it to all the 'Used' conditions ('Like New', 'Used', 'Very Good', 'Good' and 'Acceptable') or simply 'Used'? Or does it also include 'For parts or not working', and refurbished options?

There is no good way for us to know. Ebay should at least document and inform about it, since they don't give us a way to do the conversion automatically.

0 Likes 0 · ·
tiagferreir96 avatar image
0 Likes"
tiagferreir96 answered ·

This is nonsense. Once again I say ebay should really add this feature.

Having no documentation on this, I am afraid to assume the mapping on these. Say, the number '4', should I map it to all the 'Used' conditions ('Like New', 'Used', 'Very Good', 'Good' and 'Acceptable') or simply 'Used'? Or does it also include 'For parts or not working', and refurbished options?

There is no good way for us to know. Ebay should at least document and inform about it, since they don't give us a way to do the conversion automatically.
· 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.