question

eithcowich1 avatar image
0 Likes"
eithcowich1 asked ·

How do I find the reference ID of a product?

I need to find the reference id of a product listed on ebay, given the actual url of the product itself. For example: http://www.ebay.com/itm/Messianic-Jewish-Star-of-David-7-Branch-Silver-Temple-Menorah-9-inches-Tall/201047638025?_trksid=p2047675.c100005.m1851&_trkparms=aid%3D222007%26algo%3DSIC.MBE%26ao%3D1%26asc%3D30542%26meid%3Dfd5a27887c8e498eb620109065c14750%26pid%3D100005%26rk%3D5%26rkt%3D6%26mehot%3Dpp%26sd%3D221314965934&rt=nc Now, it's not that I really need the ref id, but I do need to find which domains would contain items from the Arts, Antique, and Crafts. But no domain that looks even remotely similar to these is listed in the API docs. Sadly enough. So I'm trying the workaround: find the domain from an actual product, like the one in the URL here. But for using the findProducts API call I need a ref id. Can anyone at all put me in the right direction? The API is convoluted and the support is nonexistent so far. Really not cool.
finding-apisearch-listings
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 ·
**Could have saved me a lot of time if the docs for FindProducts stated this.** You seem to blame the docs for most of your issues. You need to read them to get a clear understanding. The first paragraph of the FindProducts docs points to findItemsByProduct, which is a shorthand version of findItemsAdvanced for products. As for your non-working URLs, the problem there is that you are adding random parameters to the request and expecting them to work. The documentation exists to tell you what parameters (arguments) are available. Your FindProducts call didn't accept Category=Vintage because Category isn't a parameter. CategoryID is the parameter and the docs clearly explain that you have to pass the category ID number. And on your findItemAdvanced (fIA) example is also using invalid parameters. AvailableItemsOnly=true is available on FindProducts but not on fIA. Likewise MaxEntries should be the paginationInput.entriesPerPage. There is a sample section in the docs for each call. If you're going to skip over the rest of the docs, at least look at that. http://developer.ebay.com/DevZone/finding/CallRef/findItemsAdvanced.html#Samples
· 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.

clickimusprime avatar image
1 Like"
clickimusprime answered ·
Shopping API GetSingleItem and the Finding API find calls return productID when it is available. Search by itemID. You can find out which calls use/return a particular field using the field index on the documentation pages. Domains are deprecated as of Oct 2014.
· 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.

eithcowich1 avatar image
0 Likes"
eithcowich1 answered ·
OK so using the sample from the docs this is the url to use: http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsAdvanced&SERVICE-VERSION=1.12.0"; + "&SECURITY-APPNAME=" + APPID + "&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD" + "&paginationInput.entriesPerPage=" + numProducts + "&categoryId(0)=" + category1 + "&categoryId(1)=" + category2 + "&categoryId(2)=" + category3 + "&keywords=" + keywords;
· 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.

eithcowich1 avatar image
0 Likes"
eithcowich1 answered ·
My previous comment has unnecessary test. It should be: &categoryId(0)=550&categoryId(1)=20081 does not seem to work. Did you try it? Can you post the URL? &categoryId(0)=550 does not work either.
· 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.

eithcowich1 avatar image
0 Likes"
eithcowich1 answered ·
&categoryId(0)=550&categoryId(1)=20081 does not seem to work. Did you try it? Can you post the URL? &categoryId(0)=550 does not work either. ,Thanks very much for replying, clickprime. I really appreciate it. But if Domains are deprecated, and so are Categories, how do I search for a product in, for example, the Antiques department? (I'm saying department for lack of another word, I don't mean it technically. But I do need to search on what the site GUI defines as "Categories".)
· 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.

clickimusprime avatar image
0 Likes"
clickimusprime answered ·
The repeating function is poorly documented. &categoryId(0)=550&categoryId(1)=20081 As I mentioned in the other threads, all of your other parameters are incorrect for this call.
· 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.

eithcowich1 avatar image
0 Likes"
eithcowich1 answered ·
Thanks @clickprime it seems like everything, or almost everything is in the docs. But they are not great, and the API is kind of convoluted. For example why available items only is possible for Find Items, but not for the advanced version? Also, the docs for Advanced Items state that you can do the search in multiple categories: "categoryId Specifies the category from which you want to retrieve item listings. This field can be repeated to include multiple categories. Up to three (3) categories can be specified." But when I repeat this field I get the "Input data is invalid" error message. This is ridiculous. String findProducts = " http://open.api.ebay.com/shopping?callname=findItemsAdvanced&responseencoding=XML≈pid="; + APPID + "&siteid=0&version=525&" + "&QueryKeywords=" + keywords + "&categoryId=" + "550" + "&categoryId=" + "20081"
· 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.

eithcowich1 avatar image
0 Likes"
eithcowich1 answered ·
The solution for finding items in a category is to use findItemsAdvanced. Could have saved me a lot of time if the docs for FindProducts stated this. Anyway this is the URL for finding products in category (you can obviously change the category number): http://open.api.ebay.com/shopping?callname=findItemsAdvanced&responseencoding=XML≈pid="; + APPID + "&siteid=0&version=525&" + "&AvailableItemsOnly=true" + "&QueryKeywords=" + keywords + "&categoryId=" + "550" + "&MaxEntries=50
· 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.

eithcowich1 avatar image
0 Likes"
eithcowich1 answered ·
In the Java API it says that you can't use both search keywords and categories together, but you can use domains. Maybe I got confused. So how do I find a product in a category? What's the correct modification of this URL? String findProducts = " http://open.api.ebay.com/shopping?callname=FindProducts&responseencoding=XML≈pid="; + APPID + "&siteid=0&version=525&" + "&AvailableItemsOnly=true" + "&QueryKeywords=" + keywords + "&Category=" + "Vintage" + "&MaxEntries=10"; This completely ignores the Category param, no matter what I put there. I also tried categoryId, with no luck. What am I missing?
· 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.

clickimusprime avatar image
0 Likes"
clickimusprime answered ·
Where did you get the idea that categories are deprecated?
· 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.