Skip to main content
Published: November 19 2010, 12:02:00 PMUpdated: November 28 2020, 8:45:28 PM

How can I use EAN/UPC in the GetProductSearchResults rather than using keywords to find a catalog match?

You can pass in product identifiers such as EAN, UPC etc in the QueryKeywords field in the GetProductSearchResults request.

Here is a sample request - response for a La Bamba DVD EAN - 5050582409475 

 <?xml version="1.0" encoding="utf-8"?>
<GetProductSearchResultsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
    <eBayAuthToken>TOKEN</eBayAuthToken>
  </RequesterCredentials>
  <ProductSearch>
    <QueryKeywords>5050582409475</QueryKeywords>
    <CharacteristicSetIDs>
      <ID>1172</ID>
    </CharacteristicSetIDs>
  </ProductSearch>
</GetProductSearchResultsRequest>

------------------------------------------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>
<GetProductSearchResultsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2010-11-19T18:53:51.258Z</Timestamp>
  <Ack>Success</Ack>
  <Version>695</Version>
  <Build>E695_CORE_BUNDLED_12325626_R1</Build>
  <DataElementSets attributeSetID="1172" />
  <ProductSearchResult>
    <ID>0</ID>
    <NumProducts>1</NumProducts>
    <AttributeSet>
      <ApproximatePages>1</ApproximatePages>
      <AttributeSetID>1172</AttributeSetID>
      <HasMore>false</HasMore>
      <ProductFamilies hasMoreChildren="false">
        <ParentProduct productID="109100:2:1108:1589320663:193422933:279894ac019188c3dab7b68cebec77a7:1:1:1:1372657717" stockPhotoURL="http://i8.ebayimg.com/01/c/07/a7/11/c1_6.JPG" title="La Bamba (DVD)">
          <CharacteristicsSet>
            <AttributeSetID>1172</AttributeSetID>
          </CharacteristicsSet>
          <DetailsURL>http://syicatalogs.ebay.com/ws/eBayISAPI.dll?PageSyiProductDetails&amp;IncludeAttributes=1&amp;ShowAttributesTable=1&amp;ProductMementoString=109100:2:1108:1589320663:193422933:279894ac019188c3dab7b68cebec77a7:1:1:1:1372657717</DetailsURL>
          <ProductReferenceID>50651673</ProductReferenceID>
        </ParentProduct>
        <FamilyMembers productID="109100:2:1108:1589320663:193422933:279894ac019188c3dab7b68cebec77a7:1:1:1:1372657717" stockPhotoURL="http://i8.ebayimg.com/01/c/07/a7/11/c1_6.JPG" title="La Bamba (DVD)">
          <CharacteristicsSet>
            <AttributeSetID>1172</AttributeSetID>
            <Characteristics>
              <AttributeID>6</AttributeID>
              <DisplaySequence>1</DisplaySequence>
              <Label visible="false">
                <Name>Ebay Title</Name>
              </Label>
              <ValueList>
                <ValueLiteral>La Bamba (DVD)</ValueLiteral>
                <ValueID>-6</ValueID>
              </ValueList>
            </Characteristics>
          </CharacteristicsSet>
          <DetailsURL>http://syicatalogs.ebay.com/ws/eBayISAPI.dll?PageSyiProductDetails&amp;IncludeAttributes=1&amp;ShowAttributesTable=1&amp;ProductMementoString=109100:2:1108:1589320663:193422933:279894ac019188c3dab7b68cebec77a7:1:1:1:1372657717</DetailsURL>
          <NumItems>14</NumItems>
          <MinPrice>4.0</MinPrice>
          <MaxPrice>9.0</MaxPrice>
          <ProductReferenceID>50651673</ProductReferenceID>
        </FamilyMembers>
      </ProductFamilies>
      <TooManyMatchesFound>false</TooManyMatchesFound>
      <TotalProducts>1</TotalProducts>
    </AttributeSet>
    <DisplayStockPhotos>true</DisplayStockPhotos>
  </ProductSearchResult>
</GetProductSearchResultsResponse>


 


 

 

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