Skip to main content
Published: March 30 2011, 5:22:00 PMUpdated: November 28 2020, 9:19:59 PM

How can I retireve item specifics for US Motors Parts and Accessories categories at once

To retrieve item specifics for US Motors Parts & Accessories catgories at once make a call to GetCategorySpecifics as below. Make sure you specify the SiteID as 100.

 <?xml version="1.0" encoding="utf-8"?>
<GetCategorySpecificsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
    <eBayAuthToken>YourToken</eBayAuthToken>
  </RequesterCredentials>
 <CategorySpecificsFileInfo>true</CategorySpecificsFileInfo>
 <WarningLevel>High</WarningLevel>
</GetCategorySpecificsRequest>

The response includes FileReferenceID and TaskReferenceID. These IDs identify a particular file that contains recommendations for the specified site. See sample response below -

<?xml version="1.0" encoding="utf-8"?>
<GetCategorySpecificsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2011-03-30T18:37:39.180Z</Timestamp>
  <Ack>Success</Ack>
  <Version>713</Version>
  <Build>E713_CORE_BUNDLED_12896518_R1</Build>
  <TaskReferenceID>5014198357</TaskReferenceID>
  <FileReferenceID>5009494167</FileReferenceID>
</GetCategorySpecificsResponse>

Pass these two IDs as input to the downloadFile call in the File Transfer API. downloadFile returns a standard "Success" response, plus a .zip file.
Extract the GetCategorySpecifics response from the .zip file. The XML file will contain all available recommendations for all categories on the site.
Once every day or two, call GetCategorySpecifics again to see if the FileReferenceID and TaskReferenceID have changed. If they have changed, use the new IDs to download the latest version of the file.

How well did this answer your question?
Answers others found helpful