question

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ asked ·

How to get ePID from ebay listing for specific category---plz help urgently

First of all,i am new to ebay development forum.I want to get ebay item listing along with ePID code.Any one please help how i will display complete listing with ePID code.

Thanks and best regards,

I use below mentioned code to display item name,but i am unable to get ePID code of each item.Please tell me how i will be able to get this specific id.

 


<html>
<head>
<title>eBay Search Results</title>
<style type="text/css">body { font-family: arial,sans-serif;} </style>
</head>
<body>
<h1>eBay Search Results</h1>
<div id="results"></div>

<script>
function _cb_findItemsByKeywords(root)
{
var items = root.findItemsByKeywordsResponse[0].searchResult[0].item || [];
var html = [];
html.push('<table width="100%" border="0" cellspacing="0" cellpadding="3"><tbody>');

for (var i = 0; i < items.length; ++i)
{
var item = items[i];
var title = item.title;
var pic = item.galleryURL;
var viewitem = item.viewItemURL;
var ReferenceID = item.ReferenceID
var ptype = item.type


if (null != title && null != viewitem)
{
html.push('<tr><td>' + '<img src="' + pic + '" border="0">' + '</td>' +
'<td><a href="' + viewitem + '" target="_blank">' + title + '</a>'+ ptype +'</td></tr>');
}
}
html.push('</tbody></table>');
document.getElementById("results").innerHTML = html.join("");
}
</script>

<!--
Use the value of your appid for the appid parameter below.
-->
<script src=http://svcs.ebay.com/services/search/FindingService/v1?SECURITY-APPNAME=TahirMeh-6daf-4af9-b3be-809944736f67&OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&callback=_cb_findItemsByKeywords&REST-PAYLOAD&keywords=automotive&paginationInput.entriesPerPage=25>
</script>
</body>
</html>
epid-codereference-id
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.

1 Answer

· Write an Answer
tony.developersupport_deprecated_88e71f8c-89f3-4301-990a-e2f00a0fed48 avatar image
0 Likes"
tony.developersupport_deprecated_88e71f8c-89f3-4301-990a-e2f00a0fed48 answered ·

Hi,

      You can refer to the sample program in Javascript given here :  https://ebaydts.com/eBayKBDetails?KBid=1269

Put your AppID before running it.  

 ePID is retuned by the field ProductID(0).Value where ProductID(0).Type=Reference

 

 

 

Regards,

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