Skip to main content
Published: May 29 2008, 8:04:00 PMUpdated: November 28 2020, 4:14:28 PM

Is there a way to determine the url to my store and its custom categories?

Detailed Description

You can make a call to GeteBayDetails and get the url for your store as below:

Request:
<?xml version="1.0" encoding="utf-8"?>
<GeteBayDetailsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
    <eBayAuthToken>*****</eBayAuthToken>
  </RequesterCredentials>
  <DetailName>URLDetails</DetailName>
</GeteBayDetailsRequest>

Relevant portion of the Response:
<?xml version="1.0" encoding="utf-8"?>
<GeteBayDetailsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
....
 
<URLType>eBayStoreURL</URLType>
   
<URL>http://www.stores.ebay.com/</URL>
</URLDetails>
...
</GeteBayDetailsResponse>

To the URL, you need to add your store name.  For instance, if your store name is GreatTreasures, the url to your store would be:

http://www.stores.ebay.com/GreatTreasures 


Q.  What is the URL  for a store category?

A. This is the format available at the time of writing this article.  Please keep in mind that this can change:
http://stores.ebay.com/<storename>_<CategoryName>(_<ChildCategoryName)>+)_W0QQcolZ2QQdirZQ2d1QQfsubZ<LeafCategoryID>QQftidZ2QQtZkm

Where
<storename> is the user's store name
<CategoryName> is the root category
If there are child categories then after the under score add the ChildCategoryName till we reach the leaf
<LeafCategoryID> is the Store CategoryID for the leaf
Also, we replace replace space in category name with - (hyphen)

Lets take an example.  Lets assume that you have the following category structure:

Category                Store CategoryID
test                               1
test1 (child of test)        2

Now lets say you need the url for test1, then this would be url:

http://stores.ebay.com/GreatTreasures_test_test1_W0QQcolZ2QQdirZQ2d1QQfsubZ2QQftidZ2QQtZkm


Q.  What is the  store URL for displaying the store items in  "Gallery" view and sort "Best Match" preselected

A.  Here are the steps for formatting store URL with the view set to "Gallery" view and "Best Match" sort. Please keep in mind that this can be changed
          1. Make GetStore API call to obtain the following values:
                 -Store.Name
                 -ChiledCatetory.Name
                 -ChildCategory.CategoriyID

          2. Format URL for displaying Store category with the view set to "Gallery" view and "Best Match" sort :
               http://stores.ebay.com/<Store.Name>/<ChildCategory.Name>/_i.html?_fsub=<ChildCategory.CategoriyID>&_sc=1&rt=nc

              Where <Store.Name> is the user's store name returned in GetStore API call
                         <ChiledCatetory.Name> is the Child Store category name
                         <ChildCategory.CategoriyID> is the Child Store CategoryID
                        You will need to replace space in store name and category name with - (hyphen)

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