Skip to main content
Published: April 05 2007, 11:45:00 PMUpdated: November 28 2020, 3:35:55 PM

Is there a way to get a user's favorite searches?

How to get a user's favorite searches


Summary

The GetMyeBayBuying call can be used to get the full URL for a user's favorite searches.
On the eBay site, a user's favorite searches can be found in their MyeBayFavoriteSearches.


Detailed Description

Here is the GetMyeBayBuying request that will return a user's favorite searches:

<?xml version="1.0" encoding="utf-8"?>
<GetMyeBayBuyingRequest xmlns="urn:ebay:apis:eBLBaseComponents">
 <Version>505</Version>
 <RequesterCredentials>
   <eBayAuthToken>token</eBayAuthToken>
 </RequesterCredentials>
 <FavoriteSearches>
   <Include>true</Include>
   <MaxResults>10</MaxResults>
 </FavoriteSearches>
</GetMyeBayBuyingRequest>

Here is a snippet of the GetMyeBayBuying response showing the favorite searches URLs:

<?xml version="1.0" encoding="UTF-8" ?>
<GetMyeBayBuyingResponse xmlns="urn:ebay:apis:eBLBaseComponents">
 ...
 <FavoriteSearches>
   <TotalAvailable>2</TotalAvailable>
   <FavoriteSearch>
     <SearchName>ipod</SearchName>
     <SearchQuery>http://search.ebay.com/ws/search/SaleSearch?catref=C5&from=R9&fstype=1&sacategory=-1&satitle=ipod&socolumnlayout=3&sorecordsperpage=50&sosortorder=1&sosortproperty=1&sotextsearched=2</SearchQuery>
   </FavoriteSearch>
   <FavoriteSearch>
     <SearchName>xbox</SearchName>
     <SearchQuery>http://search.ebay.com/ws/search/SaleSearch?catref=C5&floc=&from=R9&fss=0&fstype=1&saaff=afdefault&sacategory=-1&sacurrency=0&saslc=&saslop=1&satitle=xbox&socolumnlayout=3&sorecordsperpage=50&sosortorder=1&sosortproperty=1&sotextsearched=2&sotrtype=&sotrvalue=</SearchQuery>
   </FavoriteSearch>
 </FavoriteSearches>
</GetMyeBayBuyingResponse>


Version Info

The XML snippet above was based on the versions specified below:

API Schema Version 505


Additional Resources

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